Defining a HelloWorld Palette
The first step in creating the HelloWorld plug-in is to create a SayHello activity in the HelloWorld palette.
Procedure
-
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.
- Open the BusinessWorks Plug-in Development Kit wizard in one of the following ways:
-
In the
Get Started dialog, click
Create New BW6 Palette to create a palette:
- In the Palette name field, enter HelloWorld as the palette name.
- In the Palette package name field, enter com.tibco.bw as the package name.
-
In the
Palette version field, enter the palette version that you want to use.
By default, the palette version is 1.0.0.
-
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. - Use the default location as the project folder. Click Next.
-
In the
Define Activities, Process Starters and Signal-In dialog, add and configure an activity:
- In the Name field, enter SayHello as the activity name.
- From the Type list, select Asynchronous as the activity type.
-
By default,
is used as the activity icon. If you want to use another icon, click Browse to locate the icon. Click Go to configure the activity.
The size of the icon cannot be less than 48x48. -
Click
to add an attribute for the SayHello activity and configure the attribute as follows:
- From the Resource schema type list, select XSD Editor.
- Click Input to create an input schema for the activity.
-
In the
Create XML Schema dialog, click
to add a primitive element, and then set the element name to YourInput. Click OK.
-
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 Output. Click OK.
- Click Apply to save your activity configurations.
- In the Define Activities, Process Starters and Signal-In dialog, click Next to verify the palette and activity configurations.
- In the "Palette summary" dialog, review the palette information and click Finish to generate the code for the HelloWorld palette and the SayHello activity.
-
Change the target platform to running platform for the design-time module.
- Click Window > Preferences, and then click Plug-in Development > Target Platform.
- Click Add to add a running platform for the design-time module.
- In the Target Definition dialog, click Default to choose the running platform. Click Next.
- In the Target Content dialog, click Finish.
- You are back to the Target Platform dialog, select the Running Platform (Active) check box. Click Apply, and then click OK.
By default, the target platform is bw-runtime after launching TIBCO Business Studio. See Target Platform for more details.
- Close the runtime bundle and feature, and open the design bundle and feature.
Copyright © Cloud Software Group, Inc. All Rights Reserved.