BPM, Workflow, and Case

BPM, Workflow, and Case

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

 View Only
Expand all | Collapse all

unbind config variable from coach view to stop onChange event

  • 1.  unbind config variable from coach view to stop onChange event

    Posted Thu December 21, 2023 07:17 PM

    i have a coach view that is bound to a business object and to 2 configuration variables (bot are simple type, an integer and a string). how can i "unbind" the configuration variables so they dont fire the "change" event handler of the view when the configuration varaible values change? i know that i can ask for event.type !=config but i want to unbind them all together.

    im on ibm bpm 8.5.6 btw



    ------------------------------
    jhon wick
    ------------------------------


  • 2.  RE: unbind config variable from coach view to stop onChange event

    Posted Fri December 22, 2023 02:18 AM

    Hi John,

    First of all, for simple types, the view framework detects data changes and automatically notifies the view of the change. 

    The bind() and bindAll() functions return handles containing the unbind() function but for simple types we are not adding any binding handles.

    event.type !=config is the simplest way of handling this, can you please explain your use case why you are looking to unbind the simple type configuration options?

    Thanks!



    ------------------------------
    Atanu Roy
    Lead Engineer
    London Stock Exchange Group
    ------------------------------