Create the business logic in a a.CATRule file, then a a.CATRuleExit file calls it. The xx.CATRuleExit file TESTBJ3_RULE.CATRuleExit has this structure: <Scripts> <Script OpeningID="PLMCommandInputValidation" Type="DELTimeAnalysisRepInstance" ScriptName="TESTBJ3_RULE" /> </Scripts> The TESTBJ3_RULE.CATRule file, called in TESTBJ3_RULE.CATRuleExit, contains the BL authorized by you to restrict the deletion of TA (Time Analysis). It is the following form:
Trace(1", BL called.") Validation = If Validation =
Trace(1,"BL 2 called.") You also have the freedom to display the error message that you want. The following lines can be added to the TESTBJ3_RULE.CATRule file. Note:
The required
message needs entering between the two inverted commas.
Parameters.Message = Both preceding files are located in the folder win_b64\resources\knowledge\scripts. Deletion of a time analysis can be done using the contextual command
Delete or the action bar command Delete
Sometimes the TA that is restricted by BL, and you can try to delete it with the contextual delete command or with the Delete Time Analysis command in action bar. The following error dialog box appears (BL activates to restrict the deletion of time analysis) if no other message defines. | |||||||