Difference between revisions of "Activity:SaveObject (Activity)"
| Line 17: | Line 17: | ||
! 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 affected objects of the change ("Deep save") |
|- align="left" | |- align="left" | ||
| − | | Result|| RelationalObject|| Out || The created instance, null if creation failed | + | | Result|| [[RelationalObject]]|| Out || The created instance, null if creation failed |
|} | |} | ||
Revision as of 15:07, 8 January 2015
| Save Object | |
|---|---|
| Name | SaveObject |
| Purpose | Save an object to the database |
| Category | Object Primitives |
| Returns | True if successful |
| Version | 2.1+ |
The SaveObject Activity saves a UBIK® object to the database.
Contents
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 |
