Difference between revisions of "Activity:SetPropertyValue (Activity)"
m (moved SetPropertyValue (Activity) to SetPropertyValue (Activity): Text replacement - "(.*)\(Activity\)" to "Activity:$1(Activity)") |
m (Text replacement - "\[(.*)\(Activity\)" to "\[Activity:$1(Activity)") |
||
Line 27: | Line 27: | ||
==Usage== | ==Usage== | ||
− | This activity is used to set a property of an object to a new value, where the property is identified by its name. This is typically necessary when you created a new object during the workflow, e.g. with the [[CreateInstance (Activity)|CreateInstance activity]], or if you want to modify existing objects. | + | This activity is used to set a property of an object to a new value, where the property is identified by its name. This is typically necessary when you created a new object during the workflow, e.g. with the \[Activity:[CreateInstance (Activity)|CreateInstance activity]], or if you want to modify existing objects. |
− | {{Attention|This activity does not automatically save changes. If you want to persist the changed values, you need i.e. a subsequent [[SaveObject (Activity)|SaveObject activity]]!}} | + | {{Attention|This activity does not automatically save changes. If you want to persist the changed values, you need i.e. a subsequent \[Activity:[SaveObject (Activity)|SaveObject activity]]!}} |
==Example== | ==Example== | ||
Line 49: | Line 49: | ||
==See also== | ==See also== | ||
* [[Workflow Designer]] | * [[Workflow Designer]] | ||
− | * [[CreateInstance (Activity)]] | + | * \[Activity:[CreateInstance (Activity)]] |
[[Category:Activities]] | [[Category:Activities]] |
Revision as of 11:15, 23 February 2015
Set Property Value | |
---|---|
Name | SetPropertyValue |
Purpose | Set the value of a single property |
Category | Object Primitives |
Returns | True if successful |
Version | 2.1+ |
The SetPropertyValue Activity sets the named property of a UBIK® object to a certain value.
Contents
Arguments
Argument | Type | Direction | Purpose |
---|---|---|---|
UBIKObject | BaseClass | In | The object where the property should be set |
PropertyName | String | In | The name of the property that should be set |
Value | Object | In | The new value that should be stored in the property |
Result | Boolean | Out | True if successful, false if failed |
Usage
This activity is used to set a property of an object to a new value, where the property is identified by its name. This is typically necessary when you created a new object during the workflow, e.g. with the \[Activity:[CreateInstance (Activity)|CreateInstance activity]], or if you want to modify existing objects.
This activity does not automatically save changes. If you want to persist the changed values, you need i.e. a subsequent \[Activity:[SaveObject (Activity) |
Example
Set the NAME of a given object to the new value "NewName":
Argument | Value |
---|---|
UBIKObject | Connect this argument with a variable |
PropertyName | "NAME" |
Value | "NewName" |
See also
- Workflow Designer
- \[Activity:[CreateInstance (Activity)]]