Title | Added | Status | Last reviewed |
---|---|---|---|
Start Process Cloud Service |
v3.0.0 |
Experimental |
2019-01-09 |
Gets process definitions and starts processes.
-
deleteProcess(appName:
string
, processInstanceId:string
):Observable
<void>
Delete an existing process instance- appName:
string
- name of the Application - processInstanceId:
string
- process instance to update - Returns
Observable
<void>
-
- appName:
-
getBasePath(appName:
string
):string
- appName:
string
- - Returns
string
-
- appName:
-
getProcessDefinitions(appName:
string
, queryParams?:Function
):Observable
<
ProcessDefinitionCloud
[]>
Gets the process definitions associated with an app.- appName:
string
- Name of the target app - queryParams:
Function
- (Optional) - Returns
Observable
<
ProcessDefinitionCloud
[]>
- Array of process definitions
- appName:
-
getStartEventFormStaticValuesMapping(appName:
string
, processDefinitionId:string
):Observable
<
TaskVariableCloud
[]>
Gets the static values mapped to the start form of a process definition.- appName:
string
- Name of the app - processDefinitionId:
string
- ID of the target process definition - Returns
Observable
<
TaskVariableCloud
[]>
- Static mappings for the start event
- appName:
-
startProcess(appName:
string
, payload:ProcessPayloadCloud
):Observable
<
ProcessInstanceCloud
>
Starts a process based on a process definition, name, form values or variables.- appName:
string
- name of the Application - payload:
ProcessPayloadCloud
- Details of the process (definition key, name, variables, etc) - Returns
Observable
<
ProcessInstanceCloud
>
- Details of the process instance just started
- appName:
-
updateProcess(appName:
string
, processInstanceId:string
, payload:ProcessPayloadCloud
):Observable
<
ProcessInstanceCloud
>
Update an existing process instance- appName:
string
- name of the Application - processInstanceId:
string
- process instance to update - payload:
ProcessPayloadCloud
- Details of the process (definition key, name, variables, etc) - Returns
Observable
<
ProcessInstanceCloud
>
- Details of the process instance just started
- appName:
You can use the startProcess
method in much the same way as the startProcess
method in the
Process service (see the Process service page
for an example). However, the cloud version
combines the process details and variables conveniently into the
ProcessPayloadCloud
object.