[jboss-user] [jBPM] - Re: Skipping a task node

Michael Wohlfart do-not-reply at jboss.com
Tue Nov 23 03:04:22 EST 2010


Michael Wohlfart [http://community.jboss.org/people/mwohlf] created the discussion

"Re: Skipping a task node"

To view the discussion, visit: http://community.jboss.org/message/572384#572384

--------------------------------------------------------------
jBPM4 is a complete rewrite, the closest die jBPM3's "task-node" is probably the "task" tag in jBPM4
 http://docs.jboss.com/jbpm/v4/userguide/html_single/#task http://docs.jboss.com/jbpm/v4/userguide/html_single/#task
to create multiple tasks in one node you might be better off by using a custom node
 http://docs.jboss.com/jbpm/v4/userguide/html_single/#custom http://docs.jboss.com/jbpm/v4/userguide/html_single/#custom
override the execute() method and do what the TaskActivity is doing:

    DbSession dbSession = EnvironmentImpl.getFromCurrent(DbSession.class);
    TaskImpl task = dbSession.createTask();
    task.setTaskDefinition(taskDefinition);
    task.setExecution(execution);
    task.setProcessInstance(execution.getProcessInstance());
    task.setSignalling(true);
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/572384#572384]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20101123/4556a2ee/attachment.html 


More information about the jboss-user mailing list