Here's the scenario:
User wants to start a new process, and clicks on the Start Process Button, which takes them to the initial page in the process. The fill in the page, hit the submit button and things hapen from there on.
So, my starProcess button
<s:link action="#{inspectionProcess.createInspection}" value="New Inspection" />
@CreateProcess(definition = "InspectionProcess") @Begin public String createInspection() { if (logger.isDebugEnabled()) { logger.debug("createInspection() - start"); //$NON-NLS-1$ } if (logger.isDebugEnabled()) { logger.debug("createInspection() - end"); //$NON-NLS-1$ } return "/inspection.xhtml"; }
<start-state name="start"> <transition to="gatherInfo" /> </start-state> <task-node name="gatherInfo"> <task name="createInspection" description="Select a Client"> <assignment actor-id="#{actor.id}" /> </task> <transition to="sampleCollection" /> </task-node>
<h:commandButton id="start" value="Start Inspection" action="#{inspectionProcess.inspectionCreated}" > <s:taskId/> </h:commandButton>