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 »

EdmiError edmiRemoteActivateModel (SdaiServerContext serverContextId,
                                    SdaiString        remoteArchivedModelName, 
                                    SdaiRepository    remoteRepositoryName, 
                                    SdaiString        remoteModelName, 
                                    SdaiOptions       options, 
                                    SdaiModel         *modelId
                                    SdaiInvocationId  *edmiInvocationId); 


Makes the EDMserver activate an archived model in a remote EDMdatabase. There is a maximum number of models that may be simultaneously active within an EDMdatabase. Databases that need to store great numbers of models may exceed this capacity. To solve this, models may be temporarily archived, thereby releasing capacity in the EDMdatabase. Models that are rarely used need not be permanently active in the EDMdatabase. For an EDMuser to activate a model, he needs at least read access to it.

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_remoteArchivedModelName'.
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_options_EDMI'.
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_a_modelId_EDMI'.
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_SKIP_STEP_ID_MODEL'.
 
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_o_RESTORE_MODEL_ADMIN_DATA'.
 
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_o_KEEP_ARCHIVED_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.

 

 

 



 

 

 

 

 

 

 

 

 

 

 

  • No labels