java - Dynamic target in a state machine -


in state machine made scxml, there way set dynamic target value transition?

i mean, suppose have object called "obj" has been set datamodel scxml. there can set conditions (if there property called checkcondition in object) on like:

cond="obj.checkcondition"

<state id="state1">     <transition cond="obj.checkcondition" target="state2"/> </state> <state id="state2">     ... </state> 

i have property in obj called nexttarget. want set target in transition reading value object (as done in conditions).

<state id="state1">     <transition cond="obj.checkcondition" target="eval(obj.nexttarget)"/> </state> <!-- in obj.nexttarget there has been set value "state1", "state2" or state name --> 

is there syntax this?

thanks.

you can specify cond attribute in transition element

<transition cond="data.value > 10" target="state2"/> 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -