cancel
Showing results for 
Search instead for 
Did you mean: 

Script task doesn't execute automatically

linxiangxin
Champ in-the-making
Champ in-the-making
I had a problem that when my workflow reached at a script task , the task didn't execute automatically and I had to execute it by API. Could someone had the same problem and show me how to solve this problem?
The version I used is 5.7
5 REPLIES 5

kajan
Champ in-the-making
Champ in-the-making
Can i see your process definition ?

linxiangxin
Champ in-the-making
Champ in-the-making
Hi~ I think my process definition doesn't have any problem, because it worked normally in my development environment. But when I deployed it in the product environment, all the script tasks cannot execute automatically. Does my configuration have any problems?

jbarrez
Star Contributor
Star Contributor
Without a process definition xml its hard to say. … does the production environment contain the correct jars needed for scripting?

linxiangxin
Champ in-the-making
Champ in-the-making
I think the jars needed for scripting are contained in the production environment, because the workflow just stop at the script task and I couldn't find any error in the log.
Is there any configuration of activiti will result to this problem?

jbarrez
Star Contributor
Star Contributor
No, a script task is an automatic step: it executes or there is an exception.
Have you looked in all the logs? Is this an async script, and if so, is the jobexecutor enabled?