What's happens with the process when we delete a task? The prior task is recovered from the history to runtime?
Hi samueel _ ,
Thanks for explaining more your business use case. However, it is still not clear to me whether it was a BPM issue or not. I understand your workaround though. 'SetProcessDefinitionVersionCmd' is used to update process definition and migrate runtime instances to the updated model. It can solve your issue but it is certainly not meant for that purpose.
You said:
Last month there was a unavailable system problem in our Company, then a batch process completed several tasks causing some problems to customers because the involved persons hadn't time to correctly complete tasks.
So isn't this your batch process problem? It should have not completed tasks inappropriately?
A UNDO procedure could restablish the previous condition once the bpmn model won't predict it.
This isn't BPM. BPM is all about understanding the process and model it in the best effective, efficient way. If your process contains unpredictable parts, then you would need to try to understand the unpredictable as much as you can and include it in the model. So far in your description, I have not yet seen a proper BPM problem statement.
Hope I make sense,
Thong
Samueel_,Can you expand a little bit on what you mean? Your question could be interpreted in several different ways. I'm happy to help if I know what you mean. -JEarles
In our company we are facing the UNDO problem. It seems to be a difficult problem to solve. So, we began to think some ways to solve this problem.
Once the context was exposed.
If we delete some runtime task, the execution point that process could back in time? Restoring the prior state of the process? Can you understood?
It is very unclear what you are trying to solve.
In our company we are facing the UNDO problem. It seems to be a difficult problem to solve
What exactly do you mean by 'UNDO'? What is your use case here and what are you hoping Activiti can do?
You can't delete a runtime task because it is part of a running process instance. You can complete a task but completing task with move the process forward. It seems that you are looking for how to move the process backward. In Activiti, once a step is completed, it's completed. If you want to implement the 'rework' scenario, you need to model it in your process definition, meaning you needs to allow the flow to flow back to previous steps.
Hope this helps.
Thanks,
bp3
Hi Thong
To workaround this situation we adopt the following: there is a class "SetProcessDefinitionVersionCmd" in Activiti that change the process's definition version and we use it to solve our problem. The steps is.
Some problems could be workarounded with this approach. Not for all.
Is this a good approach to this problem? What do you think about it?