Workflow and Task API

In this article, you will learn how to manage Workflows and Tasks over the API. 

There are two different URLs where you can find our API: 

  • Base URL: https://<FireStartServer>:<Port>/api
  • Swagger: https://<FireStartServer>:<Port>/api/swagger

What follows are several methods you can use to perform operations on tasks or workflows.

Resolve User Permissions

This method needs to be called a single time to resolve permissions for the current user. If you do not call it the FireStart server will have no permissions resolved for the user and will return an unauthorized error. 

workflow-and-task-api-2018-05-16-1

Workflows

To get an overview of all workflows one of these two methods can be used. The difference between the two methods is that the second method is faster, but it returns less information about each workflow and only returns workflows where the model is published.

workflow-and-task-api-2018-05-16-3

 

There are three ways to delete/stop a workflow through the API. Each method needs the ExecutionId as an input parameter. The ExecutionId can be found in the Id property of the return value from one of the two methods above.

Stop a workflow and move it into the archive: 

workflow-and-task-api-2018-05-16-4

Stop a workflow if it is still running and move it to the recycle bin: 

workflow-and-task-api-2018-05-16-5

Stop a workflow if it is still running and permanently delete it from the system: 

workflow-and-task-api-2018-05-16-6

Read Tasks

To get an overview of all tasks one of these two methods can be used.

workflow-and-task-api-2018-05-16-7

workflow-and-task-api-2018-05-16-8

With this method and the property Id, further information for a single task can be retrieved. 

workflow-and-task-api-2018-05-16-9

The return value contains all important information about the task.

User in charge:

workflow-and-task-api-2018-05-16-10

Role: 

workflow-and-task-api-2018-05-16-11

ExecutionId:

workflow-and-task-api-2018-05-16-12