Back
May 31, 2022
Implementing A Workflow Framework
Overview
- Introduction
- Use Cases
- The Framework
Introduction
TODO
Use Cases
- Payment processors
- Job application processors
The Framework
We can design a framework using Profile
, Stage
, Action
and MessageContext
.
- A Profile executes a list of Stage in sequence
- A Stage executes a list of Action in sequence
- An Action executes the actual logic
- A MessageContext is an object instance that is passed from action to action during runtime. It stores details and states of the profile flow.
Profile
Attributes:
- Profile Id
- Default Profile Id
- Description
Consider Profile Id
as a product name derived from unique combination of product attributes.
For example, a product can be uniquely identified using :
### Stage
Attributes:
1. Stage Id
1. Stage Name
1. Stage Description
1. Stage Order
1. Flow Id
I
### Action
Attributes:
1. Task Id
1. Task Name
1. Task Description
1. Task Order
1. Stage Id