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

Generate URLs of managed assets

Managed assets are images, style sheets, AMD modules or other assets that are part of a Coach View, but are developed outside of Process Designer. To access these assets from a Coach, you might need use a global JavaScript function to generate the URL of the asset.

For example, to get the URL of an AMD module which is contained in a zip file.


com_ibm_bpm_coach.getManagedAssetUrl

This global JavaScript function composes the URL to the managed assets without checking whether the asset exist or not.

syntax

com_ibm_bpm_coach.getManagedAssetUrl = function(assetName, assetType, projectShortName, returnWithoutAssetName)

returns

the URL of the managed asset. If assetType is not one of the three allowed (see the following table), the function returns null.
These are the parameters of the function.

Parameters of the global function com_ibm_bpm_coach.getManagedAssetUrl
Parameter Description
assetName (String) The file name of the managed asset.
assetType (String) The type of the managed asset. Must be one of the following:

  • com_ibm_bpm_coach.assetType_WEB: web managed asset (css, png, ..)
  • com_ibm_bpm_coach.assetType_SERVER: server managed asset (for example zip, jar)
  • com_ibm_bpm_coach.assetType_DESIGN: design managed asset (xsl)

projectShortName (String) Optional. The short name of the project where the managed asset is requested. If this is not provided, the current project is assumed
returnWithoutAssetName (Boolean) Optional. Indicates whether the return url should include the asset name. If this parameter is not provided, the default is false, and the asset name is included in the url path.

Coach and Coach View reference information