10 Extensible development

This topic describes about the Extensible development.

ThedDeveloper can add his code in hook packages and release specific JavaScript files. This is similar to any other Maintenance or Transaction screen.

Coding in JavaScript

Custom action codes defined by the developer are defined in the JavaScript file. It is usually defined by the click of a button. The action code is defined and the request xml is built and passed to the server.

These codes are written in release specific JavaScript file

Example: Figure below shows a snippet from STDCSNET_CLUSTER.js

Note:

The fn_batch() which is invoked on clicking of the Process button.

Here action code is set as ‘NET_BATCH’ and request xml built and passed to the server and response processed based on response xml.

Coding in Packages

The developer can write the business logic in fn_main which will be present in the release-specific hook package. Skip Handlers can be used to skip the code in any previous release stages if required. Processing logic has to be written for the user-defined action codes in the release-specific hook package

The above figure shows the handling for the user defined action code NET_BATCH in fn_main of stpks_stdcsnet_cluster.sql.