Announcement Announcement Module
Collapse
No announcement yet.
Access attribute value in web flow Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Access attribute value in web flow

    Hi,

    I have one xml file to define sub flows. For example

    <subflow-state id="subflow1" flow="flow1">
    <attribute name="test" value="true"/>
    <transition on="commonSubflow" to="startCommonSubflow"/>
    </subflow-state>

    <subflow-state id="isubflow2" flow="flow2">
    <attribute name="test" value="false"/>
    <transition on="commonSubflow" to="startCommonSubflow"/>
    </subflow-state>

    <subflow-state id="startCommonSubflow" flow="common-sub-flow">

    </subflow-state>

    Here as I mentioned in the code example, I want set the value of test attribute and want to access this value in sub flow "startCommonSubflow". For example when control goes to common-sub-flow.xml, I want to put the decision state id for the attribute which was set, something like this in common-sub-flow.xml

    <decision-state id="dicisionstate">
    <if test="true" then="viewstate1" else="viewstate2"/>
    </decision-state> -->

    I tried to implement it but didn't work. Is there any other way to set & access the attribute value across the different sub flows.

    Any help will be appreciated.

    Thanks,
Working...
X