users@javaserverfaces.java.net

method call as start node for flow

From: jason zhang <jasonzhang2002_at_gmail.com>
Date: Tue, 26 Nov 2013 10:15:39 -0800

Hi, All

I am trying to use a method call as start node for flow. The method call
will judge the status of a domain object(project) to decide the start page.

I tried the default start page: FLOW/FLOW.xhtml. It worked. But the method
call one does not.

My flow definition looks like this
<flow-definition id="project">
        <start-node>firstpage</start-node>

       <method-call id="firstpage" >
            <method>#{pflow.firstPage()}</method>
            <default-outcome>delay_event</default-outcome>
        </method-call>

    </flow-definition>


It gives me the error like this

   - Unable to find matching navigation case with from-view-id
   '/project_setup.xhtml' for action '#{projectSetup.save}' with outcome
   'firstpage'
   - Unable to find matching navigation case with from-view-id
   '/project_setup.xhtml' for action '#{projectSetup.save}' with outcome
   'project'

I could not find any example how to use a start node. Any help or
workaround is really appreciated.
-jason