BPM, Workflow, and Case

BPM, Workflow, and Case

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

 View Only
  • 1.  Case Manager REST APIs

    Posted Thu May 25, 2023 04:23 AM
    Hello All,
     
    Currently I am using Case manager REST APIs to fetch current users roles details from IBM BAW Case solution from Script Adaptors. Here my problem is ICN is hosted on different server and BAW is hosted on deferent server. My problem is I have to using static name of BAW server to access REST apis from navigator, is there any way to get server names dynamically?


    ------------------------------
    Rutvik Rajpura
    ------------------------------


  • 2.  RE: Case Manager REST APIs

    Posted Thu May 25, 2023 04:54 AM

    Hi Rutvik,

    You can use navigator JavaScript API model objects to get current role in the solution or you can query the user to get all the roles. What is your requirement so you are trying to get it from CASEREST? Could you provide the link for the CASEREST API you are using?



    ------------------------------
    Ramesh Bhat
    ------------------------------



  • 3.  RE: Case Manager REST APIs

    Posted Thu May 25, 2023 05:44 AM

    Hello Ramesh,

    I am looking for all the roles in which user is present.
    Right now below rest URL I am using to fetch myRoles.
    "https://CaseManagerServer/CaseManager/P8BPMREST/p8/bpm/v1/appspaces/" + "myAppSapce" + "/myroles?cp=ConnectionPoint"



    ------------------------------
    Rutvik Rajpura
    ------------------------------



  • 4.  RE: Case Manager REST APIs

    Posted Thu May 25, 2023 08:57 AM

    Ok, you are using PE Rest service for this. Instead, you can use navigator's JS api to get the user roles in the current solution.

    ecm.model.desktop.currentSolution._solutionRoles;

    This will retrieve the roles (in which user is present) of the current solution. If you need something more related to user then you can query the user on Repository object.



    ------------------------------
    Ramesh Bhat
    ------------------------------



  • 5.  RE: Case Manager REST APIs

    Posted Thu May 25, 2023 09:41 AM

    Hello Ramesh,

    Thanks for the response,
    Will it work if am adding user to LDAP groups and groups to roles? I tried adding user directly into the Roles and it worked, Due to limitation of environment I am not able to verify it by adding user to LDAP Groups.
    Also if you have any reference of querying the repository let me know? It will be a great help.



    ------------------------------
    Rutvik Rajpura
    ------------------------------



  • 6.  RE: Case Manager REST APIs

    Posted Thu May 25, 2023 11:24 AM

    Yes, that should work.



    ------------------------------
    Ramesh Bhat
    ------------------------------