General InformationYou can add the Business Logic as a CATRule file or define it through the DataSetup app. If you create the script through the DataSetup, it remains persistent in the database, is stored on the server and available to all. If you create the script using a CATRule, you must store the files
You can then execute the Business Rule before generating the NC Output. Input ObjectsInput object must be Example of UsageFor CATRule file: Parameters.SetAttributeBoolean("CreateNCOutput", FALSE)
Parameters.SetAttributeString("AbortMessageString","Testing")
// Set the type of message to be sent to the user
// MessageType = 1 => Message is of Type Information
// MessageType = 2 => Message is of Type Warning
// MessageType = 3 => Message is of Type Fatal
Parameters.SetAttributeInteger("MessageType",3)
For CATRuleExit file: <Scripts>
<Script OpeningID="DELValidateNCOutput_ID"
Type="ManufacturingProgram" ScriptName="DELValidateNCOutput" />
</Scripts>
| |||||||