Type - Create Object

Declaration

<AMTYPE ACTIVITY="create_object" PROTOCOL="text (options)" 
PASSPHRASE="text (encrypted)" CERTIFICATE="text" 
TYPENAME="text" RESULTSTRUCTURE="text" ROWS="text"><PROPERTY 
NAME="text" VALUE="text" /></AMTYPE>

Description: Creates an object from the defined custom type or web service.

Practical Usage

Usually used in conjunction with the Define Type action to create an Object from the defined custom type or web service.

General Parameters

Property

Type

Required

Default

Markup

Description

Type name

Text

Yes

(Empty)

TYPENAME="CustomType"

The type name in which to create an object from. Click the Load properties button to populate this field with existing defined custom types.

Object name

Text

Yes

(Empty)

RESULTSTRUCTURE="ObjectName"

The name of the object to create.

Property Parameters

Property

Type

Required

Default

Markup

Description

Name

Text

No

(Empty)

NAME="String"

 The property name(s) of the object to create. 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.

Value

Text

No

(Empty)

VALUE="ValueName"

The property value(s) of the object to be created.

Description tab - A custom description can be provided on the Description tab to convey additional information or share special notes about a task step.

Error Causes tab - Specify how this step should behave upon the occurrence of an error. (Refer to Task Builder > Error Causes Tab for details.)

On Error tab - Specify what AWE should do if this step encounters an error as defined on the Error Causes tab. (Refer to Task Builder > On Error Tab for details.)

Sample

The sample AML code below can be copied and pasted directly into the Steps panel of the Task Builder.

Description: Create object "theObject" of type "CompanyAddress"

<AMCREATEOBJECT TYPENAME="CompanyAddress" 
RESULTSTRUCTURE="theObject"><Property Name="addr.Street" 
Value="Here" /></AMCREATEOBJECT>