Thank you for your advice.
Original Message:
Sent: Sun November 17, 2024 03:05 AM
From: Mohammed Ghazali
Subject: Get workflowNumber using Process Engine REST Service
Hi @Mansour SOW
By using the Case Management REST API and Process Engine REST API in combination, you can retrieve the workflowNumber related to a caseFolderID.
Typically the workflowNumber is tied to process instances linked to the case, so you would first query for the case folder, then inspect the process instance details associated with it to get the workflow information.
Steps to Get Workflow Number by Case Folder ID:
1. Get Case Details from Case Management API:
First, you will need to query the Case Management API to retrieve the caseFolderID and find related process instances.
API Endpoint:
GET /v1/casefolders/{caseFolderID}
This will return details of the case folder, including metadata, any associated process instances, and workflow data if they are linked.
2- Query the Process Engine for Workflow Details (Optional):
If the workflowNumber or processInstanceID is not directly returned in the case folder query, you may need to query the Process Engine API to retrieve workflow data linked to the case folder.
API Endpoint:
GET /v1/workflows?caseFolderId={caseFolderID}
3- Use the Workflow ID to Get Further Process Details (Optional):
If needed, you can use the processInstanceID or workflowNumber from the previous response to get additional process details, including the status or other information related to the process execution.
API Endpoint:
GET /v1/workflows/{processInstanceID}
This will return detailed information about the workflow process.
4. Combine the Results:
The workflowNumber will be part of the response.
------------------------------
Mohammed Ghazali
Original Message:
Sent: Tue November 12, 2024 05:32 AM
From: Mansour SOW
Subject: Get workflowNumber using Process Engine REST Service
Hello Community,
I want to get workflowNumber by caseFolderID using Process Engine REST Service(see capture).
I needs your tips
------------------------------
Mansour SOW
BPM Technical Lead
------------------------------