BPM, Workflow, and Case

BPM, Workflow, and Case

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

 View Only
  • 1.  find all the cases based on a case type

    Posted Thu February 22, 2024 02:56 PM

    Hello, 

    Please can someone help me to use this exemple to find all the cases based on a case type :

    An example of a query to find all the cases based on a case type:

    GET http:// server:port/openfncmis/atom11/CMTOS/query?q=SELECT%20name%20FROM%20cmis%3Afolder%20WHERE%20cmis%3AobjectTypeId='XY_CaseType'



    ------------------------------
    El Mehdi ES-SAFI
    ------------------------------


  • 2.  RE: find all the cases based on a case type

    Posted Fri February 23, 2024 02:24 AM

    Hello El Mehdi, have you tried to  CURL as per https://www.ibm.com/support/pages/examples-interacting-case-manager-using-rest-api-and-cmis?



    ------------------------------
    Ahmed Ibrahim
    ------------------------------



  • 3.  RE: find all the cases based on a case type

    Posted Fri February 23, 2024 02:50 AM

    Hello Ahmed, 

    Thank you for the time you spent responding to me. Yes, I have already seen the link you sent me, but what I don't understand is the "atom11" parameter. What is it? If you have any idea and know where I can retrieve it,

    Thanks once again for your help.



    ------------------------------
    El Mehdi ES-SAFI
    ------------------------------



  • 4.  RE: find all the cases based on a case type

    Posted Fri February 23, 2024 03:15 AM

    Hello El Mehdi, I think atom11 is something related to one of existing content in https://www.ibm.com/support/pages/examples-interacting-case-manager-using-rest-api-and-cmis?. They use  example3.txt which has XML content.

    ICM uri is like that http://host:port/context/CASEREST/v1/resourceName[?resourceParameters]

    https://www.ibm.com/docs/en/case-manager/5.3.3?topic=protocol-case-management-rest-resource-uris



    ------------------------------
    Ahmed Ibrahim
    ------------------------------



  • 5.  RE: find all the cases based on a case type

    Posted Fri February 23, 2024 07:08 AM

    Hello Ahmed , I sincerely appreciate your response, but unfortunately, it doesn't quite meet my requirements.

    Thank you.



    ------------------------------
    El Mehdi ES-SAFI
    ------------------------------



  • 6.  RE: find all the cases based on a case type

    Posted Fri February 23, 2024 03:33 AM

    Hi El Mehdi,

    I think the URL may no longer be correct. In general, your URL should look like this:

    GET https://<server>:<port>/<cmis_base_url>/resources/<tos_symbolic_name>/Query?q=SELECT%20name%20FROM%20cmis%3Afolder%20WHERE%20cmis%3AobjectTypeId%3D'<your_case_type_symbolic_name'

    You should be able to find your CMIS URL by looking into your deployment (e.g. WAS admin console) and you should validate that you can access the CMIS root page in your browser

    https://<server>:<port>/<cmis_base_url>/index.jsp

    with the user you want to call the CMIS REST API.

    Does that help?

    Best regards



    ------------------------------
    Michael Kirchner
    Senior Partner Technical Specialist
    IBM Technology
    Germany
    ------------------------------



  • 7.  RE: find all the cases based on a case type

    Posted Fri February 23, 2024 07:10 AM

    Hi Michael

    Ohhhhhhhh thank you so much! That's exactly what I'm looking for. Well done, and thank you very much for your help. You're right; the link is incorrect.



    ------------------------------
    El Mehdi ES-SAFI
    ------------------------------



  • 8.  RE: find all the cases based on a case type

    Posted Wed February 28, 2024 04:50 AM

    Hello Michael ,

    I found the following example on the internet to inject content into a folder via the CMIS API, but it's not working. I tried changing the link to the one you gave me before, but it still doesn't work. Do you have any idea on how to add a document to a folder?

    Thank you for your time and assistance.

    Lastly an example of adding a document to a specific case:

    Again you must use the specific the GUID of the case, which in this example is 'F1C1EEB9-AC69-C853-87A9-5BF26D900000'.

    > curl -u user:password -X POST http:// server:port/cmid_base_url/tos_symbolic_name/children?id=F1C1EEB9-AC69-C853-87A9-5BF26D900000^&ContentType=application/pdf -d @example.pdf



    ------------------------------
    El Mehdi ES-SAFI
    ------------------------------