Jump to: navigation, search

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


 
(20 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
 
| name = SaveObject
 
| name = SaveObject
| internalname = SaveObject
 
 
| image =  
 
| image =  
 
| imagecaption = Activity SaveObject
 
| imagecaption = Activity SaveObject
Line 14: Line 13:
 
}}
 
}}
  
 +
===Arguments===
  
 +
{| class="wikitable sortable" | width = "50%"
 +
|-
 +
! Argument !! Type !! Direction !! Purpose
 +
|- align="left"
 +
| UBIKObject|| [[BaseClass]] || In || The object to save
 +
|- align="left"
 +
| 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"
 +
| 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 [[Activity:CreateInstance_(Activity)|CreateInstance activity]] or if you modified an existing object with the [[Activity:SetPropertyValue_(Activity)|SetPropertyValue activity]].
  
==Arguments==
+
=Example=
  
{| class="wikitable sortable" | width = "50%"
+
Save the given object shallow:
 +
{| class="wikitable" | width = "50%"
 
|-
 
|-
! Arguments!! Type !! Direction !! Purpose
+
! Argument!! Value
 
|- align="left"
 
|- align="left"
| MetaClass|| BaseClass || In || The MetaClass to create the instance from
+
| UBIKObject|| Connect this argument with a variable
 
|- align="left"
 
|- align="left"
| Result|| RelationalObject|| Out || The created instance, null if creation failed
+
| ShallowSave || <source lang = "vbnet">True</source>
 
|}
 
|}
  
==Usage==
+
<headertabs />
 
+
This activity is used save a newly created or changed object to the database.
+
 
+
==Example==
+
  
 
==See also==
 
==See also==
* [[Activity CreateInstance]]
+
* [[Workflow Designer]]
 +
* [[Activity:CreateInstance (Activity)]]
  
[[Category:Workflows]]
+
[[Category:Activities|SaveObject (Activity)]]

Latest revision as of 12:05, 11 November 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 primary child objects (related child instances)
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