[JBoss jBPM] - Re: Persistance
by maxip
OK
so i deployed a process definition by the designer (deployment was successfull)
but i cant find any process definition
anonymous wrote : public static void main(String[] args) {
| JbpmConfiguration.getInstance().createSchema();
| JbpmContext jbpmContext = JbpmConfiguration.getInstance().createJbpmContext();
|
| try {
| GraphSession graphSession = jbpmContext.getGraphSession();
|
| // deployProcessDefinition(graphSession);
|
| findAllProcessDefinitions(graphSession);
|
|
| //ProcessDefinition processDefinition = findProcessDefinitionsFromServer("SimpleDefinition1", graphSession);
| //System.out.println(processDefinition.getId());
| }
| finally {
| jbpmContext.close();
| }
| }
|
| public static void findAllProcessDefinitions(GraphSession graphSession) {
| System.out.println(graphSession.findAllProcessDefinitions());
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962149#3962149
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962149
18 years, 7 months
[JBoss jBPM] - Assigning users to task
by dlipski
Hi again ;)
I have problem with assigning group of users to task.
I have task which can be performed by some group of users calculated in AssignmentHandler and some users which perform some process role(swimlane).
Example:
Order is created by shop manager, after that order can be modified by grou pof users called 'order validators' and shop manager who created the order. Shop managers dosn't belong to this group. I have one idea how to realize this but I need some help:
At process start (creation of order) i have task in start-node and swimlane called orderCreator. This swimlane remebers a shop manager. Then after order is created I have task node with task : 'modify order'. This task have assignment handler where i set pooled actors - 'order validators'. I don't know how to add to this actors shop manager who created order. I don't know do i have to assign some swimlane to 'modify order' task ? If so, I don't know if I have to use the same swimlane as in start-node task, or maybe some other ?
This is fragment of my process definition:
| <process-definition name="orderManagement">
| <swimlane name="creator"/>
|
| <start-state name="start">
| <task swimlane="creator"/>
| <transition name="init" to="proposed"></transition>
| </start-state>
|
| <task-node name="proposed" end-tasks="true" signal="never">
| <task name="modify">
| <assignment class="OrdersAssignmentHandler"></assignment>
| </task>
|
| <transition name="goToModified" to="modified"></transition>
| </task-node>
|
I'm not sure is it clear ? Can anybody help me ?
How to get orderCreator in OrdersAssignmentHandler ?
Regards
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962140#3962140
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962140
18 years, 7 months