Deleting Learn Models (lkt_delete_rlmodel)
The following function deletes one Learn model, a list of models, or all models.
dvkerr_t lkt_delete_rlmodel(lpar_t host, lpar_t names);
dvkerr_t lkt_delete_rlmodelT(lpar_t host, lpar_t names, lpar_t tran);
If a delete of multiple models is requested, all models that can be deleted are deleted, even if a single delete operation fails. If one or more deletes fail, a list of those that failed are returned as the error item.
Input
host (optional)
This is used to identify the server. For more information, see Communicating with TIBCO Patterns Servers
This is used to identify the server. For more information, see Communicating with TIBCO Patterns Servers
This is used to identify the server. For more information, see Communicating with Servers.
name (required)
identifies the model or models to be deleted. If this is LPAR_NULL, all currently loaded models are deleted. If a single LPAR_STR_RLMODELNAME is given, the named model is deleted. If this is a generic list (LPAR_LST_GENERIC) then each item of the list must be an LPAR_STR_RLMODELNAME that names a model to be deleted. It is invalid to name the same model more than once.
tran (optional)
identifies the user transaction (LPAR_LONG_TRAN_ID) under which the Learn model is to be deleted.
Error codes and items returned by lkt_delete_rlmodel
|
EXPECTLIST |
an item that should have been a list of model names |
|
FEATURESET |
(none) |
|
INTERNAL |
a list of models that were not deleted |
|
LOOKUP |
(none) |
|
NODBDESC |
(none) |
|
NOSYSINIT |
(none) |
|
PARAMVAL |
an item that should be a LPAR_STR_RLMODELNAME or zero length LPAR_STR_RLMODELNAME value |
|
RLINKMODELNOTFOUND |
a list of models not deleted because they didn't exist |
|
TRAN_UNKNOWN |
an lpar that contains the unknown transaction id |
|
TRAN_IN_USE |
an lpar that contains the transaction id |
|
TRANCONFLICT |
a list that contains LPAR_LONGINT_TRAN_ID and LPAR_STR_ERRORDETAILS |