cancel
Showing results for 
Search instead for 
Did you mean: 

How to visualisze currently running task in a workflow

mohitsrivastava
Champ in-the-making
Champ in-the-making
Hi,

Could you please let me know about below:

I have a workflow. And it has suppose 10 script task or java tasks in between start and end.
Now I did "Start Process".

So is there any place in UI of Activiti Explorer where I may see that at this particular time the workflow is on which task.

Thanks
Mohit
6 REPLIES 6

vasile_dirla
Star Contributor
Star Contributor
Hi,
yes you can see it visually in "my instances" select the desired process instance and then you'll see in red the active task.


martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Mohit,

If there is no wait state (e.g. asynch task) in your workflow, it is not possible. (in the current impl.)

Regards
Martin

mohitsrivastava
Champ in-the-making
Champ in-the-making
Hi Activiti team,

Thanks for information.

I tried 2 scenarios:

1. A workflow consisting only User Tasks. And the currently executing task is visible in Running Process Instances.

2. But when I created a workflow having Service Tasks (Java class invoking Unix Shell script with sleep command to test this) then that process is not visible in Running Process Instances.

So Martin, Is it the case you are talking about.

Please let me know that for scenario 2 will it be possible to see currently running tasks?

Thanks
Mohit

jbarrez
Star Contributor
Star Contributor
Activiti executes automatic steps (like script/service) in one transaction. You cannot see it visually if they are part of one transaction. You could make them all async, and then they would be visible (but that might not be what you want performance wise).

mohitsrivastava
Champ in-the-making
Champ in-the-making
Hi,

So could you please let me know that is there any API (Listener) we may use or implement so that this may be done. So that currently executing task is visible in UI.

Also again I am specifying my problem:

I have a workflow. And it has suppose 10 script task or java tasks in between start and end.
I want to know which task is currently executing.

Thanks
Mohit


martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Mohit,

you have following possibilities:
  • log state outside of the activiti transaction (listener will start and commit independent transaction from activiti one)
  • make tasks asynchronous (in fact you make new wait states in this case)
Regards
Martin