Open topic with navigation

TIBCO ActiveMatrix BusinessWorks™ Plug-in Development Kit 6.3.1

# Adding and Configuring Activities

An activity is an individual unit of work in a process. Each activity is represented by an icon in TIBCO Business Studio and consists of a set of configurations.

Before you begin

Ensure that you have configured a palette, as described in Defining a Palette.

Procedure
1. In the Name field, type a name of the activity that you want to create.

2. From the Type list, select an activity type.
   See Activity Types for more details.
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.
4. Click Create to configure the activity. Click to add attributes for the activity. Each activity attribute contains the following properties:

   The below table describes the attributes for the activity which you have created.

   Attributes | Description
   --- | ---
   Name | Name of the activity.
   Type | Type of the attribute. The following attribute types are supported: Int, Short, String, Float, Double, Long, Boolean, and Date. Note: The attribute of the Double, Long, Float, or Short type is not displayed in TIBCO Business Studio.
   Label | Display name of the attribute. The display name is the field name displayed in TIBCO Business Studio.
   Control Type | Control type of the attribute. The following types are supported: Hide, TextBox, FilePickerField, ComboViewer, Button, PasswordField, DirectoryPickerField, ActivityReferenceField, and PropertyField. BusinessWorks Plug-in Development Kit automatically selects a control type according to the selected attribute type. Note: If you set the control type of an attribute to Hide, the attribute of the activity is not displayed on UI. If you want to use shared resources, select PropertyField from Control Type list. For more details, see Using Shared Resources.
   Values | Values to be displayed as default options. Use comma (,) to separate values when the control type is ComboViewer.
   Section ID | Name of the section that the attribute belongs to. The following three options are supported: General Advanced Any customized section name
   Module Property | Whether the attribute supports the module property feature or not.
   Required Field | Whether the attribute is required or not.
   Tooltip | You can specify for activity fields. The content will be shown in the General tab of the Properties view.

5. From the Resource schema type list, select a way to generate the input, output, and fault schema:
   - If you select XSD/WSDL, click Browse to locate an XSD file or a WSDL file. BusinessWorks Plug-in Development Kit automatically generates input, output, and fault schema according to the XSD or WSDL file. See Creating Schema with XSD/WSDL for more details.
   - If you select Java Code, BusinessWorks Plug-in Development Kit automatically generates a sample code of input and output.
   - If you select XSD Editor, you have to manually create input, output, and fault schema. See Creating Schema with XSD Editor for more details.
   - If you select None, no input and output are generated. BusinessWorks Plug-in Development Kit generates default schema for fault.
6. Click Apply to save your configurations.
   You are now directed to the Define Activities, Process Starters and Signal-In dialog box. Go back to In the Name field, type a name of the activity that you want to create. to add more activities.
7. Click Finish to generate code for the defined palette and activities.

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

What to do next

Adding Business Logic

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO ActiveMatrix BusinessWorks™ Plug-in Development Kit
Subtopics

Copyright © 2014-2022. TIBCO Software Inc. All Rights Reserved.