Creating an Instance from a Specified Process Template

When you deploy a project and you start a process for it, you can start it from the Process Manager > Process Templates tab by clicking the Start button. However, if the project has some parameters to be passed, you can only start it directly from the API or else it must be started through a business service.

Let us consider an example of a BPM project which needs some parameters to be passed for the process instance to be created.

The sample for data parameter is as follows:

"data": "{ \"BOMParam\":
{ \"datetimezType\":\"2020-05-31T07:59:38.000Z\",\"dateType\":\"2020-05-30\",\"enumType\":\"ENUMLIT1\",\"booleanType\":true,\"textType\"
:\"TestsimpletextinBOM\",\"numberType\":35.0}
    Procedure
  1. Import the BPM project which needs some parameters to be passed for the process instance to be created.
  2. In the Process Management Service, enter sample API where the sample REST call URL is: http://<hostname>/bpm/processes/v1/instances

    The sample data parameter is as follows:

    "data": "{ \"BOMParam\":
    { \"datetimezType\":\"2020-05-31T07:59:38.000Z\",\"dateType\":\"2020-05-30\",\"enumType\":\"ENUMLIT1\",\"booleanType\":true,\"textType\"
    :\"TestsimpletextinBOM\",\"numberType\":35.0}

    The sample for how to pass a simple type of parameter is as follows:

    ,\"numberparam\":14782.0,\"textparam\":\"Testsimpletext\"}"

    The structure of BOMParam is as follows:

  3. Click Execute.
ResultThe Process Instance starts.

Example:

Endpoint
http://ace-nightly-test/bpm/process/v1/instancesRequest 
Method:  POST
Request Payload
{
    "packageId": "1",
    "processId": "1"
}
Response
p:0a203n