Difference between revisions of "Activity:SetPropertyValue (Activity)"
(Created page with "{{ActivityInfoBox | title = Set Property Value | name = SetPropertyValue | image = | imagecaption = Activity SetPropertyValue | purpose = Set the value of a single property |...") |
|||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | The SetPropertyValue activity sets the named property of a {{UBIK}} object to a certain value. | ||
+ | |||
+ | =Description= | ||
{{ActivityInfoBox | {{ActivityInfoBox | ||
| title = Set Property Value | | title = Set Property Value | ||
Line 9: | Line 12: | ||
| version = 2.1+ | | version = 2.1+ | ||
}} | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | ===Arguments=== | ||
{| class="wikitable sortable" | width = "50%" | {| class="wikitable sortable" | width = "50%" | ||
|- | |- | ||
! Argument !! Type !! Direction !! Purpose | ! Argument !! Type !! Direction !! Purpose | ||
|- align="left" | |- align="left" | ||
− | | UBIKObject|| BaseClass || In || The object where the property should be set | + | | UBIKObject|| [[BaseClass]] || In || The object where the property should be set |
|- align="left" | |- align="left" | ||
− | | PropertyName|| | + | | PropertyName|| {{String_MSDN}} || In || The name of the property that should be set |
|- align="left" | |- align="left" | ||
− | | Value|| | + | | Value|| {{Object_MSDN}} || In || The new value that should be stored in the property |
|- align="left" | |- align="left" | ||
− | | Result|| | + | | Result|| {{Boolean_MSDN}} || Out || True if successful, false if failed |
|} | |} | ||
− | ==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= | ||
Set the ''NAME'' of a given object to the new value "NewName": | Set the ''NAME'' of a given object to the new value "NewName": | ||
− | + | {| class="wikitable sortable" | width = "50%" | |
− | {| class="wikitable" | width = "50%" | + | |
|- | |- | ||
! Argument!! Value | ! Argument!! Value | ||
Line 52: | Line 46: | ||
| Value || <source lang = "vbnet">"NewName"</source> | | Value || <source lang = "vbnet">"NewName"</source> | ||
|} | |} | ||
+ | |||
+ | <headertabs /> | ||
==See also== | ==See also== | ||
* [[Workflow Designer]] | * [[Workflow Designer]] | ||
− | * [[CreateInstance (Activity)]] | + | * [[Activity:CreateInstance (Activity)]] |
− | + | [[Category:Activities]] |
Latest revision as of 21:11, 23 February 2015
The SetPropertyValue activity sets the named property of a UBIK® object to a certain value.