Jump to: navigation, search

Changes


Activity:CreateInstance (Activity)

1,218 bytes added, 11:42, 19 July 2013
Created page with "The CreateInstance Activity creates a new [[Instance|instance]] of a specified [[MetaClass]]. {{ActivityInfoBox | title = Create Instance | name = CreateInstance | internalna..."
The CreateInstance Activity creates a new [[Instance|instance]] of a specified [[MetaClass]].

{{ActivityInfoBox
| title = Create Instance
| name = CreateInstance
| internalname = CreateInstance
| image =
| imagecaption = Activity CreateInstance
| purpose = Create a new instance of a MetaClass
| category = Object Primitives
| returns = The created instance
| version = 2.1+
}}




==Arguments==

{| class="wikitable sortable" | width = "50%"
|-
! Arguments!! Type !! Direction !! Purpose
|- align="left"
| UBIKObject|| BaseClass || In || A UBIK object
|- align="left"
| Text || String || In || The text to be written
|- align="left"
| Result|| Boolean || Out || Returns True on success, false on error
|}

==Usage==

This activity is used to create new {{UBIK}} objects during the execution of a workflow. Since it only needs to know the MetaClass to create objects from, it can be used to create regular content objects as well as properties or anything else.

{{Attention|This activity does not automatically save changes. If you want to persist the newly created instance, you need i.e. a subsequent [[Activity SaveObject|SaveObject activity]]!}}

==Example==

==Additional information==

[[Category:Workflows]]