Wednesday, October 15, 2014

How IBM BPM Coach framework is being loaded in client browser?

IBM BPM coach framework loads process app and associated toolkits’ java script libs and then it loads dojo framework scripts. After that it loads all coach view definitions, CV data view binding definitions and then it loads html body with all coach view default <DIV> tags to coach views.
You will find the following codes in html source code.

Load process app and toolkit JS libs.



Above piece of code loads all JS webfile assets from process app and associated toolkits.

Then framework loads dojo framework packages,




And then coach framework load coach view definitions, sample coach view source of textbox CV.



Then, it loads coach view binding definition.



You can find runtime binding rest service url, visibility, label and etc.

And then it loads the html body



In the above code, you can find the data type and data config.
Data type – it refers to particular the coach view definition
Data config – it refers to the binding and visibility definition of coach view.

Coach framework loads application JS libs, dojo packages, dojo libs, coach view definitions, coach view config’s and finally it load html body with coach view div to link CV definition and config.
A client browser takes care of loading coach views and binding of variables using dojo framework.