Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The goTo(stepName) will instruct the workflow engine to move to the given step.

Validating Workflows

To avoid typos between the workflow step enum and the methods in the workflow class, on startup we check that there are suitable methods available for the enum. Many thanks to Sam for this idea! (smile) e.g. the following bad workflow is automatically caught and a useful error is generated.

Wiki Markup
{snippet:id=workflow|lang=java|url=http://svn.apache.org/repos/asf/incubator/servicemix/trunk/servicemix-beanflow/src/test/java/org/apache/servicemix/beanflow/BadWorkflow.java}