Running Workflow
Last updated
Last updated
The Workflows API enables the initiation of workflows that do not involve integrations requiring interaction with the end user, such as scanning documents or completing forms. All necessary data for the execution of the process can be provided through input parameters.
The initial step is to create a case, which represents an individual who will go through the workflow.
During case creation, you can provide additional data such as first name, last name, number, or company name. These details can be utilized when executing tasks in the workflow. This step must be carried out on your backend server.
Please ensure that you create a Case for every new end user, as it acts as their representation within the system. For returning users, you can utilize the previously created Case to streamline the process.
The second step involves passing custom parameters to the workflow if the process requires it. Configuration of this should be done from the dashboard.
Next, we can initiate the workflow by providing the workflowDefinitionId
, caseId
, and optional parametersId
.
The workflow result will only be available upon its completion. To check if the workflow has finished, one can implement long polling and periodically check its status through an API or receive a webhook with information about the completed process.
Upon receiving confirmation that the workflow has finished, you can then fetch the result of the process. The specific outcome of the process is contingent upon its individual configuration.
Check Workflow Status
Workflow Identifier
Return the Workflow Status.
Id of the Workflow
"63131229-edc5-49d0-888b-7724e65d7d2d"
Id of the Case
"3b2d8a4f-579f-4e2e-a51c-f859e532fe8c"
Status of the workflow
Create a case with provided data
First name
Last name
Personal Number
Phone
Comapny name
Company number
Company address
Case was created successfully
Creation time
Case Id
Case id
Run Workflow
Case identifier for which we want to initiate the workflow
Id of the workflow definition
"3b2d8a4f-579f-4e2e-a51c-f859e532fe8c"
Id of the parameters used in workflow
"4b6ffcb6-ab6d-44b9-b5ab-4b5147b0b302"
Workflow has been run.
Id of the Workflow
"63131229-edc5-49d0-888b-7724e65d7d2d"
Id of the Case
"3b2d8a4f-579f-4e2e-a51c-f859e532fe8c"
Status of the workflow
Get Workflow Result
Workflow Identifier
Return the Workflow Result.
Creation time
Case Id
Case id
Create a set of parameters for given workflow definition to use
Id of the workflow definition
"3b2d8a4f-579f-4e2e-a51c-f859e532fe8c"
Set of parameters for given workflow was created successfully
Id of the parameters set
"c3faa0ef-e83a-41e8-b178-9fd8e4b0ee81"
Id of the workflow definition
"3b2d8a4f-579f-4e2e-a51c-f859e532fe8c"