moved procedure call from WO_MAT_ACTIONS to a standalone service to avoid posting too many transactions

This commit is contained in:
Infineon\StieberD
2025-07-28 14:34:20 -07:00
parent c7f1f86249
commit 9e54865e1e
5 changed files with 171 additions and 12 deletions

View File

@ -52,10 +52,11 @@ Main:
// Read the record and call the handler
If Key NE "" then
Ans = Function(@Handler(Connection, Key))
If Ans EQ '' then
If (Ans EQ '') then
If Assigned(pKey) then
Delete pTable, pKey else Null
Unlock pTable, pKey else Null
If (pKey NE '') then
Delete pTable, pKey else Null
end
end
end
end
@ -85,7 +86,9 @@ Main:
// Always log the result
If Assigned(pKey) then
If (pKey NE '') then
If (pKey NE '') then
// Call unlock here in case an error was encountered above
Unlock pTable, pKey else Null
Open 'SQL_LOG' to hLog then
If Ans EQ '' then
Result = 'PROCESSED'