BPM, Workflow, and Case

BPM, Workflow, and Case

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

 View Only
  • 1.  Load CSHS from Process - List of Complex Shared Business Object

    Posted 25 days ago

    Greetings

    We have a BAW process having a step where CSHS is implemented. CSHS takes an input variable from process which is Shared Complex Business Object List. Data in this business object is updated from an external application through a UCA. Customer wants the UI to refreshed when data is updated in the process. 

    We have a data change event on the CSHS with the below line of code to apply the incoming changes

    tw.system.dataChangeUtils.applyAllIncomingVars();

    We have noticed if the Business object is not list then updated data is reflected on the UI but when it is a list then UI is not refreshed.

    Can someone suggest how CSHS can be refreshed from the updated process data, even on the click of button on the CSHS would help

    Thanks



    ------------------------------
    Lakshya Agarwal
    ------------------------------


  • 2.  RE: Load CSHS from Process - List of Complex Shared Business Object

    Posted 21 days ago

    Hi Lakshya,
    I played with your scenario a bit, and I think what you are doing is something like this.
    You have a business object marked as shared:

    And you have a variable in a process whose type is the above, but marked as a list:

    If you are passing the list around, then you will not get notified, and the changes will not be shared.  This is because the list setting is on the variable, whereas it is the business object itself that has the "shared" setting.  With the setup above, you could potentially share data within a business object added to the list, but that is not what you want to do, I think.

    In order to make this work, you need a shared business object that hold the list of entities you want to monitor/share.  For example, my setup above would need to be changed to:

    With the variable in the process being non-list:

    The above works fine with my tests.

    Hope this helps,

    Grant.



    ------------------------------
    Grant Taylor
    ------------------------------