cancel
Showing results for 
Search instead for 
Did you mean: 

Status of a process

lofi
Champ in-the-making
Champ in-the-making
I'd like to get the status of all tasks in a process. From what I've learned so far, you get the currently executed task using the taskService.

Questions:

* How do you get the tasks (and their status) that were processed before the current one?
* How do you get all the tasks that are still to come after the current one?

Thank you very much for the information.
4 REPLIES 4

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Lofi,

* How do you get the tasks (and their status) that were processed before the current one?
You have two possibilities: use HistoryService (according to the level historic info is written to the DB - http://activiti.org/userguide/index.html#history)
the second possibility is to use Event logs to log the events you are interested in.

How do you get all the tasks that are still to come after the current one?
Really interesting question. Next tasks depend on the input - that's why I would you simulation and probabilities.

Regards
Martin

lofi
Champ in-the-making
Champ in-the-making
Thank you for the information. It's strange that there is no easy way to find out the status of all the items of a single process while it's running. I'd like to visualize the status of the items in the process (e. g. waiting->running->finished). But in order to achieve that, you have to activate the History Service, which is an optional service? An Event Log doesn't seem to be proper for that. Is there really no other mechanism?



martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Lofi,

When you want to get status from the past you have to use at least history service.
To predict the future -> simulation.

Regards
Martin

lofi
Champ in-the-making
Champ in-the-making
Ok, thanks. I'll use the history service and the runtime service then to get complete activities and the current ones.