Expressions are….
1) $void=rtecall("trigger", $L.rc, 0) turn triggers off
2) $res.query="flag=true and status=\"resolved\" and closure.status isin {\"not
confirmed\", \"user confirmed\"} and (opened.by=\"Unicenter\" or
opened.by=\"VSAMIN\") and resolved.time<tod() - '1 00:00:00'" query to
select the records to close
3) $L.success.flg=rtecall("rinit", $L.rc.init, $ks.probsummary, "probsummary")
initialise the incident table
4) $L.success.flg=rtecall("select", $L.rc.select, $ks.probsummary, $res.query)
perform the select
If select returns no records (=3) last script, if select returns record(s) then next script
Expressions are….
1) closure.status in $ks.probsummary="user confirmed";status in
$ks.probsummary="closed";problem.status in $ks.probsummary="Closed" set
new values to close record
2) flag in $ks.probsummary=false;close.time in
$ks.probsummary=tod();closed.by in $ks.probsummary="SCAdmin" set some
more new values
3) $L.success.flg=rtecall("rupdate", $L.rc.update, $ks.probsummary) update the
record
Next script
Expression is….
1) $L.next.flg=rtecall("next", $L.rc.next, $ks.probsummary) go to next record in
list
If next returns next record back to script 2 if no next record last script.
Expression is….
1) $void=rtecall("trigger", $L.rc, 1) turn triggers back on
End
© Copyright 2026 Paperzz