[JBoss-user] [JBoss jBPM] - Re: not able to save processInstance

2006-04-10 Thread [EMAIL PROTECTED]
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 :

[JBoss-user] [JBoss jBPM] - Re: not able to save processInstance

2006-04-05 Thread forJbpm
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

[JBoss-user] [JBoss jBPM] - Re: not able to save processInstance

2006-04-05 Thread forJbpm
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

[JBoss-user] [JBoss jBPM] - Re: not able to save processInstance

2006-04-05 Thread forJbpm
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

[JBoss-user] [JBoss jBPM] - Re: not able to save processInstance

2006-04-05 Thread forJbpm
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 :

[JBoss-user] [JBoss jBPM] - Re: not able to save processInstance

2006-04-04 Thread forJbpm
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

[JBoss-user] [JBoss jBPM] - Re: not able to save processInstance

2006-04-04 Thread qweniden
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