Changes
Created page with "{{ActivityInfoBox | title = Register Object for Export | name = RegisterObjectForExport | image = | imagecaption = Activity RegisterObjectForExport | purpose = Register an ob..."
{{ActivityInfoBox
| title = Register Object for Export
| name = RegisterObjectForExport
| image =
| imagecaption = Activity RegisterObjectForExport
| purpose = Register an object for interface (create proxy object)
| category = Data Exchange
| returns = True if successfull
| version = 2.1+
}}
The RegisterObjectForExport Activity creates a new [[Proxy|proxy instance]] of a specified UBIK content object (target) and sets the export state to '''Queued for Export'''.
==Arguments==
{| class="wikitable sortable" | width = "50%"
|-
! Argument !! Type !! Direction !! Purpose
|- align="left"
| UBIKObject {{BaseClass}} || In || The target to create the proxy object for
|- align="left"
| MetaProxy|| [[BasMetaProxyeClass]] || In || The MetaProxy to create the proxy instance
|- align="left"
| Proxy|| [[Proxy]] || In || The created proxy instance
|- align="left"
| Result|| {{Boolean}} || Out || True if proxy instance has been created
|}
==Usage==
This activity creates a new proxy instance (of the given MetaProxy) for the specified target object. If created successfully, the [[Proxy#Export_states|export state]] is set to '''Queued for export'''.
{{Attention|This activity does not automatically save changes. If you want to persist the newly created proxy instance, you need i.e. a subsequent [[Activity SaveObject|SaveObject activity]]!}}
==Example==
Load the MetaClass named ''PUMP'', and create a new instance from it:
{| class="wikitable" | width = "50%"
|-
! Argument!! Value
|- align="left"
| MetaClass|| <source lang = "vbnet">UBIKObject.Environment _
.GetSystemMetaClass(UBIK.Kernel.SystemObjects.METACLASS) _
.AllInstances("PUMP")</source>
|}
==See also==
* [[Workflow Designer]]
* [[SaveObject (Activity)]]
[[Category:Workflows]] [[Category:Activities]]
| title = Register Object for Export
| name = RegisterObjectForExport
| image =
| imagecaption = Activity RegisterObjectForExport
| purpose = Register an object for interface (create proxy object)
| category = Data Exchange
| returns = True if successfull
| version = 2.1+
}}
The RegisterObjectForExport Activity creates a new [[Proxy|proxy instance]] of a specified UBIK content object (target) and sets the export state to '''Queued for Export'''.
==Arguments==
{| class="wikitable sortable" | width = "50%"
|-
! Argument !! Type !! Direction !! Purpose
|- align="left"
| UBIKObject {{BaseClass}} || In || The target to create the proxy object for
|- align="left"
| MetaProxy|| [[BasMetaProxyeClass]] || In || The MetaProxy to create the proxy instance
|- align="left"
| Proxy|| [[Proxy]] || In || The created proxy instance
|- align="left"
| Result|| {{Boolean}} || Out || True if proxy instance has been created
|}
==Usage==
This activity creates a new proxy instance (of the given MetaProxy) for the specified target object. If created successfully, the [[Proxy#Export_states|export state]] is set to '''Queued for export'''.
{{Attention|This activity does not automatically save changes. If you want to persist the newly created proxy instance, you need i.e. a subsequent [[Activity SaveObject|SaveObject activity]]!}}
==Example==
Load the MetaClass named ''PUMP'', and create a new instance from it:
{| class="wikitable" | width = "50%"
|-
! Argument!! Value
|- align="left"
| MetaClass|| <source lang = "vbnet">UBIKObject.Environment _
.GetSystemMetaClass(UBIK.Kernel.SystemObjects.METACLASS) _
.AllInstances("PUMP")</source>
|}
==See also==
* [[Workflow Designer]]
* [[SaveObject (Activity)]]
[[Category:Workflows]] [[Category:Activities]]
