cancel
Showing results for 
Search instead for 
Did you mean: 

Change current task

ambro23
Champ in-the-making
Champ in-the-making
Hello,

we are developing am Avtiviti-based webapp.
Once in a while, users make mistakes (ie. unintentional "complete task") so a process might end up in a wrong state.
We would like admin users to have the possibility to change the current task to another.
Is it possible using the API?

Thanks,
-Milan

4 REPLIES 4

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Milan,

"Changing" current task to another can be tricky. Change is not reverting process execution to the previous state.
I do not know about such an API call.

Martin.

ambro23
Champ in-the-making
Champ in-the-making
Hi Martin,

thanks for your answer. Actually I don't want to revert the state, but change it. Maybe not only backwards, but forward too (eg. in case of data migration, we would not migrate the history, but only the current state). Do you have any suggestion how to do it? If there is no API support, then I suppose, I'll need to update the DB directly… is that correct?

Best regards,
-Milan

yahekia
Champ in-the-making
Champ in-the-making
Hi Milan,

in my case when we need data migration what we do is have diferents starts events, and depending on the state we use a different one.

To fix mistakes we do it directly in database, we haven't found any other way.

Regards,

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Milan,

Do you have any suggestion how to do it?
I would say to implement command to move execution from one activity to another. To propose solution, I have to think about it little bit more, I did not dive into the process execution so deep.

I'll need to update the DB directly… is that correct?
I think it is better to implement command which will do that, but basically yes.

Regards
Martin