How to use server side variable in custom html script of IBM BPM Coach
In this post, let us look at how display the value from a server side variable on a coach using custom html.
In older versions of IBM BPM i.e., before v8.0 it is easier to both bind a server side variable and access value of server side to a custom html using the syntax tw#local#variable using which a variable can be bound to any input control of the custom html which enables us to get or set the value to or from the variable.
But starting from the v8.0 after the introduction of new coaches and coach view, the above syntax no longer works and it is also not possible to set the value to a server side variable directly from the input control but it is possible to get the value using the below syntax.
Directly in coach :
{{tw.local.variable}}
In Coach view :
To Access business Data variable:
{{tw.businessData.variable}}
To Access configuration variable:
{{tw.options.variable}}
In older versions of IBM BPM i.e., before v8.0 it is easier to both bind a server side variable and access value of server side to a custom html using the syntax tw#local#variable using which a variable can be bound to any input control of the custom html which enables us to get or set the value to or from the variable.
But starting from the v8.0 after the introduction of new coaches and coach view, the above syntax no longer works and it is also not possible to set the value to a server side variable directly from the input control but it is possible to get the value using the below syntax.
Directly in coach :
{{tw.local.variable}}
In Coach view :
To Access business Data variable:
{{tw.businessData.variable}}
To Access configuration variable:
{{tw.options.variable}}