Difference between revisions of "Activity:SaveObject (Activity)"
(→Example) |
|||
(13 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
The SaveObject Activity saves a {{UBIK}} object to the database. | The SaveObject Activity saves a {{UBIK}} object to the database. | ||
− | + | =Description= | |
{{ActivityInfoBox | {{ActivityInfoBox | ||
| title = Save Object | | title = Save Object | ||
Line 13: | Line 13: | ||
}} | }} | ||
− | + | ===Arguments=== | |
− | + | ||
− | + | ||
− | + | ||
− | ==Arguments== | + | |
{| class="wikitable sortable" | width = "50%" | {| class="wikitable sortable" | width = "50%" | ||
Line 23: | Line 19: | ||
! Argument !! Type !! Direction !! Purpose | ! Argument !! Type !! Direction !! Purpose | ||
|- align="left" | |- align="left" | ||
− | | UBIKObject|| BaseClass || In || The object to save | + | | UBIKObject|| [[BaseClass]] || In || The object to save |
|- align="left" | |- align="left" | ||
− | | ShallowSave|| | + | | ShallowSave|| {{Boolean_MSDN}} || In || If True, only the object itself will be saved, if False it will try to also save primary child objects (related child instances) |
|- align="left" | |- align="left" | ||
− | | Result|| RelationalObject|| Out || The created instance, null if creation failed | + | | Result|| [[RelationalObject]]|| Out || The created instance, null if creation failed |
|} | |} | ||
− | ==Usage== | + | ===Usage=== |
− | This activity is used save a newly created or changed object to the database. This is necessary if you create a new object during the workflow, e.g. with the [[Activity | + | This activity is used save a newly created or changed object to the database. This is necessary if you create a new object during the workflow, e.g. with the [[Activity:CreateInstance_(Activity)|CreateInstance activity]] or if you modified an existing object with the [[Activity:SetPropertyValue_(Activity)|SetPropertyValue activity]]. |
− | + | =Example= | |
Save the given object shallow: | Save the given object shallow: | ||
− | |||
− | |||
{| class="wikitable" | width = "50%" | {| class="wikitable" | width = "50%" | ||
|- | |- | ||
Line 45: | Line 39: | ||
| UBIKObject|| Connect this argument with a variable | | UBIKObject|| Connect this argument with a variable | ||
|- align="left" | |- align="left" | ||
− | | ShallowSave || <source lang = "vbnet"> | + | | ShallowSave || <source lang = "vbnet">True</source> |
|} | |} | ||
+ | |||
+ | <headertabs /> | ||
==See also== | ==See also== | ||
* [[Workflow Designer]] | * [[Workflow Designer]] | ||
− | * [[Activity CreateInstance]] | + | * [[Activity:CreateInstance (Activity)]] |
− | + | [[Category:Activities|SaveObject (Activity)]] |
Latest revision as of 12:05, 11 November 2015
The SaveObject Activity saves a UBIK® object to the database.