Constructor
new Workflow(workflow, opts)
Creates a Workflow
.
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
workflow |
object | The initial workflow object. This User object will be extended with workflow properties. |
||||||||||||
opts |
object | The configuration options. Properties
|
- Source:
Methods
_buildTasksRequest() → {Request}
Builds the correct Request
object depending of whether this workflow is attached to a document or not.
- Source:
Returns:
A request object.
- Type
- Request
fetchGraph(optsopt) → {Promise}
Fetches this workflow graph.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
opts |
object |
<optional> |
Options overriding the ones from this object. |
- Source:
Returns:
A promise object resolved with the workflow graph.
- Type
- Promise
fetchTasks(optsopt) → {Promise}
Fetches the tasks of this workflow.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
opts |
object |
<optional> |
Options overriding the ones from this object. |
- Source:
Returns:
A promise object resolved with the tasks.
- Type
- Promise