i found this example
| <decision name=âCustomer Rank ?â>
| <transition to=âSend expensive giftâ>
| <condition expression=â#{customer.rank > 10}â
| />
| </transition>
| <transition to=âSend cheap giftâ>
| <condition expression=â#{customer.rank > 5}â />
| </transition>
| <transition to=âCheck paymentsâ />
| </decision>
Customer is a simple bean with getRank();
but how does this java bean and the processinstance come together?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4178711#4178711
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4178711
With the jBPM 3.2.3 suite, you've got all pieces ready to go. If you want to use the jbpm-enterprise.ear instead of the jbpm-console.war, which is deployed by default, just use the one from the jbpm-jpdl-3.2.3/deploy directory. Suppose you have extracted the jBPM 3.2.3 archive to a folder jbpm-jpdl-3.2.3, all you need to do is
| jbpm-jpdl-3.2.3 $ rm server/server/jbpm/deploy/jbpm-console.war
| jbpm-jpdl-3.2.3 $ cp deploy/jbpm-enterprise.ear server/server/jbpm/deploy/
| jbpm-jpdl-3.2.3 $ ./server/bin/run.sh -c jbpm
|
The wiki was written for jBPM 3.2.2, where the deployment on JBoss 4.2 didn't work without the modifications IIRC.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4178710#4178710
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4178710
Hi Ronald,
Thanks for your response.
I read through the examples.
Shows create the process instance first, on same process manipulates the nodes traversal.
I'm trying to get the process instance of the process already running.
I'm using the below code
JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
jbpmContext = jbpmConfiguration.createJbpmContext();
GraphSession graphSession = jbpmContext.getGraphSession();
ProcessDefinition pd = graphSession.findLatestProcessDefinition(processName);
ProcessInstance processInstance = jbpmContext.getProcessInstance(pd.getId());
System.out.println(" processInstance :"+processInstance);
I'm getting process instance is null.
Kindly help
With Regs
:Ansari S.H
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4178709#4178709
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4178709