improve knowledge article

This commit is contained in:
Kilian Seizinger 2026-08-28 08:43:49 +02:00
parent da0f5498e5
commit 0e2a0633d2
3 changed files with 11 additions and 24 deletions

View file

@ -8,7 +8,6 @@ codeunit 50540 "Process Context Good Sample"
var
IsRunning: Boolean;
begin
IsRunning := false;
OnCheckProcessRunning(IsRunning);
exit(IsRunning);
end;
@ -43,11 +42,9 @@ codeunit 50542 "Process Driver Good Sample"
ProcessFlag: Codeunit "Process Flag Good Sample";
begin
// A fresh instance, bound for exactly this call. If the shared code
// errors, the stack unwinds, ProcessFlag leaves scope and the binding
// goes with it - no reset code, no UnbindSubscription in an error path.
// errors, the stack unwinds and takes the binding with it - nothing to reset.
BindSubscription(ProcessFlag);
RunSharedCode(DocumentNo);
FinishProcess(DocumentNo);
end;
local procedure RunSharedCode(DocumentNo: Code[20])
@ -55,10 +52,6 @@ codeunit 50542 "Process Driver Good Sample"
// A base application report, a posting routine, or any other object
// that extensions hook into - including a customer's own replacement.
end;
local procedure FinishProcess(DocumentNo: Code[20])
begin
end;
}
// An extension hooked into that shared code can now ask the question directly