Define Type

Declaration

<AMDEFINETYPE CUSTOMTYPENAME="text"><Property Type="text" Name="text" /><Property Type="text" Name="text" /><Property Type="text" Name="text" /></AMDEFINETYPE>

See Also

Create Array| Create Object | Create Variable | Increment Variable | ReDim Array | Return | Set Variable

Description

Defines a custom object type or object types defined in a Web Service.

Practical Usage

Usually used in conjunction with the Create Object action in order to create an Automate Object from the defined custom type or web service.

Parameters

General Properties

Property

Type

Required

Default

Markup

Description

Custom Type

Text

No

(Empty)

TYPENAME="CustomType"

If enabled, specifies the name of the custom type to be created. If this parameter is enabled, the Web Service Type(s) parameter is ignored.

Web Service Type(s)

Text

No

(Empty)

WSDLURL=

"http://www.domain.com/service.wso?WSDL"

If enabled, specifies the WSDL URL or a file location to a WSDL file in which to retrieve the object type(s) from. If this parameter is enabled, the Custom Type parameter is ignored.

Property Properties

Property

Type

Required

Default

Markup

Description

Type

Text

No

(Empty)

TYPE="Company"

Specifies the property type of the custom type specified in the Custom Type parameter. This parameter is only available if the Custom Type parameter is selected in the General properties. Click Add to add a property type. To delete an existing property type/name, select the entry and click Delete. Additionally, items can be moved up / down the list by selecting the entry you wish to move and clicking the Move Up or Move Down button.

Name

Text

No

(Empty)

NAME="address"

Specifies the name to correspond with the property type. This parameter is only available if the Custom Type parameter is selected in the General properties.

Description Properties

The Description tab allows you to customize the text description of any step as it appears in the Task Builder's Steps Pane.

More on setting custom step description

Error Causes Properties

The Error Causes tab properties lets you instruct a task step to react only to specific errors or ignore certain errors that should cause it to fail.

More on Error Causes properties

On Error Properties

The On Error tab properties lets you determine what the task should do if a particular step encounters an error as defined in the Error Causes properties.

More about On Error properties

Additional Notes

Expressions, Variables & Functions

A percent sign is used as a special character in AutoMate to indicate the beginning and end of an expression. This allows variables, functions and other expressions to be entered in any text parameter of a task's properties. For example: %1+1% inside a task will resolve to 2 at runtime. A more elaborate example is %FileDateTime(myFile)% which results to the date/time of myFile. To help construct expressions, you can open Expression Builder by clicking the Insert Expression (%) button or by pressing F2.

More on expressions

More on variables

More on functions

More on extended functions
More on the expression builder

Example

NOTE: The code below can be copied and pasted directly into the Steps pane of the Task Builder.

 

Description: Define all types in WSDL file "http://www.dataaccess.com/webservicesserver/textcasing.wso?WSDL".

 

<AMDEFINETYPE WSDLURL="http://www.dataaccess.com/webservicesserver/textcasing.wso?WSDL"/>

 

↑ [Return to Top]