Process Test & Debug Guideline
Last updated
Last updated
Once a process is completed, user will need to test it before migrating it to other environments. For this ONEWEB provides the Simulator utility.
How to use Simulator? Once the process is validated successfully, click on the Simulation Test tab. Here user can provide the input for testing in JSON format. User can test the process until completion by clicking on the Complete button by changing the inputs accordingly. For more details check section
Once a process is deployed, user can test that process by using any REST client like the Postman.
How to test using Postman?
When you open Postman Application, you must configure the value for testing.
Set request method type as POST.
Set URL: http://{IP}:{Port}/BPMREST/service/runtime/process/{Process name}/start for starting flow.
Click setting Body.
Choose data as raw.
Choose data type as JSON (application/json).
Enter JSON data for input parameter of the process.
Now click Send button and view response text in response panel of the Postman.
On response panel, user will receive Instance ID on data property of JSON text. When instance id is sent, it means the flow has started.
User can use Instance ID to get task id by calling the task service. Set request method type is GET, set BODY is empty and use url as follow. http://{IP}:{Port}/BPMREST/service/runtime/instance/{Instance ID}/tasks
When user want to claim task or complete task, user can bring Task ID and user name for working to set in url as follows. http://{IP}:{Port}/BPMREST/service/runtime/tasks/{Task ID}/claim?user={Username} http://{IP}:{Port}/BPMREST/service/runtime/tasks/{Task ID}/complete?user={Username}