Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »


 
To be completed
Related functions:
Header:
#include "sdai.h"
Prototype:
EdmiError edmiRemoteWideCopyInstanceBN(SdaiServerContext serverContextId,
                                        SdaiAppInstance   instanceId,
                                        SdaiVersion       version,
                                        SdaiModel         modelId,
                                        SdaiInteger       options,
                                        SdaiString        *INinclusiveExclusiveRecursive,
                                        SdaiString        *INinclusiveExclusiveShallow,
                                        SdaiString        *OUTinclusiveExclusiveRecursive,
                                        SdaiString        *OUTinclusiveExclusiveShallow,
                                        SdaiAppInstance   *newInstanceId,
                                        SdaiInvocationId  *edmiInvocationId);
 
Arguments:

serverContextId

Context identification, from edmiDefineServerContext

instanceId

A numeric instanceID that uniquely identifies the instance of interrest in the remote EDMdatabase.

version

 

modelId

A numeric modelID that uniquely identifies the data model or the dictionary model of interest in the EDMdatabase.

options

Specifies the options that will be used in the execution of the edmiRemoteWideCopyInstanceBN function. The options value should be specified as a bitwise OR between the options to be enabled. All available options are defined in the header file sdai.h . An option value equals zero gives the default options. See below for a detailed description of the available options.

INinclusiveExclusiveRecursive

 

INinclusiveExclusiveShallow

 

OUTinclusiveExclusiveRecursive

 

OUTinclusiveExclusiveShallow

 

newInstanceId

An address to a variable that will receive a numeric instanceID that will uniquely identify the created instance (target instance) in the EDMdatabase.

edmiInvocationId

Not yet used. When the edmiInvocationId is specified unequal NULL, the actual operation will be asynchronous and a handle (identifier) of the call will be returned in the edmiInvocationId argument.
This handle can be used in later operations for requesting the status (waiting, running, finished ..) and the result of the avtual operation.

Returns:
A completion code of datatype EdmiError is the returned function value. The completion code has the following values:
Completion code = 0 : Operation successfully performed.
Completion code != 0: Error in operation. Completion code is an _EDMinterface_ error code. Use edmiGetErrorText to get the error text corresponding to the error code.
EXAMPLE
EdmiError rstat;
. . .

  • No labels