Defining a HelloWorld Palette

The first step in creating the HelloWorld plug-in is to create a SayHello activity in the HelloWorld palette.

Procedure

  1. Open TIBCO Business Studio in one of the following ways:
    • Microsoft Windows: click Start > All Programs > TIBCO > TIBCO_HOME > TIBCO Business Studio version_number > Studio for Designers.
    • Linux: run the TIBCO Business Studio executable located in the TIBCO_HOME/studio/version_number/eclipse directory.
    • Mac OS: run the TIBCO Business Studio executable located in the TIBCO_HOME/studio/version_number/eclipse directory.
  2. Open the BusinessWorks Plug-in Development Kit wizard in one of the following ways:
    • From the menu, click File > New > Create a new or modify BW Plug-in Project.
    • On the toolbar, click .
    • Press Alt+T.

  3. In the Get Started dialog, click Create New BW6 Palette to create a palette:
    1. In the Palette name field, enter HelloWorld as the palette name.
    2. In the Palette package name field, enter com.tibco.bw as the package name.
    3. In the Palette version field, enter the palette version that you want to use.
      By default, the palette version is 1.0.0.
    4. By default, is used as the palette icon. If you want to use another icon, click Browse to locate a palette icon.
      The size of the icon cannot be less than 32x32.
    5. Use the default location as the project folder. Click Next.

  4. In the Define Activities, Process Starters and Signal-In dialog, add and configure an activity:
    1. In the Name field, enter SayHello as the activity name.
    2. From the Type list, select Asynchronous as the activity type.
    3. By default, is used as the activity icon. If you want to change the activity icon, click the text box next to the Icon field, and select an icon to represent the activity.
      The supported image formats are .jpg, .gif, .png, and .jpeg. The size of the icon must be 48x48 or larger. BusinessWorks Plug-in Development Kit automatically generates the icon in size of 16x16, 32x32, and 48x48.
      The size of the icon cannot be less than 48x48.

    4. Click Create to configure the activity. Click to add attributes for the SayHello activity and configure the attribute as follows:
      • Enter SayHello as the value of the Name attribute.
      • Select String as the value of the Type attribute.
      • Enter a name which you want to set as the value of the Label attribute.
      • Select TextBox as the value of the Control Type attribute.
      • Select General as the value of the Section ID attribute.

    5. From the Resource schema type list, select XSD Editor.
    6. Click Input to create an input schema for the activity.
    7. In the Create XML Schema dialog, click to add a primitive element, and then set the element name to YourInput. Click OK.

    8. Click Output to create an output schema for the activity. In the Create XML Schema dialog, click to add a primitive element, and then set the element name to YourOutput. Click OK.
  5. Click Apply to save your activity configurations.
    You are now brought back to the Define Activities, Process Starters and Signal-In dialog. The configured SayHello activity is displayed.

  6. In the Define Activities, Process Starters and Signal-In dialog, click Next to verify the palette and activity configurations.
  7. In the "Palette summary" dialog, review the palette information and click Finish to generate the code for the HelloWorld palette and the SayHello activity.

Result

When the code generation is completed, the design-time, model, and runtime bundles and features are displayed in TIBCO Business Studio.

What to do next

Adding Business Logic