General InformationThe In this script, you can define one of the following rules:
SampleIn the following example, if the operation's time type is set to either
Let DefinedTimeType(String) set DefinedTimeType = Parameters->GetAttributeObject("iOperationTimeType") Let updateTime(Boolean) Set updateTime = false Let newType(String) Set newType = DefinedTimeType if ((DefinedTimeType == "Measured") OR (DefinedTimeType == "Analyzed") ) { // Rule 1 set updateTime = true Parameters.SetAttributeBoolean("oUpdateOperationDuration", updateTime) // Rule 2: // It is possible to not define this rule. But, if user decides to define this rule, // first set the updateTime to true. Set newType = "Estimated" Parameters.SetAttributeString("oNewOperationTimeType", newType) } |