If I have a FSM with the following configuration then the FSM ends after the first execution.
– Any State -> Action Task 1 (Action Task 1 doesn’t have a transition)
– Any State -> Action Task 2 (Action Task 2 doesn’t have a transition)
To avoid the FSM ending I have to do the following:
– Any State -> Action Task 1 -> Dummy Task (Action Task 1 never transitions to Dummy Task as I make the condition false)
– Any State -> Action Task 2 -> Dummy Task (Action Task 2 never transitions to Dummy Task as I make the condition false)
Whilst this works, it creates a slightly untidy FSM.
Would it be possible to create a FSM that never suspends or disables? Rather I would like it to remain active in the last state?
i think the anystate work if a start node is in repeat.
from anystate to next state, this last state should end into a next running state.
Thanks for the reply. Whilst your example continues to run, it still transfers state to the ‘Loop’ Task. Furthermore, it requires all the tasks to have a transition to ‘Loop’.
My ideal situation is one where I can have a transition that ‘On Finish’ transitions to itself.
FSM will by design end/stop when it reaches a State that is Finished and that is also has no transitions to transit to. I could add an option for this if it is really required, but alternative you can indeed use the “Run Forever” action like markus said. You can add this “Run Forever” action in you last state that you want to “Hold” instead of being finished. Doing this will not require any extra transitions and will keep the FSM from finishing.