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

« Previous Version 2 Current »

FUNCTION xpxConvertModels (sourceModelName              : STRING;
                           schemaMapName                : STRING;
                           targetModelName              : STRING;
                           declarationsToLog            : STRING; 
                           sourceLinesToLog             : STRING;
                           sourceInstancesToLog         : STRING;
                           logFile                      : STRING;
                           maxLogFileSize               : INTEGER; 
                           userOutputFile               : STRING;
                           options                      : INTEGER)
                           status                       : INTEGER;

Use this function to ....

Arguments


TypeNameComment
STRINGresultStringcomment

Return Value


Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_XPX_Return_Value'.

Options


OptionComment
XPXOptioncomment

 

Example


<Missing Example>

 

See also

Filter by label

There are no items with the selected labels at this time.

 


SYNTAX:
 
xpxConvertModels (sourceModelsName , schemaMapName, targetModelName,declarationsToLog, sourceLinesToLog, logFile       : STRING; maxLogFileSize                                     : INTEGER;  userOutputFile                                     : STRING;
                  options                                            : INTEGER) status                                             : INTEGER;
 
The xpxConvertModels function invokes the EDMmodelConverter to convert one or more existing data models (source models) in the EDMdatabase. The result of the conversion will normally be a new data model (target model) in the EDMdatabase. Optionally the result of this operation can be added to an existing data model.
This operation can be used for model merging, i.e., merge more models to a new model or add the merge result to an existing model.
Note: The invocation of a xpxConvertModels operation will not immediately activate the new ?conversion/merging? process. The actual operation will be inserted in a queue and then immediately execution is resumed after the xpxConvertModels call in the calling process. The actual queue of ?conversion/merging? processes will be handled when the current active EDMexpressVM process is terminated.
The underlying schema of the target model (target schema) must exist as a dictionary model in the EDMdatabase before the EDMmodelConverter is invoked by this function. Likewise the Express-X schema that defines the conversion process must exist as an Express-X dictionary model before this function can be successfully executed.
The functions edmiDefineSchema or xpxDefineSchema can be used to create a dictionary model of an Express schema in the EDMdatabase and the functions edmiDefineSchemaMap or xpxDefineSchemaMap can be used to create an Express-X dictionary model in the EDMdatabase.
The source model will be unchanged when the conversion process is terminated.
The EDMmodelConverter is utilizing the EDMexpressVM to perform the conversion process. To facilitate debugging of the conversion process, many options to trace the conversion process and to log events during the conversion process have been included.
Express-X can be used as a programming language for creating, manipulating, and deleting data in any data model in the EDMdatabase that can be accessed by the caller, hence the specified Express-X schema can be successfully interpreted without creating in a new data model.
An optional filter controls the logging of the conversion process. This filter is defined by the <declarationsToLog>, <sourceLinesToLog> and <options> arguments. The filter defines the following:

  1. What should be logged
  2. Which part of the Express-X schema should be logged

It is normally important to specify an appropriate logging filter to avoid the log output to fill up your disk.
This function is equivalent to the EDMinterface function edmiConvertModesBN.
See related function: xpxConvertModel, xpxConvertModelsWithParameters

  • No labels