Last modified on 16 January 2014, at 13:30

Proxy

Revision as of 13:30, 16 January 2014 by MHM (Talk | contribs) (Imported Value)

Basics

A Proxy object is the representant of an Ubik object (istance) for one Interface.

One Proxy object can handle both, import and export of the same Ubik instance via one interface.

IC Hint square.pngA Proxy object MUST HAVE a MetaProxy defined as its MetaClass!

The Proxy object has a "normal" Property for every MetaProperty defined on its MetaProxy.

The Proxy object has a Proxy Property for every ProxyMetaProperty defined on its MetaProxy (via the Relation "SYSREL_METAPROXY_PROPERTY").

Value Tracking

Every Proxy properties supports access to multiple data of the same data field:

  • Current value in Ubik
  • Timestamp of the current value
  • Exported value
  • Timestamp of the export
  • Import value
  • Timestamp of the import


Current Value

  • Current value stored on the object in the system
  • Timestamp the value was set. If it is the initial value, the timestamp is equal to the CTS of the object

The current value is stored on the origin UBIK object.

Exported Value

  • Value that was exported (and comited) via an export interface run
  • Timestamp the value was exported. This is the timestamp when the export of the object was triggered

The exported value is stored on the proxy object.

Imported Value

  • Value that was imported via an import interface run
  • Timestamp the value was imported. This is the timestamp when the import of the object was triggered

The imported value is stored on the proxy object.

Interface States

Every proxy objects supports two interface states:

  • Export state
  • Import state

Export states

Property Description
Completed The object is exported, the external system has confirmed
Qued for export The object is marked for an export, but the export is not executed yet
Processed The object was exported, but the confirmation was not received yet
Conflict There is an export conflict

Import states

Property Description
Proxy updated The object was successfully updated from the external system
Handshaking The object was imported, but the handshake answer was not sent yet
Conflict There is an importconflict
Error Error occurred during import