IBM BPM, V8.0.1, All platforms > Create processes in IBM Process Designer > Create user interfaces for business processes > Coach and Coach View reference information
The view object
A view is a self-contained runtime JavaScript object that can render itself in a browser.
The runtime artifacts and behavior of a view are defined in the Coach View Editor at design time. A view object handles interactions with the Coach runtime engine by performing the following functions:
- Implements user defined JavaScript methods
- Implements predefined callback functions
- Accesses binding and configuration data
- Starts helper methods by accessing the context object this.context.
For example, fire a boundary event.
View
These are the components and artifacts that make up a view.
- Dependent resources:
- Included scripts (css and JavaScript files)
- Inline JavaScript and CSS
- HTML: defined in the Layout Tab
- Preview Image: used in design time and defined in the Overview Tab
- Scope JavaScript object that handles interactions with the Coach run time
- Implements event handlers that perform predefined callback functions.
- The scope object has access to a context object, this.context to run code that fires events and accesses binding and configuration data and invokes other helpers methods.
Composite view
A composite view is just a view that has subviews which are enclosed in a view. A composite view also provides binding mapping and configuration data for each subview. When the load() function is called at run time, the load() function of each subview is invoked before the load() function of the composite view. The view() call is invoked in the same order as load(). The unload() calls are invoked in the opposite order as load(); when the unload() function is called at run time, the unload() function of the composite view is invoked first, then the unload() function of each subview is invoked.
Coach
A coach references one or more views and provides the actual bindings and configuration values to referenced views.
Coach and Coach View reference information
Related reference:
The context object
Predefined data
Event handlers