Announcement Announcement Module
Collapse
No announcement yet.
ending a web-flow Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ending a web-flow

    hi guys

    I want a way to end my web-flow after results are returned but i cant find a way to do that.
    Here is what i have:

    <var name="input" class="com.user.InputObject" />

    <view state id= "enterCriteria" view="com\test" model="input">

    <transition on="search" to="enterCriteria"> --I'm showing results in same jsp
    <evaluate expression="businessAction.search(input)" result="flowscope.result"/>
    </transition>

    </view-state>

    <end-state id="enterCriteria" view="com\test"/> -- getting error here : "There are multiple occurances of ID value 'enterCriteria' "



    Any idea how i can resolve this? I could not find much info on ending the flows in reference guide.
    Any help will be greatly appreciated.

    Thanks

  • #2
    you have two views with the same id "enterCriteria". that's a conflict.
    just change the id of the end-state to some other name such as "end" or "finish" or any other names

    Originally posted by jaggernat View Post
    hi guys

    I want a way to end my web-flow after results are returned but i cant find a way to do that.
    Here is what i have:

    <var name="input" class="com.user.InputObject" />

    <view state id= "enterCriteria" view="com\test" model="input">

    <transition on="search" to="enterCriteria"> --I'm showing results in same jsp
    <evaluate expression="businessAction.search(input)" result="flowscope.result"/>
    </transition>

    </view-state>

    <end-state id="enterCriteria" view="com\test"/> -- getting error here : "There are multiple occurances of ID value 'enterCriteria' "



    Any idea how i can resolve this? I could not find much info on ending the flows in reference guide.
    Any help will be greatly appreciated.

    Thanks

    Comment


    • #3
      ok thx

      but i thought the name which you give in <transition 'to' attribute must match the <end-state 'id' attribute .
      Example
      <transition on="search" to="enterCriteria"> must match the
      <end-state id="enterCriteria"

      Is it not?

      thanks

      Comment


      • #4
        in your flow definition, you have

        <view-state id= "enterCriteria" <=== conflict
        <end-state id="enterCriteria" <=== conflict

        Originally posted by jaggernat View Post
        ok thx

        but i thought the name which you give in <transition 'to' attribute must match the <end-state 'id' attribute .
        Example
        <transition on="search" to="enterCriteria"> must match the
        <end-state id="enterCriteria"

        Is it not?

        thanks

        Comment

        Working...
        X