[jboss-dev-forums] [jBPM Development] - How to change the param value dynamically?
mariaprabudass Edwin
do-not-reply at jboss.com
Tue Jan 31 09:34:23 EST 2012
mariaprabudass Edwin [https://community.jboss.org/people/mariaprabudass] created the discussion
"How to change the param value dynamically?"
To view the discussion, visit: https://community.jboss.org/message/649669#649669
--------------------------------------------------------------
Hi all,
I am new for jbpm. I have passed *boolean value* to the variable name "*qcapproval*". I used *constraints* in bpmn diagram, in that if the variable *qcapproval == true* the process end. otherwise (that is *qcapproval == false*) process continue. But I need to change the variable value as *true dynamically*. Because if i set the variable false loop continues. I need to stop the process in the particular stage. So i need to change the variable value as *true dynamically*. Kindly advise me. I have attached my code below.
*Code:-- *
StatefulKnowledgeSession ksession = createKnowledgeSession("Print.bpmn");
Map<String, Object> params = new HashMap<String, Object>();
params.put("qcapproval", false);
TaskService taskService = getTaskService(ksession);
ProcessInstance processInstance = ksession.startProcess("com.tnq.workflow.jobflow.Print.bpmn", params);
assertProcessInstanceActive(processInstance.getId(), ksession);
Thanks for looking into this....
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/649669#649669]
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/20120131/71197f91/attachment.html
More information about the jboss-dev-forums
mailing list