Deleting a Workflow Template Using a Loader
You can delete workflow templates using a loader. This loader file is located in the <Windchill> folder and is run from the Windchill shell. The loader can be run in two modes:
1. ALL — Deletes all iterations of the workflow templates.
2. LATEST_ITERATION — Deletes only the latest iteration of the workflow templates.
Below is an example of the loader file:
<?xml version="1.0"?>
<!DOCTYPE NmLoader SYSTEM "standard13_1.dtd">
<NmLoader>
<csvWfProcessTemplateDelete
handler="wt.workflow.definer.LoadWorkflow.deleteWfProcessTemplate">
<csvTemplateName>11_WFT</csvTemplateName>
<csvcontainerPath>/wt.inf.container.OrgContainer=Demo Organization/wt.pdmlink.PDMLinkProduct=GOLF_CART</csvcontainerPath>
<csvdeleteOption>LATEST_ITERATION</csvdeleteOption>
</csvWfProcessTemplateDelete>
</NmLoader>
To run the loader from the Windchill shell, use the following command:
windhill wt.load.LoadFromFile -d ../LoadWorkflow_DeleteWorkflow.xml -u wcadmin -p wcadmin
Isto foi útil?