Adding New Data Types: Procedure
This example describes how to create a new data type called Table Values. The Table Values data type organizes many workflow attributes into logical groups and displays them on a series of custom tabs. The Project tab contains workflow attributes that define the name, code, due date, and priority of a project. The Customer tab contains workflow attributes that define the name and contact information of a customer that is related to the project. The Project and Customer tabs are contained within the Table Values tab, which is created for the Table Values data type and contained in the work packages of workflows to which the Table Values data type has been added.
The organization that the Table Values data type provides makes it easy for workflow participants to locate and use the workflow attributes that they must modify throughout the execution of a workflow.
To use the Table Values data type, the creator of a workflow map must first attach the Table Values data type to the workflow map definition, and then define whether each workflow attribute is editable, required, or read-only for each task in the workflow map. The Table Values data type is added to a workflow map definition by selecting the Table Values check box on the workflow map's General Properties page. The workflow attributes are then defined on the Table Values tab on the Step Definition page for each task in the workflow map.
The Table Values Data Type Tab in the Workflow DesignerWhen a workflow map that contains the Table Values data type is initiated in Content Server, the Table Values tab (containing the Project and Customer tabs) is added to the work package and routed to each workflow participant when their steps become ready. As workflow participants work on steps, they specify values for the workflow attribute fields on the Project and Customer pages. The information that each workflow participant provides is saved and updated as the work package is routed from one participant to another. Each workflow participant can view the information provided by the workflow participant who completed the preceding task.
Creating the Database TablesThe values that workflow participants provide for the workflow attribute fields that are listed on the Project and Customer pages are stored in database tables that reside outside of the Content Server database. Before you create the Table Values data type, you must create these external tables.
To create the Cust_Project and Cust_Customers database tables:The names of these child objects are case-sensitive-- type them exactly as they appear in step 4.
This script is used to create the tables when you install your custom module.
This script is used to delete the tables from the database when you uninstall your custom module.
Creating a Utility Script
The Table Values data type requires a utility script that you must create before you can implement the new data type. This script can be created at any point throughout the implementation of the data type.
To create the utility script:You begin adding the Table Values data type to Content Server by defining the data type's API object.
To define the data type's API object:The fSubType feature stores a unique integer that works with the fType feature to identify the API object.
The fType feature stores a unique integer that works with the fSubType feature to identify the object.
The fDataName feature stores the text that appears on the custom data type tab in the Content Server interface.
You have created a data type's API object. Now you must provide the code required to customize the API object for the Table Values data type.
Defining the Data Type's Workflow Designer Information
After you define the API object for the data type that you are creating, you must provide the Workflow Designer with the information it requires to add the data type to a workflow map.
To define the data type's Workflow Designer information:The fSubType feature stores a unique integer that works with the fType feature to identify this object.
The fType feature stores a unique integer that works with the fSubType feature to identify this object.
You have created the object necessary to define a data type's Workflow Designer information. Now you must provide the code required to customize the object for the Table Values data type.
Defining the Data Type's Web Object
After you define the API object and the Workflow Designer information for the data type that you are creating, you must define the data type's Web object.
To define the data type's Web object:You have created the object that is used to control a data type when it is manipulated in a workflow by workflow participants. Now you must provide the code required to customize the object for the Table Values data type.