BPM, Workflow, and Case

BPM, Workflow, and Case

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  Search for cases using the Case Management REST API

    Posted Mon January 06, 2025 02:01 PM

    Hi community,

    I want to search cases using  the Case Management REST API.

    For example :host/CaseManager/CASEREST/v1/casetype/{case_name}?TargetObjectStore=xxx&propertyname='xxx'

    Where propertyname is a case property of case type.

    I need your tips



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


  • 2.  RE: Search for cases using the Case Management REST API

    Posted Tue January 07, 2025 09:38 AM

    Hi Mansour SOW,

    I was just looking into the IBM Case Manager and IBM BAW documentation about the Case Management REST interfaces available to see if there is any answer for your query. It appears to me you need to write a custom REST API to meet your requirement as all the OOB Case Management REST API accepts "case folder id" to give the results back rather search a case based on custom metadata as in your case.

    Here are the documentation links for more details.

    IBM BAW 24.x documentation link

    https://www.ibm.com/docs/en/baw/24.x?topic=protocol-getting-changing-case-information

    IBM Case Manger 5.3.x documentation link below.

    https://www.ibm.com/docs/en/case-manager/5.3.3?topic=protocol-getting-changing-case-information

    Thanks,

    Krishna



    ------------------------------
    Krishna Reddy
    ------------------------------



  • 3.  RE: Search for cases using the Case Management REST API

    Posted Tue January 07, 2025 09:46 AM

    Hi Mansour.

    We were looking to that solution as well, but couldn't find it as well.

    An alternative we now use is using CMIS. Possibly you can use this alternative.

    When using a CMIS query you can query on all the case properties using an SQL like syntax on the Case properties.

    The CMIS query is part of the Content Management toolkit.

    The following example shows how to compose and use the CMIS query.

    The "Init ECM Query" initializes the search (DocSearchInput) object and the SQL like CMIS query.

    The local.data.serverName is the name of the server configuration explained later.

    The fields prefixed by HSC are the case attributes.

    The "process Results" shows how you can query the list of found Objects ( ECMSearchResult) returned by the "ECM Document Search Service".

    Each column you defined in the CMIS SQL query can be obtained using the index.

    Sometimes it is also useful to have the caseId, please note that the CMIS identifier contains a leading "idf" prefix while in BAW this is not present.

    To make it work it is also necessary to define a Enterprise Content Management Server object containing the cmis endpoint.

    This is shown in the following example and depends on your configuration.

    A test to find the correct CMIS endpoint is to try to obtain the WSDL using your browser. The endpoint looks like

    https://myserver.bpm.ibmcloud.com/dba/dev/fncmis/wsdl

    I hope this helps,



    ------------------------------
    Henry Schenau
    BAW Integration Specialist
    Nationale-Nederlanden
    ------------------------------



  • 4.  RE: Search for cases using the Case Management REST API

    Posted Mon March 03, 2025 10:22 AM

    Hello. That REST API is more about getting general information about the case type itself and is the sort of things shared by all case instances of that type.

    There is a different case REST for accessing a particular case instance and getting the data it holds.



    ------------------------------
    DAVE PERMAN
    ------------------------------