Jump to: navigation, search

Difference between revisions of "Activity:SaveObject (Activity)"


(Usage)
Line 1: Line 1:
 +
The SaveObject Activity saves a {{UBIK}} object to the database.
 +
 +
=Description=
 
{{ActivityInfoBox
 
{{ActivityInfoBox
 
| title = Save Object
 
| title = Save Object
Line 9: Line 12:
 
| version = 2.1+
 
| version = 2.1+
 
}}
 
}}
The SaveObject Activity saves a {{UBIK}} object to the database.
 
  
==Arguments==
+
===Arguments===
  
 
{| class="wikitable sortable" | width = "50%"
 
{| class="wikitable sortable" | width = "50%"
Line 24: Line 26:
 
|}
 
|}
  
==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:CreateInstance_(Activity)|CreateInstance activity]] or if you modified an existing object with the [[Activity:SetPropertyValue_(Activity)|SetPropertyValue 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==
+
=Example=
  
 
Save the given object shallow:
 
Save the given object shallow:
 
 
 
{| class="wikitable" | width = "50%"
 
{| class="wikitable" | width = "50%"
 
|-
 
|-
Line 41: Line 41:
 
| ShallowSave || <source lang = "vbnet">True</source>
 
| ShallowSave || <source lang = "vbnet">True</source>
 
|}
 
|}
 +
 +
<headertabs />
  
 
==See also==
 
==See also==

Revision as of 17:11, 23 February 2015

The SaveObject Activity saves a UBIK® object to the database.

[edit]

Description

Save Object
Name SaveObject
Purpose Save an object to the database
Category Object Primitives
Returns True if successful
Version 2.1+

Arguments

Argument Type Direction Purpose
UBIKObject BaseClass In The object to save
ShallowSave Boolean In If True, only the object itself will be saved, if false it will try to also save affected objects of the change ("Deep save")
Result RelationalObject Out The created instance, null if creation failed

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 CreateInstance activity or if you modified an existing object with the SetPropertyValue activity.

Example

Save the given object shallow:

Argument Value
UBIKObject Connect this argument with a variable
ShallowSave
True

See also