- Source:
Methods
(static) all() → {Array.<Workflow>}
Returns all non-disposed workflows of any state.
- Source:
Returns:
- Type
- Array.<Workflow>
(static) clear()
Clears all instances. By default, all engines are shut down
and fire the end event.
- Source:
(static) create(definition) → {Workflow}
Creates a new workflow instance by given workflow definitions.
Parameters:
Name | Type | Description |
---|---|---|
definition |
object | the workflow definitions object |
- Source:
Returns:
- Type
- Workflow
(static) dispose(instanceId, forceopt)
Fully disposes a workflow, including any event listener
to it, or its current step.
Once complete it will finally remove the workflow from
the internal instances list.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
instanceId |
string | ||
force |
boolean |
<optional> |
- Source:
(static) get(id) → {Workflow}
Gets a workflow instance by its id
Parameters:
Name | Type | Description |
---|---|---|
id |
string |
- Source:
Returns:
- Type
- Workflow