How to Create Instance in BPM using Rest API?

There are different Methods to create instance in for BPD in IBM BPM from an external system using REST API.

1. Using Rest API url as shown below. This is the URL which is exposed by IBM BPM via REST API to start a BPD or trigger an instance for BPD from an external system.


In order to Use the above URL one should know the parameters like bpdId, snapshotId and ProcessAppId., which may change every time a new snapshot version is deployed. This is one of the disadvantage of using above method.

2. Another method is to create instance instance using RestAPI Start service method. Below shown is sample url for Start service.


In the above URL POC is teh Process App name and InitiateBPDService is service to be Invoked, which will contain the code to invoke the service.
In this service, we can use Invoke UCA  to trigger an instance for BPD or we can use web api methods in server script to initiate an instance for BPD(click here to see various method of triggering BPD).

Initiate BPD using Server script

Initiate BPD using UCA

You may find below links useful .
Invoke Service via Rest API
Various Methods to Trigger BPD

No comments:

Post a Comment