chencha / processes
Enables definition of a process in a system via json file
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/chencha/processes
Requires
- chencha/conveyor: dev-master
This package is not auto-updated.
Last update: 2025-10-11 22:40:26 UTC
README
##Processes dispatcher
This package is an extension of the chencha/conveyor package found here (https://github.com/prodeveloper/conveyor) This system parses a json file describing a process, compiles it to a chencha/conveyor process and runs it.
A sample process description would be:
{
"name": "Registration",
"belts": [
{
"validation": ["EmailValidation"],
"persistence": [SaveInDatabase","UpdateElastic"]
}
]
}
This would be translated to the following steps
- Start Registration Process
- Run the given data through the validation belt
- Run the subject through EmailValidation class
- If no StopBeltException is thrown then run subject through persistence belt
- Run the subject through SaveInDatabase class
- Run the subject through UpdateElastic class