[jBPM] New message: "How to model order/items"
by Jonathan Fields
User development,
A new message was posted in the thread "How to model order/items":
http://community.jboss.org/message/530055#530055
Author : Jonathan Fields
Profile : http://community.jboss.org/people/JonathanDFields
Message:
--------------------------------------------------------------
Hi All,
I'm new to JBPM but am having problems understanding how I would model a simple order/items scenario.Hopefully this is not a FAQ, but I have a feeling it might be. But I've looked and have not yet been able to find an answer.
I have an order, that has some order level tasks that must occur first. Then, for each item on the order, there is a sequence of tasks that need to occur in parallel to complete the item. Once all of the item-level tasks are completed, then the order level process should resume with some final tasks to complete the order.
So essentially, the business process must fork into N concurrent branches, where N is the variable number of items on the order, and then join back up when all N have completed. I don't see how it is possible to fork into a variable number of branches. It seems that the number of branches is fixed by the JPDL.
Is there a way to do this using fork? Or is there another way to accomplish this?
Thanks,
Jon
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/530055#530055
16 years, 1 month
[jBPM] New message: "Re: start a process within another process in jbpm 4.3"
by Al Nadein
User development,
A new message was posted in the thread "start a process within another process in jbpm 4.3":
http://community.jboss.org/message/530045#530045
Author : Al Nadein
Profile : http://community.jboss.org/people/matrixpooh
Message:
--------------------------------------------------------------
After a little more investigation,
public class *RmExecutionImpl* extends ExecutionImpl{
private static final long serialVersionUID = 7281196660125907487L;
@Override
protected void save() {
this.dbid = DbidGenerator.getDbidGenerator().getNextId();
/**
* this is the line that makes the diff: set JBPM4_EXECUTION::ID_ to
* unique value upon INSERT. It affects creating a process within
* another just created and not yet persisted process.
*/
super.id = new Long(super.dbid).toString();
super.save();
}
}
and in jbpm.execution.hbm.xml that is linked to jbpm.hibernate.cfg.xml:
<class name="*RMExecutionImpl*" table="JBPM4_EXECUTION" discriminator-value="pvm">
The only thing is: had to keep package name org.jbpm.pvm.internal.model
Would still appreciate any other suggestions
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/530045#530045
16 years, 1 month