edmiRemoteArchiveModel

EdmiError edmiRemoteArchiveModel(SdaiServerContext serverContextId,
                                  SdaiRepository    remoteRepositoryName, 
                                  SdaiString        remoteModelName, 
                                  SdaiString        remoteArchivedModelName, 
                                  SdaiOptions       options, 
                                  SdaiInstance      *archivedModelId,
                                  SdaiInvocationId  *edmiInvocationId); 



Temporarely disengages a model from the EDMdatabase. There is a maximum number of models that may coexist within an EDMdatabase. Users that need to store great numbers of models may exceed this capacity. However, models may be temporarily archived, thereby releasing capacity in the EDMdatabase. Models that are rarely used need not be permanently active in the EDMdatabase. This function may also be used to make multiple versions of a model. For an EDMuser to archive a model, he needs at least read access to it. Model administration data such as ownership and protection will also be archived.

Arguments


Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_a_serverContextId'.
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_a_remoteRepositoryName_SDAI_TYPE'.
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_a_remoteModelName_EDMI'.
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_a_remoteArchivedModelName'.
 
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_a_options_EDMI'.
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_a_archivedModelId'.
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_a_edmiInvocationId'.

Return Value


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

Options


  

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

 

Example


 

EdmiError rstat;
SdaiServerContext myContext;
SdaiModel modelId;
SdaiArchivedModel archModId;
SdaiInstance instId;
 
/* Create Server Context */
rstat = edmiDefineServerContext("MyContext","Johnny", "Supervisor", "cf37ftr", "TCP", "9090", "MyServerHost", NULL, NULL, NULL, NULL, NULL, &myContext); 
/* Activate the model */
rstat = edmiRemoteActivateModel(myContext, "MyArchivedModel","DataRepository", "MyModel",  0, &modelId, NULL); 
/* Update the population */
rstat = edmiRemoteCreateInstanceAndPutAttrsBN(myContext,"DataRepository", "MyModel", "FRIEND", 2, &instId, NULL, "FIRST_NAME", sdaiSTRING, "Lucy", "LAST_NAME", sdaiSTRING, "Schmidt"); 
/* Rearchive the model */
rstat = edmiRemoteArchiveModel(myContext,"DataRepository", "MyModel", "MyArchivedModel", 0, &archModId, NULL); 
. . .

 

See also

Filter by label

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