Copy Instance
Makes a copy of an instance, i.e. creates new instance(s) in a target model. The actual copy process can be a shallow or a deep copy. The result instance(s) can be located in the same data model as the source instance or in another data model.
This command is only applicable to application instances.
Arguments:
InstanceID or query? |
One of two arguments are accepted: |
InstanceId: |
Specify an unsigned integer value denoting the EDMdatabase unique instanceID of the instance to be copied. This argument is only effective when the <instanceID or query?> argument is set to instanceID. |
Repository: |
Specify the name of the repository holding the instance to be copied. This argument is only effective when the <instanceID or query?> argument is set to query. Repository names are case sensitive. |
Model: |
Specify the name of the model that holds the instance to be copied. This argument is only effective when the argument <instanceID or query?> is set to query. This model must be open for read access to enable a successful execution of this command. Model names are case sensitive. |
Entity: |
Specify the name of the entity, i.e. the type of the instance to be copied. This argument is only effective when the <instanceID or query?> argument is set to query. Entity names are case insensitive. |
First instance index to check: |
Specify an integer value denoting the index, i.e., element number in the Entity Extent aggregate that holds all instances of the same type in a model. The value of the <First instance index to check> argument specifies the index of the first instance to query The instance type is specified by the <Entity> argument. The first instance in the entity extent aggregate has index zero. This argument is only effective when the <instanceID or query?> argument is set to query. |
Condition: |
Specify the query to identify the actual instance. An empty query, i.e., a blank in the <Condition> argument will match all queried instances. This argument is only effective when the <instanceID or query?> argument is set to query. |
Target Model Repository: |
Specify the name of a repository where the target model resides. Repository names are case sensitive. |
Target Model: |
Specify the name of the model within the repository given by the <Target Model Repository> argument that will hold a copy of the instance. The <Target model> name must be unique within the <Target model repository>. |
Include/Exclude types: |
Specify the name of the type of the instance to be included/excluded in the copying process. Entity type names are case insensitive. The option [include types] or [exclude types] specifies whether the types should be included or excluded in the copying process. |
Options:
accumulating command output: |
A global option that appends the command output to the EDMsupervisor output window. Otherwise the output window is refreshed and only the last command output is displayed. |
match selected input: |
A global option that specifies that only items that partly or exactly matches the string in the related argument input field when activating a Select button, will be in the selection list. An empty (blank) string will match all items. |
update indexes |
A global option that specifies that the <First instance to check> argument will be updated to the next index after the one currently displayed. |
include types |
Only instances of the type specified in the <Include/Exclude types> argument will be copied. When the [subtypes] options is set, additionally instances that are subtypes of the specified types in <Include/Exclude types> argument can be copied. |
exclude types |
Instances of type specified in the <Include/Exclude types> argument will not be copied. When the [subtypes] options is set, additionally instances that are subtypes of the specified types in <Include/Exclude types> argument will not be copied. |
subtypes |
This option has only effect when used together with <include types> or <exclude types> options. |