Configure the Composite

You need to configure the composite created above so that it can use the Openspace properties files from the language pack.

Procedure

  1. Select projectname > .Composite where projectname is the name of your SOA project.
  2. From the Component Type palette, select WebApp and drag it to your composite.
  3. In the Name box, type a name for your web application
  4. Click Properties.
  5. From the Basic tab, select Plugin Project.
  6. Click Properties and set the values for the following properties as described below:
    Property Value
    contextRoot LanguagePackContextRoot_CODE
    defaultConnector httpConnector
  7. You will see that you have a Component webappname is not configured error displayed against your web application. You can use the quick fix to resolve this error so click Generate servlet implementation. The Generate servlet implementation dialog is displayed. Click Next to accept the defaults and Finish to apply the fix. This fix is required because TIBCO Business Studio has some validation rules that require a generated servlet implementation.
  8. Once the servlet implementation has generated, select your web application and click General.
  9. From Administrator Requirements, select Override.
    The Application Administration Override tab is displayed.
  10. From the Application Administration Override tab, select your SOA project, select the Resources tab.
  11. From the Resource tab, click Browse.
    The Open Resource dialog displays.
  12. From the Select an item to open box, type *.properties. A list of all your properties files displays. Select all of these and click OK.
    Note: If no files are shown, type ? to display the list.
  13. From the Select an item to open box, type *.xml. The locale.xx.xml and eventLocale.xx.xml display where xx the locale code. Select both of these and click OK.
  14. Click OK to close the dialog.
  15. Right-click workspace\projectname\composites\name.composite file (where workspace is the location of your workspace) and select Open with > Text Editor.
  16. Locate the following line:
    </sca:component>
  17. Copy the XML similar to that shown in os-scaext-extension.txt.
    Note that:
    • The file containing the XML cannot be downloaded using the link above from the PDF document. This link must be used from the HTML document -- see TIBCO ActiveMatrix BPM documentation.
    • The folder structure under resources for event.xx.xml and eventLocale.xx.xml is JSXAPPS\base\locale as shown in the screenshot above.
    • For each static-resource element, the xmi:id must be unique.
      • location is the path of the resource bundle in SOA project
      • path is the path of the matching bundle in the corresponding plugin
      For example, OrgBrowserMessages_zh_CN.properties is located in the plugin named com.tibco.os.org_n and under the folder of resources/org/locale. The value of path is /org/locale/OrgBrowserMessages_zh_CN.properties. However, the path values for event.xml and eventLocale.xml are /JSXAPPS/base/locale/locale.zh_CN.xml and /JSXAPPS/base/locale/localeLocale.zh_CN.xml, respectively.
  18. Save the file.