examples package: Using Flux
Event Based Workflow is Martini's very own workflow engine. The
examples package contains sample Event Based Workflow to demonstrate its features such
as error-handling, data-processing, waiting for an event, triggering other workflows, and others.
Please see the following articles for more information:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
examples ├── ... └── code └── flux ├── model │ ├── Order.model │ └── Product.model └── services │ └── CheckProductAvailability.gloop ├── ErrorHandling.flux ├── FluxWithTag.flux ├── FluxWithTrigger.flux ├── Polling.flux ├── ProcessData.flux ├── ProcessExternalEvent.flux └── WaitingUntilDate.flux
The following table describes each of the services available:
||Demonstrates error handling in Flux.|
||Demonstrates the usage of tags.|
||Demonstrates how to use triggers.|
||Demonstrates how to use a loop back transition and wait expression with a duration.|
||Demonstrates how to pass data from one state to another.|
||Demonstrates how to wait for an event and process it.|
||Demonstrates how to use wait expressions with dates.|
Simply open to inspect or run any of these services to see how they work. Comments are provided to help explain the components of each service and why things are wired the way they are.