[jboss-user] [JBoss jBPM] - Re: How Continue Process Execution Using Java (Without the j
Fornachari
do-not-reply at jboss.com
Mon Jun 9 15:06:20 EDT 2008
Hi sreepathis, thank you very much for your reply.
I am trying what you said, and I find some information in the internet.
I am doing like below, but without success:
| JbpmContext ctx = JbpmConfiguration.getInstance().createJbpmContext();
| GraphSession graphSession = ctx.getGraphSession();
|
| //8 is the id of my process instance
| ProcessInstance processInstance = graphSession.loadProcessInstance(8);
|
| Collection taskList = null;
| taskList = (Collection) processInstance.getTaskMgmtInstance().getTaskInstances();
| taskList.iterator().next();
| ((TaskInstance)taskList.iterator().next()).end();
|
| //set the admin's comment, like I said in my first post
| processInstance.getContextInstance().setVariable("adminComment", "Approved");
could you help me?
Thank you!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156809#4156809
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156809
More information about the jboss-user
mailing list