cancel
Showing results for 
Search instead for 
Did you mean: 

Async-Job-Problem: No date for job execution

martinbauer
Champ in-the-making
Champ in-the-making
Hi folks,

i have a very (example/simple) process:

START —->  ServiceTask(Java) —-> END

I start this process and everything is fine as long as the "async" is set to false for ServiceTask. But i do not
want that the caller has to wait - so i switched the ServiceTask to async=true. And now the trouble comes to me…

The caller initate the process - and gets back the control. fine
Accoding to the ActivitiExplorer the processintance is started. fine
According to the  ActivitiExplorer the process is in the ServiceTask. (red border in the task picture). fine
According to the ActivitiExplorer the 'job' is susspended - because there is no execution date.  !! WTF !!

After reading the docs i do not understand why this happens….

Any Ideas?


Regards,  Martin
3 REPLIES 3

martinbauer
Champ in-the-making
Champ in-the-making
I found the Problem….

This one does the magic …. in activiti.cfg.xml

      <property name="jobExecutorActivate" value="true" />

jbarrez
Star Contributor
Star Contributor
Do you see this behaviour in Activiti Explorer? Afaik, the job executor is activated in Explorer, no?

martinbauer
Champ in-the-making
Champ in-the-making
I have the tomcat(explorer) AND another tomcat(activiti) running, sharing the same database/tables. In explorer the job executor is set to false, in my tomcat environment it is set to true. (now…)

I want to control the system with the explorer - but not by the other activiti environment. the tomcat environment is just for productional purposes …. and will just execute tasks with "java-service-tasks" and start/end/timerevents. The explorer environment does not have any cutom 'java' classes and is only running if maintanance is needed. ….. this is the plan.

We will enter in 'production' in (maybe) 3 months ….

P.s. Great work from you! Thank you a lot! If (and only if) our project  will gain (economical) success - we will remember you and your team….