Open topic with navigation

TIBCO® BPM Enterprise 5.5.0

# 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

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO® BPM Enterprise

Copyright © 2015-2024. Cloud Software Group, Inc. All Rights Reserved.