I've put together a getting started se-Workflow sample. The sample is called Coffee Machine and is intentionally simple: insert coins in a coffee machine and choose a drink. The machine makes the drink and returns the remaining coins. If the amount is insufficient the coins are returned as well.
The sample is intended to showcase basic features including how to configure and kick start a workflow (annotation-driven config) and different transition related aspects (triggering transitions with parameters, simple and conditional transitions, returning objects as a result of a transitions.)
Feel free to download, test the sample and give me your feedback. I've included the source code as well as the dependencies and an executable jar. Just unzip the archive, and type:
What I missed the most is the ability to configure before and after actions on a state and automatic transitions. I might be unaware of how to achieve this due to my newness to Workflow and I appreciate to hear your feedback on this.
java -jar "Coffee Machine.jar"
I also have a couple of bug reports and improvement requests that I'll submit on the Jira.