Advanced SmartObjects: Properties
There are several ways to create Advanced SmartObject properties:
- Manually add properties to the SmartObject and map them later when editing the SmartObject's methods,
- Have the designer automatically create properties for you while you are defining the SmartObject's methods.
- Create Properties using the Service Object methods configuration screens
To manually add properties, create SmartObject properties as you would for the simple SmartObject. Click Add and enter the property details. (You will still need to define how the SmartObject property maps to Service Object properties using the methods configuration wizard. )
SmartObject properties
You can also create Properties using the Service Object methods configuration screens. You can create properties individually by clicking the CREATE button on the Map ServiceObject Property dialog, or you can have K2 automatically create all the Properties for you by clicking on the Create All button. Selecting Create All automatically creates SmartObject properties for the Service Object properties that do not already exist, and automatically creates a mapping for each property.
Creating Properties in the Inputs & Outputs screen
When mapping Service Object properties, the following Map to options are available:
- SmartObject property: Map the Service Object property to an existing SmartObject property.
- SmartObject method parameter: Map the Service Object property to an existing method parameter. (If no Advanced SmartObjects: Methods exist, this option can not be selected.)
- Specific value: Specify a static value for the Service Object property. This is mostly used if the method should always use the same, static input value whenever the method is executed.
- System value: Map the Service Object property to the current SmartObject's Display Name, GUID or System Name. This is mostly used if the service object method needs to know which SmartObject it was called from.
See the topic Advanced SmartObjects: Methods for more on mapping properties to Service Object properties.