-
1. Re: is that possible to create tasknodes in runtime?
cpob Aug 4, 2006 11:51 AM (in response to luowp)Instead of creating multiple task nodes, you can create multiple tasks IN a task node. So you could then add new tasks programmatically to B, and then those would all be finished, and then it would move to C.
Only thing is, that would have many B's going to a single C, unless you then generate as many tasks in C as you did B. But, it would require all B's to be finished before going to C. -
2. Re: is that possible to create tasknodes in runtime?
luowp Aug 4, 2006 11:57 AM (in response to luowp)This is the difficulties I met.
1. I need all task Bs can start simultaneously;
2. After one B finish, a C should start.
3. All (B+C)s should be joined together for next step. -
3. Re: is that possible to create tasknodes in runtime?
kukeltje Aug 4, 2006 12:00 PM (in response to luowp)B + C is a subprocess. Implement a custom fork which starts multiple subprocesses.
-
4. Re: is that possible to create tasknodes in runtime?
luowp Aug 4, 2006 1:06 PM (in response to luowp)Thanks. Subprocess is a good idea. I just not sure how to manage the subprocesses and main process.
Is there any testcase in jbpm to show how sub-process works? -
5. Re: is that possible to create tasknodes in runtime?
kukeltje Aug 4, 2006 1:17 PM (in response to luowp)"luowp" wrote:
Is there any testcase in jbpm to show how sub-process works?
Yes