java - Spring Webflow: How to change the destination of a transition in a child flow -
i'm using spring webflow 2 , have following parent flow:
<flow ...> ... <view-state id="show-task"> <transition on="approve" to="search"> <!-- lots of things --> </transition> <!-- several other transitions , other instructions --> </view-state> </flow>
i have child flow , in it, want replace "search"
see above "execute"
without modifying parent flow (except if make more generic). "lots of things" must still executed without being copied/pasted child flow.
how that?
thank you!
i don't think can this.
i see couple of options:
you change parent flow have boolean input check in decision state value of input decide if need go "search" (include null value in case don't have change children's code) or "execute" result of approve transition.
change logic parent goes end state on "approve" , use outputs if needed, child can transition on end state , has do.
you create new transition in child flow , copy "lots of things" in different "to" state.
i #1 better , thing way go. parent should know different possible outcomes of transitions. or #2 parent need done in order child decide else needs do.
Comments
Post a Comment