-
Notifications
You must be signed in to change notification settings - Fork 1
Getting Started
Jesse Redl edited this page Feb 11, 2017
·
3 revisions
- Checkout the Fantasm source.
- Place the fantasm package in your Python path (found in the src directory).
- Write an fsm.yaml file for your desired machine. See YamlDescription for details.
- Write event handlers for the states. See FsmActions for details.
- Add the Fantasm mount point to your app.yaml file. See AppYaml for details.
- Hit the machine-specific url for your machine. The FSM will begin to execute, queuing tasks and executing your event handlers. See MachineEntryPoints for details.
There is a sample application located in the test directory of the download that shows a number of sample machines. Use the development app server pointing at this application and hit the root page (e.g., http://localhost:8102). Instructions appear on that page.
NOTE The test application relies on a symbolic link to the fantasm directory in src. Depending on your operating system or your svn client, you may need to manually copy the src/fantasm directory into your test directory.