cancel
Showing results for 
Search instead for 
Did you mean: 

Process blocked in JOIN

jcosano
Champ in-the-making
Champ in-the-making
I have a process that split in 17 branches… and after join all before finish process.
Now, the process is not finishing, and I suspect that is waiting in "join" state…

DATE IN ACT_RU_EXECUTION is:

ID_   REV_   PROC_INST_ID_   PARENT_ID_   PROC_DEF_ID_   SUPER_EXEC_   ACTIVITY_ID_   IS_ACTIVE_   IS_CONCURRENT_   IS_SCOPE_
116   1   116   NULL   firmaSemanal:1   NULL   fork   0   0   1
117   1   116   116   firmaSemanal:1   NULL   join   0   1   0
118   1   116   116   firmaSemanal:1   NULL   join   0   1   0
119   1   116   116   firmaSemanal:1   NULL   join   0   1   0
120   1   116   116   firmaSemanal:1   NULL   join   0   1   0
121   1   116   116   firmaSemanal:1   NULL   join   0   1   0
122   1   116   116   firmaSemanal:1   NULL   join   0   1   0
123   1   116   116   firmaSemanal:1   NULL   join   0   1   0
124   1   116   116   firmaSemanal:1   NULL   join   0   1   0
125   1   116   116   firmaSemanal:1   NULL   join   0   1   0
126   1   116   116   firmaSemanal:1   NULL   join   0   1   0
127   1   116   116   firmaSemanal:1   NULL   join   0   1   0
128   1   116   116   firmaSemanal:1   NULL   join   0   1   0
129   1   116   116   firmaSemanal:1   NULL   join   0   1   0
130   1   116   116   firmaSemanal:1   NULL   join   0   1   0
131   1   116   116   firmaSemanal:1   NULL   join   0   1   0
132   1   116   116   firmaSemanal:1   NULL   join   0   1   0
133   1   116   116   firmaSemanal:1   NULL   join   0   1   0

And ACT_RU_TASK is empty

Can I look somewhere else?
13 REPLIES 13

jcosano
Champ in-the-making
Champ in-the-making
If I try to simulate process in a short time (playing with seconds or minutes) always works… but when is in real time (and units are days), process must be finish after seven days, and the process keep waiting in join state. (maybe some service is down but console is not showing errors)

jbarrez
Star Contributor
Star Contributor
Do you have the activiti logs? On the FINE level, it should perfect show what happens in a join, as it shows messages such as 'x out of y joined' etc..

jcosano
Champ in-the-making
Champ in-the-making
Activiti log is empty.

How can i activate activiti logs?

I didn't find this in activiti user guide…

jbarrez
Star Contributor
Star Contributor
Are you running in Tomcat or in a unit test?

frederikherema1
Star Contributor
Star Contributor
If you are using aciviti 5.0.beta1 on tomcat using the demo-setup, the activiti.log is empty due to a bug (http://jira.codehaus.org/browse/ACT-94). Workaround is to edit the file in {tomcat.dir}/conf/logging.properties:

org.activiti.impl.util.LogUtil.LogUtil$LogFormatter should become
org.activiti.pvm.impl.util.LogUtil.LogUtil$LogFormatter

jcosano
Champ in-the-making
Champ in-the-making
I'm using tomcat 6.0.29 (installed by demo.setup).

I have a main class that deploy my process inside activiti, after with explorer I start instance (i have an error because there is not a form but process still running.. it is a group of serviceTask and timerEvents)

My logging.properties (tomcat/conf folder) not have any reference to
org.activiti.impl.util.LogUtil.LogUtil$LogFormatter
I added
handlers = java.util.logging.ConsoleHandler
java.util.logging.ConsoleHandler.level=FINEST
java.util.logging.ConsoleHandler.formatter=org.activiti.pvm.impl.util.LogUtil$LogFormatter

at the bottom of the file.. but activiti.log continues empty after running my process again.

frederikherema1
Star Contributor
Star Contributor
Sorry, my bad.

The file is present in the activiti-engine-init webapplication, under /WEB-INF/classes/ which contains the error.
When changing the file, be sure to also alter it in 'setup/files/webapps/activiti-engine-init.war/WEB-INF/classes' so when you teardown/setup agian, it will be deployed in tomcat.

jcosano
Champ in-the-making
Champ in-the-making
I modify (two places), re-start tomcat, but activiti still empty.

activiti\apps\apache-tomcat-6.0.29\webapps\activiti-engine-init\WEB-INF\classes


handlers = org.apache.juli.FileHandler
.level = FINEST

org.apache.juli.FileHandler.level = FINEST
org.apache.juli.FileHandler.directory = ${catalina.base}/logs
org.apache.juli.FileHandler.prefix = activiti.
org.apache.juli.FileHandler.formatter=org.activiti.pvm.impl.util.LogUtil.LogUtil$LogFormatter

org.apache.level = SEVERE

frederikherema1
Star Contributor
Star Contributor
Another option is to set the level for activiti-logging to fine in global tomcat log config (/conf/logging.properties), just add this line:

org.activiti.level=FINEST