[jboss-user] [jBPM] - How to get ProcessIntance in a Different Thread
Manikanta PT
do-not-reply at jboss.com
Tue Mar 6 12:55:29 EST 2012
Manikanta PT [https://community.jboss.org/people/mani.pt21] created the discussion
"How to get ProcessIntance in a Different Thread"
To view the discussion, visit: https://community.jboss.org/message/721904#721904
--------------------------------------------------------------
Hi,
I am new to JBPM I have following issues please help me
Once we start a ProcessInstance by
ProcessInstance processInstance = ksession.startProcess("com.sample.test");
I want to get the same process instance in a different thread to do something like this
ksession.signalEvent("Yes", "YesValue",processInstanceId);
1) How can I achieve that ?
a) I tried ksession.startProcessInstance(processInstance.getId());
which is returning different "processInstance".
b) I tried Process process = ksession.getKnowledgeBase().getProcess("com.sample.test");
but this is not giving ProcessInstance
2) What is the relation between Process and ProcessInstance.
3) I tried to persist in in postgres with com.sample.ProcessMain .
loadStatefulKnowledgeSession needs a Transaction Manager which class needs to be set here ?
4) Also for Standalone run I need InitalContext to bind Datasource how can I achieve that ?
5) How to use inbox and how i put my workflow items in inbox
6) Is there any other API to get items which are in workflow
7) Also need location of JavaDocs for org.jbpm
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/721904#721904]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120306/d9fef7b6/attachment.html
More information about the jboss-user
mailing list