To connect extensions to Foresight Analytics Platform web application, the following installations and settings must be executed:
Web application back end of Foresight Analytics Platform.
Extensions of Foresight Analytics Platform.
Designer of business applications back end.
How to connect extensions to Foresight Analytics Platform web application:
Open the PP.xml file containing settings of Foresight Analytics Platform web application for edit.
Create a new subsection with extension connection settings in the <modules> section. Description of subsections of the <modules> section and attributes and subsections that are required for the specified attributes are given below.
Save changes to PP.xml file.
Restart BI server which is used by web application back end.
Open web application of Foresight Analytics Platform.
As a result, the extension will be connected to the Foresight Analytics Platform web application and the welcome screen will display the button to work with extension.
Names of subsections of the <modules> section for extensions setup:
| Attribute/section | Description |
| <entryform> | Interactive Data Entry Forms |
| <algorithm> | Calculation Algorithms |
| <agreement> | Business Process Management |
Set the following attributes and subsections for the subsections mentioned above:
| Attribute/section | Description |
| name | Name of extension which will be displayed in the web application welcome screen. |
| url | Path to the extension in designer of business applications back end. It is specified in the format: url="http://<server>/DBA_App_v9.2/#/<extension>" The following can be set as extension:
url="/DBA_App_v9.2/#/dataentryform" |
| visible | Indicates whether the extension is displayed in the welcome screen, and extension objects are available in the web application object navigator. Available values:
|
| data | Extension type. Available values:
|
| classId | Identifier of extension object class. Class identifier corresponds to the type given above. It is specified in the format: classId="[<class>]" For example: classId="[268033]" |
| eventHandler | Identifier of the module, which implements the CopyCustomObject custom method for redetermining a standard method for copying extension objects. When a standard method is used, the object is copied without dependent objects. The use of a custom method allows for correct copying of extension objects with dependent objects. To use a custom method, set the eventHandler attribute and the useCopyHandler attribute. Specify the eventHandler attribute as follows: eventHandler="<module_identifier>" For example: eventHandler="UNIT_WEB_METHODS" Separate units are used for each object type:
NOTE. To view identifier of the selected module in the desktop application, open the Object Properties dialog box. To redetermine a standard method for copying extension in the module, implement the CopyCustomObject custom method. The developed CopyCustomObject custom method in the specified module should contain the following signature: Public Function CopyCustomObject(SourceKey, DestFolderKey: Integer; Name: String=""; Id: String=""): Integer; Parameters of the CopyCustomObject method:
|
| useCopyHandler | Indicates whether extension object should be copied using the custom method implemented in the module specified in the eventHandler attribute. When a standard method is used, the object is copied without dependent objects. The use of a custom method allows for correct copying of extension objects with dependent objects. Available attribute values:
|
| actions | Operations available for the extension in the web application welcome screen. Available operations:
NOTE. Parameter is unavailable. Reserved for future use.
actions="[0]" |
| <moduleUrlSettings> | Determine a string: <moduleUrlSettings sign="?"/> Change character to specify parameters from # to ?.This string is required in order that the Foresight Analytics Platform web application and designer of business applications web interface will be compatible. |
| <images> | The section with icon settings for extension. It contains the following subsections:
Those sections contain the same set of attributes:
Indexing of images in sprites contains from zero. For icons of 32x32 pixels, the system sprite with the modules32 identifier is used. The sprite contains one string, determine the following columnIndex for extensions:
For icons of 16x16 pixels, the system sprite with the modules16 identifier is used. The sprite contains one string, determine the following columnIndex for extensions:
If you want to use your icons from your sprite, then after the <Modules> section add the <imageLists> section containing subsections with sprite settings. |
The example is given for the PP.xml file containing connection settings for Calculation Algorithms and Interactive Data Entry Forms extensions to the Foresight Analytics Platform web application:
<pp>
<service url="http://localhost/FPBI_App_v9.2x64/axis2/services/PP.SOM.Som" />
<metabase id="REPOSITORY" recentObjects="true" />
<cultures>
<culture cultureName="ru" />
<culture cultureName="en" />
</cultures>
<modules>
<algorithm name="Indicators calculation algorithm"
url="/DBA_App_v9.2/#/elt"
visible="1"
data="268033"
classId="[268033]"
actions="[0]"
eventHandler="P10002_M_CALC_SERVICE"
useCopyHandler="true">
<moduleUrlSettings sign="?"/>
<images>
<welcomeScreenIcon imageListId="modules32" rowIndex="0" columnIndex="8"/>
<addressBarIcon imageListId="modules16" rowIndex="0" columnIndex="8" />
<documentsIcon imageListId="modules16" rowIndex="0" columnIndex="8" />
</images>
</algorithm>
<entryform name="Data entry forms"
url="/DBA_App_v9.2/#/dataentryform"
visible="1"
data="2103041"
classId="[2103041]"
actions="[0]"
eventHandler="UNIT_WEB_METHODS"
useCopyHandler="true">
<moduleUrlSettings sign="?"/>
<images>
<welcomeScreenIcon imageListId="modules32" rowIndex="0" columnIndex="10"/>
<addressBarIcon imageListId="modules16" rowIndex="0" columnIndex="13" />
<documentsIcon imageListId="modules16" rowIndex="0" columnIndex="13" />
</images>
</entryform>
</modules>
</pp>
As a result, the web application welcome screen will contain buttons to work with extensions:

See also:
Basic Web Application Settings | Installing Foresight Analytics Platform Extensions