As I see it, and how I might try to implement backing up:
In the regular flow, the user is entering answers which will propagate
the engine through the
defined flow. Now consider saving these anwers and adding a simple
mechanism that's
capable of inserting this data into an engine in "start state" where
nothing has been
entered yet. This would bring the engine into the same state, right?
So, to go back from step N to some step 1 <= x < N, simply use the
answers 1,...x-1 to
reach step x.
You would have to implement some logic to decide what to do with the
saved answers
x+1,...N-1. If they are still useable, use the same replay mechanism
to reach N again.
-W
On 20 August 2010 18:19, jawa <agohar(a)gmail.com> wrote:
Hi,
Thanks for the answers. KiranP, I can't use what you have suggested because
there can be some actions/customWorkItems in between asking questions. And
we want to create a flow that business users can edit as well. For example
if they want to change that for some specific answer for a question the flow
should go to some other question or do some custom task or email customer
they can just add etc.
So we can't use dynamic flow that you suggested because in that case we'll
have to define our actual question flow somewhere else may be a database.
Any other idea?
Thanks
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Flow-Replay-tp...
Sent from the Drools - User mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users