-
1. Re: implementing undo
llucifer Mar 16, 2006 10:33 AM (in response to tom.baeyens)Will a process be undoable if the actionHandler does not implement UndoableActionHandler? If yes, I consider this dangerous because you easily oversee to rollback the process in the domain model data.
-
2. Re: implementing undo
tom.baeyens Mar 17, 2006 1:16 PM (in response to tom.baeyens)compensating transactions will always be dangerous. in the docs we will certainly put the necessary warning signs.
but for certain use cases it makes sense, even though we cannot make it mathematically complete.
the behaviour will be that the undo method will be called on every action that implements the Undoable interface. -
3. Re: implementing undo
prassib Aug 20, 2006 10:48 PM (in response to tom.baeyens)Hi Tom, Is this the (your) code I should refer, to implement undo in jBPM?
http://fisheye.labs.jboss.com/changelog/JBossJBPM?cs=MAIN:tombaeyens:20041006111829
Your code looks good but I notice that you have your own implementation of ProcessInstance. I am working on jBPM 3.1.1.
Also, I dont see many jBPM examples available on the internet besides yours. That makes me wonder if jBPM is actually being used to develop enterprise level work-flow applications?
Any thoughts/advice would be greatly appreciated. -
4. Re: implementing undo
kukeltje Aug 21, 2006 1:51 AM (in response to tom.baeyens)Also, I dont see many jBPM examples available on the internet besides yours. That makes me wonder if jBPM is actually being used to develop enterprise level work-flow applications?
We used staffware, used in lots of enterprises, but even less examples available on the internet. The fact that something is opensource does not mean things have to be published. It could also mean:
- examples, besides the ones that are there, are not needed
- 'other' examples are always specifc to a domain
- people are not willing to share their processes (competitive advantage? certainly in enterprises)
- ...
Trust me, it is used in enterprise grade systems. -
5. Re: implementing undo
tom.baeyens Aug 22, 2006 4:57 AM (in response to tom.baeyens)prassib, based on your pointer, i could find the actual file that contains the implementation of the undo method:
http://fisheye.labs.jboss.com/viewrep/JBossJBPM/jbpm.2/core/src/java/org/jbpm/impl/ExecutionServiceImpl.java?r=1.2 -
6. Re: implementing undo
prassib Sep 6, 2006 7:10 PM (in response to tom.baeyens)Is there a way to prevent a ProcessInstance from not moving on to the next state despite it being signalled?
For example, I call the signal method on a ProcessInstance but can I write code inside any of the ActionHandlers to prevent the ProcessInstance from moving to the next state & continue to stay at the same state it was at.
In another words, I am trying to override the signal. Is it possible?
Thanks -
7. Re: implementing undo
tom.baeyens Sep 7, 2006 9:30 AM (in response to tom.baeyens)thow an exception in your action handler. client should then rollback.