BPM, Workflow, and Case

BPM, Workflow, and Case

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

 View Only
  • 1.  Adding Quick Tasks in IBM Case Manager - need help to get this working

    Posted 10/18/21 09:42 AM
    I am trying to get the quick tasks script to run based on the following document:
    Announcing Quick Tasks - the Newest Member of the IBM Case Manager Task Family

    I have setup the To-Do List widget and Script Adapter Wires in the following way:


    The Script Adapter JS is as follows (from the document linked above):


    After deploying the solution and "refreshing the to-do" list:


    I would like help in getting this to work.

    Thanks!



    ------------------------------
    Soham More
    ------------------------------



  • 2.  RE: Adding Quick Tasks in IBM Case Manager - need help to get this working

    Posted 10/19/21 11:45 AM
    Edited by DAVE PERMAN 10/28/21 11:18 AM
    Hi.

    It appears you are on a process task page.

    The example was written using an event button added to the Case Toolbar widget and wired to the Script Adapter on a Case Details page.

    Depending which page type you are on, the context in the payload will be a little different. I suggest adding a debugger break at the beginning of your scrip and having a look at what is being passed fo you. Once you have the case reference, the script should work as advertised.

    You can also add the following line to the end of the script to automatically refresh the To Do widget to show your new Quick Tasks:

    this.onBroadcastEvent(“icm.RefreshToDoTaskList”,null);


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



  • 3.  RE: Adding Quick Tasks in IBM Case Manager - need help to get this working

    Posted 10/29/21 09:13 AM
    Hi Dave,

    I redid everything on the Case Details page as per your suggestions and the script worked for me.
    Thank you for your help.


    ------------------------------
    Soham More
    ------------------------------