; Define your Customer Rules to control Objects.P.State depending on JobResults.
; Task: Delete not Used Examples, Edit Rules as required.
; #Doc1: to change State of other Process.Groupes add def at the end of the Rule.
; #Doc1: |-> Example:[P01.Stat=M.Start] [P02.Stat=M.Start] [PRf.Stat=Rf.Start]
; #Doc2: to reset status to previous state when result code is empty use def [P.Stat={PreState}]
; #Doc2: |-> Example: [RuleID=PreState] [O.Type=*] [J.ResCode=] [J.ResMsg=*] [J.ResWarn=*] [P.Stat={PreState}]
; #Doc3: to set other P.Results Rule with definitions: [P.ResCode=??] [P.ResMsg=Cutom Message] [P.ResWarn=0/1] [P.ResLink=]
; #Doc3: |-> Example: [RuleID=Custom P.def ] [O.Type=*]  [J.ResCode=*]  [J.ResMsg=*SUCCESS*]        [J.ResWarn=*] [P.Stat=D.01.OK]  [P.ResCode=0]  [P.ResMsg=CustomMsg:SUCCESS WELL Done] [P.ResWarn=false] [P.ResLink=www.plmjobmanager.com]
; #Doc3: |-> Example: [RuleID=Custom P.def ] [O.Type=*]  [J.ResCode=*]  [J.ResMsg=*Part not found*] [J.ResWarn=*] [P.Stat=D.02.ERR] [P.ResCode=02] [P.ResMsg=CustomMsg:Part not found]    [P.ResWarn=false] [P.ResLink=www.plmjobmanager.com]
; Date of Template : 19.02.2013
; ---- Rules: Standard
[RuleID=Default]  [P.Stat=D]
[RuleID=OK]       [O.Type=*]       [J.ResCode=0]  [J.ResMsg=*] [J.ResWarn=0] [P.Stat=D.OK]
[RuleID=Err]      [O.Type=*]       [J.ResCode<>0] [J.ResMsg=*] [J.ResWarn=*] [P.Stat=D.ERR]
[RuleID=Warn]     [O.Type=*]       [J.ResCode=*]  [J.ResMsg=*] [J.ResWarn=1] [P.Stat=D.WRN]
; ---- Rules: Refile: AP Basis
[RuleID=Default]  [P.Stat=D]
[RuleID=OK]       [O.Type=MASTER]  [J.ResCode=0]  [J.ResMsg=*] [J.ResWarn=0] [P.Stat=D.RfBa.OK]
[RuleID=OK]       [O.Type<>MASTER] [J.ResCode=0]  [J.ResMsg=*] [J.ResWarn=0] [P.Stat=D.Rf.OK]
[RuleID=Err]      [O.Type=*]       [J.ResCode<>0] [J.ResMsg=*] [J.ResWarn=*] [P.Stat=D.RfBa.ERR]
[RuleID=Warn]     [O.Type=*]       [J.ResCode=*]  [J.ResMsg=*] [J.ResWarn=1] [P.Stat=D.RfBa.WRN]
; ---- Rules: Refile: AP MCS
[RuleID=Default]  [P.Stat=D]
[RuleID=OK]       [O.Type=*]       [J.ResCode=0]  [J.ResMsg=*] [J.ResWarn=0] [P.Stat=D.Rf.OK]
[RuleID=Err]      [O.Type=*]       [J.ResCode<>0] [J.ResMsg=*] [J.ResWarn=*] [P.Stat=D.RfMc.ERR]
[RuleID=Warn]     [O.Type=*]       [J.ResCode=*]  [J.ResMsg=*] [J.ResWarn=1] [P.Stat=D.RfMc.WRN]
