My workflow is quite simple, I have two script, first script is ASYNC
and the second is SYNC
. In each script I have a loop from 0 to Integer.MAX_VALUE
as follow
for(int i=0;i<Integer.MAX_VALUE;i++)
System.out.println("value is "+i);
When I run my process, it starts working and I can see in my log file that it is being filled. But when I want to stop it, I find nothing in my active process instances, neither in completed process or even in aborted. even if I check my data base, I have nothing related to this process in the ProcessInstanceInfo
or even ProcessInstanceLog
. So weird isn't it? what could be the reason?
The goal from creating this workflow is to see the difference between ASYNC
and SYNC
tasks, because as I know that ASYNC
tasks when they start running, the workflow don't have to wait until this task finish, but what I have is that my task ASYNC is still running and it didn't go to next task. So my second question is can any one give me the difference between ASYNC
and SYNC
with a good example to learn. I would appreciate if I'll get at least one answer on one of my two questions. thanks