List all methods of REST API and explain the API functionality

Start Flow (new)

This API is used to start process. When user submits an application, the server calls BPMN to start the process.

URL: http://[SERVER]:[PORT]/BPMREST/service/runtime/process/start
HTTP Method: POST
HTTP Request Header: Content-Type: application/json
HTTP Request Body: 	{
	"processName": [String: Process name],
	"appName": [String: App name],
	"uniqueId": [String: Process ID],
	"snapVersion": [String: Snap version],
	"object":{
		Process Business Object        
	}
}
HTTP Response Body: 	{
  				"data" : [String: Reference Instance ID],
  				"code" : [Long: Code value],
  				"timestamp" : [Long: Timestamp value],
  				"totalRecordCount" : [Long: Total record count]
 	}

Start Flow (old but still available)

This API is used to start process. When user submits an application, the server calls BPMN to start the process.

Claim Task

This API is used to claim task. Users can find tasks that they want to work on and can claim task for specific user if it is not yet assigned to him.

Complete Task

When user claim task and work on their task is finished, process runtime provides method to complete task. Application need to acknowledge the process runtime to move to next node.

Get Task By Instance ID

This API returns an array list of all active task information not including the business object in the process instance by referencing the instance id from method "Start Flow"

Get Task By User/Role

Get Task Variables

This API returns business object variable from process runtime.

Assign Task(by users)

This API is used to set candidates to task. API provides parameter list incase more then one candidate is applicable for a single task.

Refresh Cache

This API is used to refresh the cache for all process in the server.

Class Action

This API is used to refresh the cache for a specific process or generate BO. Only the parameters related to that particular process will be updated.

Last updated