[jboss-user] [jBPM] New message: "Re: Manage transitions in java node"
Sebastian Schneider
do-not-reply at jboss.com
Mon Feb 15 04:43:37 EST 2010
User development,
A new message was posted in the thread "Manage transitions in java node":
http://community.jboss.org/message/526277#526277
Author : Sebastian Schneider
Profile : http://community.jboss.org/people/sebastian.s
Message:
--------------------------------------------------------------
In case you want to chose the transition inside your java activity AFAIK you have to use the custom task instead of the java task. Accessing process variables is done in a different way You don't pass arguments but you can access them inside your java code. When using a custom task you have to implement the interface ActivityBehaviour which makes you implement:
void *execute*(http://docs.jboss.com/jbpm/v4/javadocs/org/jbpm/api/activity/ActivityExecution.html execution)
throws java.lang.Exception
By using execution you then have access to the execution's context and thus to variables: execution.getVariables()
ActivityExecution inherits the methods related to variables from OpenExecution.
So have a look at http://docs.jboss.com/jbpm/v4/javadocs/org/jbpm/api/model/OpenExecution.html
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/526277#526277
More information about the jboss-user
mailing list