Versions: Spring 2.5.6 SEC02
Webflow: 2.0.9
Will anyone help me understand Webflow? I have included my configuration below, and I would like to expand on what I already have. I have also included some logging from webflow, which shows the configuration works up until the error message. The error message I am getting is
It doesn't make any sense, or maybe I'm just missing something. Either way I could use some insite in what I can do to fix this problem. Thanks in advance for your help.Caused by: org.springframework.webflow.conversation.NoSuchCon versationException: No conversation could be found with id '1' -- perhaps this conversation has ended?
My main flow contains only subflows (menu items) to which most are just single view-states.
The notes subflow contains two view-state(s). This subflow also inherits from a commons flow, see below.Code:<decision-state id="decisionState"> <if test="currentEvent eq null" then="mainView"/> <if test="currentEvent.id eq 'notes'" then="notesSubflow"/> <if test="currentEvent.id eq 'config'" then="configSubflow"/> </decision-state> <view-state id="mainView" view="main/instructions"> </view-state> <subflow-state id="notesSubflow" subflow="main/notes"></subflow-state> <subflow-state id="configSubflow" subflow="main/config"></subflow-state> <global-transitions> <transition on="notes" to="notesSubflow"/> <transition on="config" to="configSubflow"/> </global-transitions>
The commons flow contains all the end states and global transitions, so that I don't have to define all the end states and global transitions (also knowing the system is going to grow having all this in one place makes is convenient).Code:<flow ... parent="main/commons"> <view-state id="notesView" model="notesViewForm" view="main/notes/notesView"> ... </view-state> <view-state id="notesForm" model="notesViewForm" view="main/notes/notesForm"> ... </view-state> </flow>
The config subflow is unique in that this subflow calls another subflow.Code:<flow .... abstract="true"> <end-state id="notes"/> <end-state id="config"/> <global-transitions> <transition on="notes" to="notes" bind="false" validate="false"/> <transition on="config" to="config" bind="false" validate="false"/> </global-transitions> </flow>
The config subflow is defined below. This is a workflow which produces configurations which are displayed in the view. If I click on one of the other menu items while in this flow. That is when I get the error message.Code:<flow ... parent="main/commons"> <view-state id="configView" model="configViewForm" view="main/config/configView"> .... </view-state> <subflow-state id="configSubflow" subflow="main/config/workflow"> </subflow-state> </flow>
Code:<flow ... parent="main/commons"> <view-state id="configStart" model="configForm" view="main/config/configStart"> .... </view-state> <view-state id="bldgSelections" model="configForm" view="main/config/bldgSelections"> .... </view-state> </flow>


Reply With Quote
