mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-07 07:36:54 +01:00
improve knowledge article
This commit is contained in:
parent
da0f5498e5
commit
0e2a0633d2
3 changed files with 11 additions and 24 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue