Setting Up the wccPassThruManagedHub Application

Procedure

  1. Add the Workspace framework files to the web server path.

    For example, assuming Tomcat as the web server, copy the following files and directories:

    • StudioHome\wcc\ver\brand.xml
    • StudioHome\wcc\ver\close.html
    • StudioHome\wcc\ver\externalform.htm
    • StudioHome\wcc\ver\jsx3.gui.window.html
    • StudioHome\wcc\ver\logger.xml
    • StudioHome\wcc\ver\addins\
    • StudioHome\wcc\ver\dojo-toolkit\
    • StudioHome\wcc\ver\JSX\
    • StudioHome\wcc\ver\JSXAPPS\

    ... to the following directory:

    TomcatHome\webapps\wccPassThruManagedHub\

    where:

    • StudioHome is the directory in which TIBCO Business Studio was installed.
    • ver is the version number of Workspace that was installed with TIBCO Business Studio.
    • TomcatHome is the Tomcat installation directory.
  2. Copy the root HTML files needed by the sample application.
    Copy these files:
    • StudioHome\wcc\ver\samples\wccPassThruManagedHub\IframeContainerTest.html
    • StudioHome\wcc\ver\samples\wccPassThruManagedHub\simpleLogin.html
    • StudioHome\wcc\ver\samples\wccPassThruManagedHub\simpleProcessInstancePreview.html
    • StudioHome\wcc\ver\samples\wccPassThruManagedHub\simpleWorkItemPreview.html

    ... to the following directory:

    TomcatHome\webapps\wccPassThruManagedHub\
  3. Copy application directories for the sample application.
    Copy these directories:
    • StudioHome\wcc\ver\samples\wccPassThruManagedHub\JSXAPPS\simpleLogin\
    • StudioHome\wcc\ver\samples\wccPassThruManagedHub\JSXAPPS\simpleProcessInstancePreview\ 
    • StudioHome\wcc\ver\samples\wccPassThruManagedHub\JSXAPPS\simpleWorkItemPreview\

    ... to the following directory:

    TomcatHome\webapps\wccPassThruManagedHub\JSXAPPS\
  4. Configure the baseUrl for the Action Processor in the sample application’s configuration files:
    1. Open the config.xml file in the following directories:
      • TomcatHome\webapps\wccPassThruManagedHub\JSXAPPS\simpleLogin\
      • TomcatHome\webapps\wccPassThruManagedHub\JSXAPPS\simpleProcessInstancePreview\
      • TomcatHome\webapps\wccPassThruManagedHub\JSXAPPS\simpleWorkItemPreview\
    2. Locate the Action Processor record and set the baseUrl attribute to point to the location of your Action Processor. The string in the baseUrl attribute must be in the form:
      http://Host:Port/bpm/actionprocessor/actionprocessor.servlet

      where:

      • Host is the name or IP address of the machine hosting the BPM runtime.
      • Port is the port number used by the ActiveMatrix WebApp Implementation Type to communicate with web applications.
        Note: The weighting attribute is not used at this time.

        For example:

        <record jsxid="ActionProcessors" type="workspace">
            <ActionProcessor
               weighting="100"
               baseUrl="http://Austin:8080/bpm/actionprocessor/actionprocessor.servlet">
            </ActionProcessor>
        </record>