Difference between revisions of "Activity:RegisterObjectForExport (Activity)"
(Created page with "{{ActivityInfoBox | title = Register Object for Export | name = RegisterObjectForExport | image = | imagecaption = Activity RegisterObjectForExport | purpose = Register an ob...") |
|||
| Line 18: | Line 18: | ||
| UBIKObject {{BaseClass}} || In || The target to create the proxy object for | | UBIKObject {{BaseClass}} || In || The target to create the proxy object for | ||
|- align="left" | |- align="left" | ||
| − | | MetaProxy|| [[ | + | | MetaProxy|| [[MetaProxy]] || In || The MetaProxy to create the proxy instance |
|- align="left" | |- align="left" | ||
| Proxy|| [[Proxy]] || In || The created proxy instance | | Proxy|| [[Proxy]] || In || The created proxy instance | ||
Revision as of 10:53, 7 January 2015
| Register Object for Export | |
|---|---|
| Name | 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 instance of a specified UBIK content object (target) and sets the export state to Queued for Export.
Contents
Arguments
| Argument | Type | Direction | Purpose |
|---|---|---|---|
| UBIKObject BaseClass | In | The target to create the proxy object for | |
| MetaProxy | MetaProxy | In | The MetaProxy to create the proxy instance |
| Proxy | Proxy | In | The created proxy instance |
| 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 export state is set to Queued for export.
| This activity does not automatically save changes. If you want to persist the newly created proxy instance, you need i.e. a subsequent SaveObject activity! |
Example
Load the MetaClass named PUMP, and create a new instance from it:
| Argument | Value |
|---|---|
| MetaClass | UBIKObject.Environment _ .GetSystemMetaClass(UBIK.Kernel.SystemObjects.METACLASS) _ .AllInstances("PUMP") |
