BPM, Workflow, and Case

 View Only
  • 1.  Get workflowNumber using Process Engine REST Service

    Posted 14 days ago

    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
    ------------------------------


  • 2.  RE: Get workflowNumber using Process Engine REST Service

    Posted 9 days ago
    Edited by Mohammed Ghazali 9 days ago

    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
    ------------------------------



  • 3.  RE: Get workflowNumber using Process Engine REST Service

    Posted 5 days ago

    Hello Mohammed,

    Thank you for your advice.

    When use this request https://host:port/peengine/P8BPMREST/p8/bpm/v1/workflows?caseFolderId={40104493-0000-CC18-B944-D71EFF7C552F} I get statut message 404 Not Found



    ------------------------------
    Mansour SOW
    BPM Technical Lead
    ------------------------------