Property Type Convertor Operator

The Property Type Convertor Operator creates a new property from an existing property by modifying the type of the existing property.

Use

In a plan, some calculations use numerical data which are included in string properties. The Property Type Convertor Operator allows you to convert a string property into a number property.

The table below shows the authorized and unauthorized conversions:

Source property type

Target property type

Comment

String

String

Authorized

String

Date

Authorized

String

Number

Authorized

String

Multi-valued string

Authorized

String

Multi-valued number

Authorized

Date

String

Authorized

Date

Number

Authorized

Date

Date

Not authorized

Number

String

Authorized

Number

Date

Not authorized

Number

Number

Not authorized

Multi-valued string

Multi-valued string

Authorized

Multi-valued string

String

Authorized

Multi-valued string

Multi-valued number

Authorized

Multi-valued number

String

Authorized

Multi-valued number

Multi-valued string

Authorized

Multi-valued number

Multi-valued number

Not authorized

Example

An operator uses a translation table providing a discount percentage from the number of units that are consumed by customers. The “number of units consumed” property is numerical. Using the Property Type Convertor Operator, you can convert this property into string before putting it into the translation table.

Identification area

Name: Type the name of the component (mandatory).

Description: Allows you to type the description of the component (optional).

Definition tab

Source

Target

Advanced tab

This tab is separated in four areas. Each area corresponds to a type of property, but only one or two areas are available according to the conversion type that you select on the Definition tab. For example, if you want to convert a string into a string, only the String Parameters area is available.

String Parameters: Specifies the positions of start and end of a character substring in an input character string or a multi-valued string.

Date Parameters: Specifies the date format that allows you to convert a string into a date, or specifies the date field that allows you to convert a date either into a number or into a string.

Number Parameters: Specifies the target number format that converts:

You must specify the decimal and hundreds separators.

Multi-Valued Parameters: Specifies the field separator that converts:

Click one of the available separators (Semicolon, Tabulation, Comma, Space, or Slash), or click Other, and then type a separator. The default value is Semicolon. For example, to convert the string "MeteoRecipients;NewsRecipients;ExchangeRecipients;SpotsRecipients;TrafficRecipients;TaxiRecipients" into a multi-valued string, you must click Semicolon so that the Property Type Convertor Operator removes all the semicolons for converting the string into a list of a multi-valued string. If you want to convert the multi-valued number (2000 5000 10000 20000) into a string, you must select a field separator to separate the elements of the list in the string. If you select Slash as the field separator, the resulting string is "2000/5000/10000/20000".