[Design of JBoss jBPM] - Simple process not ending.
by brado
Hello,
I am using jbpm 3.1.1. I have defined a very simple process that looks as follows:
start --> node --> end
There are no wait states. Now, from the jbpm user's guide, I see this quote:
"The idea is to start execution on process instances and that the execution continues till it enters a wait state."
I execute my business process using the following code:
| GraphSession graphSession = jbpmContext.getGraphSession();
| log.debug("Finding process definition: MyProcess");
| ProcessDefinition processDefinition = graphSession.findLatestProcessDefinition("MyProcess");
| log.debug("Creating new process instance: MyProcess");
| ProcessInstance processInstance = new ProcessInstance(processDefinition);
| log.debug("Saving process instance: MyProcess");
| jbpmContext.save(processInstance);
| og.debug("Executing business process: MyProcess");
| processInstance.signal();
| log.debug("Is process ended? " + processInstance.hasEnded());
| log.debug("Saving process instance: MyProcess");
| jbpmContext.save(processInstance);
| String status = (String) processInstance.getContextInstance().getVariable(PVAR_engineStatus);
| log.info("return=" + status);
|
My code here and the code in the node action in my business process execute successfully, without any errors. However, the problem is that the process shows that it has not ended -- the processInstance.hasEnded() method returns false, and the process instance saved to the database also shows that the process has not yet ended. Again, there are no wait states in this business process, and there are transitions from start to my node to the end. Why isn't my business process showing that it has ended?
Thanks in advance.
Brad
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960857#3960857
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960857
19 years, 8 months
[Design of Kosmos] - Re: serviceResultUpdaterJob not traversing repository
by sstuart4
Everything seems to be fine except that the cache does not seem to be surviving server restarts. Here is a portion of my log just after a restart:
Before the restart:
| 2006-07-25 14:44:45,045 INFO [hu.midori.kosmos.portlet.svn.SvnMonitoringPortlet] Viewing...
| 2006-07-25 14:44:45,141 DEBUG [hu.midori.kosmos.server.MethodResultCacheInterceptor] Accessing cache "hu.midori.kosmos.server.cache" [2 items]...
| 2006-07-25 14:44:45,142 INFO [hu.midori.kosmos.server.MethodResultCacheInterceptor] Cache-hit: "hu.midori.kosmos.server.svn.SvnServiceImpl.getRepositories.http://myserve..." returned from cache (11 minutes old)
| 2006-07-25 14:44:48,321 DEBUG [hu.midori.kosmos.server.MethodResultCacheInterceptor] Accessing cache "hu.midori.kosmos.server.cache" [2 items]...
| 2006-07-25 14:44:48,321 INFO [hu.midori.kosmos.server.MethodResultCacheInterceptor] Cache-hit: "hu.midori.kosmos.server.svn.SvnServiceImpl.getRepositories.http://myserve..." returned from cache (9 minutes old)
| 2006-07-25 14:44:48,556 DEBUG [hu.midori.kosmos.portlet.svn.SvnMonitoringPortlet] SVN repositories downloaded: 2
|
And after...
| 2006-07-25 15:22:06,805 INFO [hu.midori.kosmos.portlet.svn.SvnMonitoringPortlet] Viewing...
| 2006-07-25 15:22:06,919 DEBUG [hu.midori.kosmos.server.MethodResultCacheInterceptor] Accessing cache "hu.midori.kosmos.server.cache" [0 items]...
| 2006-07-25 15:22:06,919 INFO [hu.midori.kosmos.server.MethodResultCacheInterceptor] Cache-miss: reloading "hu.midori.kosmos.server.svn.SvnServiceImpl.getRepositories.http://myserve..."...
| 2006-07-25 15:22:06,919 DEBUG [hu.midori.kosmos.server.svn.SvnServiceImpl] Returning repositories...
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960800#3960800
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960800
19 years, 8 months