Editor

The Editor tab is used to specify a data schema for input or output of an activity. This tab is useful when the data does not have a well-known structure. The data schema may also be for a more specialized use, such as for defining the output headers of an incoming HTTP request. The name of the Editor tab differs depending upon what the schema is used for.

For example, the Input Editor tab of the Publish Rendezvous Message activity allows you to define the schema for the message you wish to publish.

You can use a simple datatype, or you can define a group of data elements on this tab. You can also reference XML schema or ActiveEnterprise classes stored in the project. Once defined, the schema appears on the appropriate tabs of the activity. The data in the schema then becomes available to other activities in the process definition.

The following illustrates the Schema tab. In this example, the Schema tab is labeled Input Editor indicating this defines the schema for the activity’s input.

To define a schema on this tab, use the buttons above the schema tree to add, delete, or move data items. Then use the fields of the dialog to specify the datatype of each item.

Field

Description

Content

Defines the content of the element. The other fields that appear depend upon which content type is selected. For more information about the content type, see the next table.

Name

The name of the element.

Cardinality

The qualification for the data item. Data items can be specified as one of the following:

  • Required — the data item is required and must be supplied when the process is called.

  • Optional (?) — the data item is optional.

  • Repeating, Zero or More (*) — The data item is a list that has zero or more elements.

  • Repeating, One or More (+) — The data item is a list that has one or more items.

Type

The type of data. Can be any of the following:

  • XML Type Reference — must locate the stored XML schema definition.

  • Any of the datatypes described in the Icons for schema datatypes table.

Schema Name

Stored XML schema that contains the element or type you wish to reference.

Type Name

Type in a stored XML schema you wish to reference.

The following table describes the potential content types for data elements.

Content types for schema elements

Content Type

Description

Other Fields for this Content Type

Complex Element

An element that contains other elements. This is like a structure in a programming language. The complex element can contain zero or more elements of other types, and it can contain other complex elements.

Name

Cardinality

Element of Type

An element with a specified datatype. You can specify a scalar datatype (string, integer, and so on), you can reference an XML type, or specify the TIBCO ActiveEnterprise Any datatype.

Name

Cardinality

Type

Other fields depending upon the datatype selected

XML Element Reference

A reference to an element in a stored XML schema. For more information about XML schema, see TIBCO Designer documentation.

Cardinality

Schema

Element

Attribute of Type

An attribute with a specified datatype. You can specify a scalar datatype (string, integer, and so on), you can reference an XML type, or specify the TIBCO ActiveEnterprise Any datatype.

Name

Cardinality

Type

Other fields depending upon the datatype selected.

Sequence

A sequence of elements. Each item in the sequence is a structure of the sub-elements of this element.

Cardinality

Choice

A choice of elements. The datatype of this element can be one of the sub-elements defined.

Cardinality

All

The datatype of this element can be all of the datatypes of the sub-elements defined.

Cardinality

XML Group Reference

A reference to an XML group in a stored XML schema. See TIBCO Designer documentation for more information about XML schema.

Cardinality

Schema

Model Group

Any Element

A reference to any XML Element. You can use the Coercions button to supply a reference to the XML Element for this item when it appears in the input or process data.

Cardinality

Validation

WSDL Message

A reference to a message defined in a WSDL File resource. Use the Browse button to bring up a dialog for locating WSDL files within the project.

WSDL

Message

The following table describes the datatypes available for data.

Icons for schema datatypes

Icon

Description

String or character value. You can specify the type of string as one of the following:

  • String

  • Normalized String

  • Token

  • Language

  • Name

  • NC-Name

  • Q-Name

  • Name Token

  • Name Tokens

  • ID

  • ID ref

  • ID refs

  • Entity

  • Entities

Integer value. You can specify the size of the integer as one of the following:

  • Byte

  • Short

  • Int

  • Long

  • Unsigned Byte

  • Unsigned Int

  • Unsigned Long

  • Integer

  • Positive Integer

  • Negative Integer

  • Non-positive Integer

  • Non-negative Integer

Floating point number. You can specify the size of the schema item as float, double, or decimal.

Boolean value.

Date or Time. This can be any of the following datatypes:

  • Time

  • Date

  • Date & Time

  • Duration

  • Day

  • Month

  • Year

  • Year & Month

  • Month & Day

Base 64 or hexadecimal value.

An HTTP Uniform Resource Identifier.

Complex element. Container for other datatypes.

XML element or group reference.

Sequence. Signifies that the contained sub-elements are repeated in an ordered sequence.

Any Type. Represents a schema element with the TIBCO ActiveEnterprise datatype any. This element can be specified as any other datatype or a reference to an XML Type or AE Class. You can use the Coercions button to supply a datatype for this element.

Any Element. Represents a schema element that can be a reference to any XML Element. You can use the Coercions button to supply a reference to the XML Element for this element.

Choice. Specifies that the schema element can be one of a specified set of datatypes.