Creating the Runtime Plug-in

The plug-in refers to the model and is used in the runtime environment.

Prerequisites

Before you begin, close your UI plug-in project and your feature project.

Procedure

  1. Close the feature/UI project that was created when the custom mediation tasks were installed.
  2. Run TIBCO Business Studio.
  3. Start > All Programs > TIBCO_HOME > TIBCO Business Studio N.N > TIBCO Business Studio.
  4. Select File > New > Project ....
  5. Specify a name for the project that reflects the mediation task name and that identifies this as the runtime plug-in, for example, LookupTaskRuntime.
  6. Accept all other defaults and click Next.
  7. On the Plug-in Content page, locate the Plug-in Options group and deselect these options:
    • Generate an activator, a Java class that controls the life cycle of the plug-in
    • This plug-in will make contributions to the UI
  8. Accept all other defaults and click Next.
  9. On the Templates page of the wizard, select Mediation Task Runtime Wizard and click Next.
  10. On the Mediation Task Model Selection Section, choose the mediation task model plug-in and click Next.
  11. Specify the Mediation Task Name. This is a unique name that reflects the nature of the custom mediation task, for example, LookupTask.
  12. Specify the Java Package Name for the runtime plug-in for the custom mediation task. Click Next.
    By default, the Java package name is the same as the project name.
  13. Click Finish.
    TIBCO Business Studio opens the Open Associated Perspective dialog, which asks if you want to open the Plug-in Development perspective.
  14. (Optional) Select Remember my decision check box and click Yes.
    TIBCO Business Studio opens the runtime plug-in and the Plug-in Development perspective.

    Along with the Runtime plug-in, a SOA Project <runtime plug-in project name>.deploy.soa is created as shown in the following figure:

    This SOA project contains the Custom Mediation Task Extension component that refers to the runtime plug-in.

    Your custom code is written in <runtime plug-in project name>\src\<runtime plug-in project name>\<cutom mediation task name>RT.java.

    Note: Do not update or delete the generated <runtime plug-in project name>.apt.composite. This composite is generated for the sole purpose of packaging the custom tasks plug-ins into deployable artifacts.

    If you see compilation errors, switch the Target Platform to TIBCO ActiveMatrix Runtime. See Composite Development Guide for information on switching the Target Platform.