Workflow Instances
Last updated
Last updated
A WorkflowInstance
is a real-time execution of a deployed workflow. Workflow instances are spawned when the prime-workstep within a deployed within is triggered. A single deployed workflow can spawn an unlimited number of workflow instances.
The Workflows API is intended to function within the context of an Organization
acting as a Participant
in a Workgroup
.
Within this context, it is assumed that:
an Organization
scoped JWT is available for use
Organization
is a participant in a Workgroup
a valid Workflow
has been created and successfully deployed
WorkflowInstance
SchemaField | Type | Description |
---|---|---|
WorkflowInstance
POST
https://baseline.provide.services/api/v1/workflows
Passing the id
of a workflow
as the value of the workflow_id
field will spawn a WorkflowInstance
based on the given Workflow
WorkflowInstance
DetailsGET
https://baseline.provide.services/api/v1/workflows/:id
Retrieves detailed information for a specified WorkflowInstance
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
id
uuid
id
of Workflow
created_at
date/time
timestamp of Workflow
creation
deployed_at
date/time
timestamp of Workflow
deployment
metadata
object
arbitrary data pertaining to Workflow
participants
array
list of Participant
objects included in a Workflow
status
string
current Workflow
status
shield
string
address of shield
contract
version
string
current Workflow
version; required for deployment
workgroup_id
uuid
id
of target Workgroup
workflow_id
uuid
id
of Workflow
prototype used in the spawning of the WorkflowInstance
worksteps
array
list of WorkstepInstance
objects included in a WorkflowInstance
authorization*
string
bearer <JWT> scoped for an Organization
name*
string
name of Workflow
workgroup_id*
uuid
id
of related Workgroup
version
string
current Workflow
version. Required for deployment
workflow_id*
string
id
of workflow
used to spawn WorkflowInstance
id*
uuid
id
of WorkflowInstance
for which detailed information is desired
authorizaton*
string
bearer <JWT> scoped for an Organization