Locating the related object IDs to run the move token API for IBM Business Process Manager
Xin Yang 120000GYBH Visits (16711)
IBM Business Process Manager provides a REST API that you can use to move a token for a specific process instance. This method is very useful when the process instance is stuck. The REST API has different parameters that are object IDs of the token, flowObject and so on. Many people have asked how to find those IDs. I will give out some ways to do that in this blog.
The Rest API call syntax to move token is as follows:
In that call, here are the input parameters:
Find out the TokenID value
To find out the TokenID that belongs to the last activity, use the RestAPI 'current state' method from the Process API and look at the 'execution tree'. Use one of the following methods
Finding out the FlowObjectID
The FlowObjectID is used for the next activity to which the token should move, for example '–target string'
Every object that is involved in the process flow has an ID like the following example and it stays consistent across snapshots:
For business process definition (BPD) activities, it is shown in Process Designer. See the following screen shot:
Another way to find the FlowObjectID is from TWX file itself. You can extract the TWX file and look in the folder named ‘objects’ for xml files with prefix ‘25’. These files they contain the BPDs. The following example shows the flowObjectID for human task ‘HT1’:
The previous methods might help you find those IDs when you want to move the token to solve a process instance issue in IBM Business Process Manager.