[JBoss-user] [JBoss jBPM] - Re: subProcessInstance is null
Thanks for the information, guys. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3923332#3923332 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3923332 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: subProcessInstance is null
ejimenez: anonymous wrote : Is there something you want to do that you cant accomplish using the subprocess end event? Actually, I think yes. I have a process that uses subprocesses for repetitive tasks like calling someone (with carefully designed business rules for a busy signal, leaving a message, etc). Unfortunately, I also have the requirement that at any given time I must pause the workflow for a user-defined amount of time. The way I've implemented this in my test workflows is to have a hold-state that dynamically creates a timer to leave it. Each larger workflow instance is tied to an entity in our system. So, when they hit pause I need to be able to figure out exactly which process they are currently in so that I can pause /that/ subprocess, hence pausing the rest. Otherwise, if I pause the superprocess the subprocess would just get restarted from the beginning upon re-entry. My first approach was, of course, to recursively use .getSubProcessInstance(). I don't have a large urge to write HQL as I like to keep libraries free of customization so that future bugfix releases can be integrated in just by replacing a jar. My guess is that everyone will recommend I migrate my existing code to 3.1, where this is fixed? Ian View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3923473#3923473 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3923473 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: subProcessInstance is null
it's scheduled for 3.0.3. i just don't know yet when 3.0.3 will be released. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3923219#3923219 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3923219 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: subProcessInstance is null
My comments here apply to 3.0.2. I think that's what you are using, correct me if I'm wrong. The subProcessToken is not persistent. Hence when you load the process instance from the DB, its always null. Is there something you want to do that you cant accomplish using the subprocess end event? See this for reference http://jira.jboss.com/jira/browse/JBPM-462 If you implement the code change listed there, you can get the subProcessInstance from the subprocess end event. In our case, that turned out to be a great solution. Otherwise, you'll have to change the way you are trying to load the subprocess. One thing you can do is run a custom HQL query to find the process instances that have a superprocesstoken = X. Should be pretty easy to write and if you write it in HQL it will not tie you to the database schema. The aforementioned bug should be fixed in a 3.0.3 release in our opinion. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3923042#3923042 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3923042 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: subProcessInstance is null
This piece of test code seems to succeed in head of cvs (which should be the same as 3.1 beta 3) ProcessDefinition processDefinition = ProcessDefinition.parseXmlString( | process-definition name='subprocess' + | start-state name='start' + | transition to='wait' / + | /start-state + | state name='wait' + | transition to='end' / + | /state + | end-state name='end' / + | /process-definition); | jbpmContext.deployProcessDefinition(processDefinition); | | processDefinition = ProcessDefinition.parseXmlString( | process-definition name='superprocess' + | start-state name='start' + | transition to='sub process state' / + | /start-state + | process-state name='sub process state' + | sub-process name='subprocess' / + | variable name='a' access='read' mapped-name='A' / + | variable name='b' mapped-name='B' / + | variable name='c' access='write' mapped-name='C' / + | transition to='wait' / + | /process-state + | state name='wait' / + | /process-definition); | jbpmContext.deployProcessDefinition(processDefinition); | | newTransaction(); | | ProcessInstance processInstance = jbpmContext.newProcessInstanceForUpdate(superprocess); | ...some variable operations... | processInstance.signal(); | | newTransaction(); | | long processInstanceId = processInstance.getId(); | long subProcessInstanceId = processInstance.getRootToken().getSubProcessInstance().getId(); | | processInstance = jbpmContext.loadProcessInstance(processInstanceId); | assertNotNull(processInstance.getRootToken().getSubProcessInstance()); regards, tom. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3922511#3922511 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3922511 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: subProcessInstance is null
Tom, I see you try accessing it in a new transaction; is that also starting a new jbpmSession? I get the error when everything is persisted and I try accessing it in a later session; it works fine when still in the original one. I'm using 3.0.2; I tried going to 3.1 beta 3 to test it, but I have a fairly significant code base and migration is a little more complicated than switching out the .jar. :) Thanks, Ian View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3922561#3922561 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3922561 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: subProcessInstance is null
I have a similar problem, and have posted about it here: http://www.jboss.com/index.html?module=bbop=viewtopict=76936 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3922290#3922290 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3922290 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user