BPM, Workflow, and Case

BPM, Workflow, and Case

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

 View Only
  • 1.  Process history in coach

    Posted Wed June 14, 2023 06:17 AM

    Hello,

    I built a process in BAW 21.0.3  made up of several user tasks implemented with UI (coach). In the coach, I would like to display a history to review all the tasks performed during the instantiated process.

    Is there a component to display the history of the current process ?

    PS: I don't use case 

    Thank you for your answers



    ------------------------------
    Roussaya SORDA
    ------------------------------


  • 2.  RE: Process history in coach

    Posted Thu June 15, 2023 03:26 AM

    You may try to use "Instance Tasks Section" view from "Dashboards 8.6.0.0" toolkit. To check how to use it open "Instance Details UI Service Template" CSHS from this toolkit. This is a service you see by default when you open process instance details from Process Portal. 

    This view uses "Default Instance Tasks List Service" ajax service, which you can copy, customise, and override default in "Retrieve the list of tasks" configuration option of "Instance Tasks Section" view. Or you can use this default ajax service as a template for your own custom view.

    One of the limitation is that it will retrieve only tasks that occurred. If you need to retrieve more information combine above with BAW documentation about JS API.



    ------------------------------
    Dominik Paraszka
    ------------------------------



  • 3.  RE: Process history in coach

    Posted Thu June 15, 2023 05:02 AM

    Hello Dominik,

    Thank you for your answer. 

    Is it possible to show me how to set up this view especially how to get the process instance id ?



    ------------------------------
    Roussaya SORDA
    ------------------------------



  • 4.  RE: Process history in coach

    Posted Thu June 15, 2023 10:32 AM

    Hello,

    As well as the style discussed by Dominik, there is a JS API to retrieve the stream for a particular process instance. It looks as follows:

    var stream=tw.system.findProcessInstanceByID(tw.local.instanceId).retrieveInstanceStream().streamActivities;

    This API relieves the same information that is available in the Process Portal stream view. The contents of each StreamActivity is discussed in the JS reference in the BAW documentation. In the Dashboards toolkit, there is a Stream Coach View that you could use to display the information retrieved. Or you could format it yourself and show just the pieces that you want to show. 

    Stuart...



    ------------------------------
    Stuart Jones
    Business Automation Technical Specialist
    IBM
    Cedar Rapids IA
    630 390 4436
    ------------------------------



  • 5.  RE: Process history in coach

    Posted Fri June 16, 2023 05:04 AM

    Hello,

    I used the solution given by Dominik and it works.

    Thank you for your answers !



    ------------------------------
    Roussaya SORDA
    ------------------------------