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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...