[jboss-dev-forums] [jBPM Development] - kcontext.setVariable("variable", value) for begin used by following tasks?

gigazhang do-not-reply at jboss.com
Mon Apr 16 05:04:04 EDT 2012


gigazhang [https://community.jboss.org/people/gigazhang] created the discussion

"kcontext.setVariable("variable",value) for begin used by following tasks?"

To view the discussion, visit: https://community.jboss.org/message/730215#730215

--------------------------------------------------------------
my flow:
 https://community.jboss.org/servlet/JiveServlet/showImage/2-730215-18401/12345.png  https://community.jboss.org/servlet/JiveServlet/downloadImage/2-730215-18401/450-104/12345.png 

every node i set  #{userid} as actorid

start process:

Map<String,Object> params = new HashMap<String, Object>();
params.put("userId", "Jack");
ksession.startProcess("com.test.task.bpmn",params);


the problem is when the first task completed,how can i change the variable userId to set the follow actor.
--------------------------------------------------------------

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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120416/7538f002/attachment.html 


More information about the jboss-dev-forums mailing list