[jboss-user] [JBoss jBPM] - Re: Dynamic task creation

scull do-not-reply at jboss.com
Mon Apr 28 10:52:49 EDT 2008


hello massimiliano_cuccia ,
sorry my english is bad.
You have reason.

"the dynamic creation of the tasks generates some problem to the process instance"

i was testing the task creation through action hanlders after a fork-node and this not work.

First i create one tasknode before a fork and 2 tasknodes after the fork and asociate 1 ActionHandler in node-enter event per taskNode.

In constructor's of task after the fork i put some outputs for trace the execution e.g( " building action handler 1", and "building action handler2"). Late in the exute method i put all code for task creation and some outputs for trace it e.g("execute method 1", and  "execute method 2").

Later i cerate a process instance and few taskIntances before a fork node with signal="first-wait" and  run this code and the output is in this order

"building action handler 1"

"building action handler2"

"execute method 1"

and the the output never show "execute method 2" , but the ActionHandler create a taskInstance.

this is for the first taskInstance finish in the node before the fork, but when i end oder taskInstance in that node the execution NOT create anything in oder tasknodes.
I have an idea but, i'm not test it yet.
i go to create  nodes after fork and then i go to create
the TaskNodes.

Test it

sorry is my english is Bad
  







View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147254#4147254

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147254



More information about the jboss-user mailing list