You should use JbpmContext instead of JbpmSessionFactory and JbpmSession, which
are deprecated. And yes, you can use JbpmConfiguration in your ejbCreate.
Regards,
Koen
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3936234#3936234
Reply to the post :
ok!
One more thing!
I followed qweniden's suggestion. and changed my method to anonymous wrote :
public long uploadDocument(String processDefinitionName) {
| | long processInstanceId = 0;
| |
| | JbpmContext
huh!
Okay! I found out that
i have to save jbpmContext (jbpmContext.save()) before returning
processInstanceID and then it saves the processInstance.
Still I would like to ask,
Should I use jbpmSessionFactory and jbpmSession at all?
and as JbpmConfiguration is static can I use it in my
oops! its jbpmContext.close() not jbpmContext.save()
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3935114#3935114
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3935114
Do you think taht instead of using jbpmSession and JbpmSessionFactory, I should
use JbpmConfiguration and jbpmContext?
Please suggest.
Whats the plan!
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3935097#3935097
Reply to the post :
ooops!
My Question was
If this is not right method then how should I save my processInstance.
In my code (for which output is given) Token token =
processInstance.getRootToken();
| System.out.println(token is+token);
| token.signal();
| System.out.println(token.signal() is done);
is
the save() method on the JbpmContext class accepts an instance to be saved.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3934947#3934947
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3934947