commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dario D <>
Subject [scxml] Setting state through history element or other means
Date Wed, 21 Sep 2011 09:53:17 GMT

Is there a way to programatically change history state of a workflow? Our
idea is to be able to set freely the next state to be executed. If we set
the state like this:

        Set states = executor.getCurrentStatus().getStates();
        TransitionTarget tt = (TransitionTarget)

This will set current state, but "onentry" will not be executed, only
"onexit" on transition. Perhaps if we could somehow programatically change
current status of the executor, so that when we trigger an event that has
target="historyElement", the state machine will transition to the wanted
state. Is this possible?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message