leaphub / leaphub-flow
A library for the definition and execution of job flows
1.1.2
2017-08-24 07:35 UTC
Requires
- php: >=5.5
- symfony/event-dispatcher: ^2.5|^3.3
Requires (Dev)
- phpunit/phpunit: 4.*
This package is auto-updated.
Last update: 2024-12-11 22:25:09 UTC
README
LeapHub flow allows you to define and execute job flows by specifying an arbitrary amount of jobs and their pre and post conditions.
Installation
Usage
-
Create the jobs to be executed
-
Instantiate them and specify pre and post conditions
-
Execute the flow
Events
The library provides a number of events which allow you to hook into the flow execution process. The following events are triggered during the execution of a flow:
flow.flow_exec.started
: Immediately before a flow is executed.flow.flow_exec.finished
: After all job of a flow have successfully been executed.flow.job_exec.started
: Immediately before a job in a flow is executed.flow.job_exec.finished
: After a job in a flow has successfully been executed.
For more information on the flow events see Leaphub\Flow\Event\FlowEvents
.
Running the tests
If the dev-dependencies are installed via composer, the test suite can be executed using:
bin/phpunit -c phpunit.xml.dist --coverage-html ./coverage
Contributing
- Fork the repository
- Create a branch for your contribution e.g. my-awesome-feature
- Mage your changes (Follow the git commenting guidelines and code style)
- Run the tests to ensure everything works fine
- Crate a pull request