BPM, Workflow, and Case

 View Only
  • 1.  Call to icm.action API from a BPM coach

    Posted Fri October 07, 2022 08:52 AM
    Hello,

    Do you know if it is possible in CP4BA 21.0.3 to call specific Case actions directly from a BPM coach and not through a script adapter ?

    What we want to achieve in a workflow solution with case features is :
    - in a coach, we want to allow the user to select the next activity to be started
    - then, once the activity is started, we want to automatically open the related work item page in Case Manager so that the user is able to process this task immediately.
    Thanks to this, the user will not have to switch to the Work page, search for the new task and reopen it manually.

    Thanks for your help and do not hesitate if you need more information,

    Hervé

    ------------------------------
    Hervé Fiolle
    ------------------------------


  • 2.  RE: Call to icm.action API from a BPM coach

    Posted Tue October 25, 2022 04:01 AM
    Hello,

    I would like to give additional details on our need: we are working with a Case solution with BPM workflows (Cloudpak for Business Automation 21.0.3) and we want to be able to call from a coach a JS icm action (e.g. icm.action.workitem.OpenWorkItemPage, icm.action.task.CompleteToDoTask)

    Do you have any idea to do this?

    Thank you very much

    ------------------------------
    Hervé Fiolle
    ------------------------------



  • 3.  RE: Call to icm.action API from a BPM coach

    Posted Thu October 27, 2022 04:31 PM
    Hello Hervé

    Are you referring to the ability for the end user to see the "Add Activity" action, select a Discretionary Activity and if the underlying process has a launch UI, display it immediately in the usual new case tab?


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



  • 4.  RE: Call to icm.action API from a BPM coach

    Posted Fri October 28, 2022 12:39 AM
    Hello Dave,

    Yes, that’s exactly what we need to achieve !

    Thanks for guiding us to find the right solution,

    Hervé




  • 5.  RE: Call to icm.action API from a BPM coach

    Posted Fri October 28, 2022 05:23 AM
    Edited by Ramesh Bhat Fri October 28, 2022 05:26 AM
    Hi Hervé,

    Add Activtiy action on the Case toolbar is the easiest way to initiate a Discretionary task. However, if you want to initiate a Case Activity from coach UI in the Case Details adapter page CASEREST API is another way. It returns TaskId in the response.
    To open the Work details in the Process Task Details Adapter we need to invoke ICMAPIPlugin service with appropriate action. I think this needs case page widget context and ScriptAdapter is needed to invoke the service call.


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