LedgerJournalWFApprEventHandlerElem.completed Method [AX 2012]
Provides an extensiblity point to add business logic related to a workflow element completed event for LedgerJournalTable workflow approvals.
Syntax
public void completed(WorkflowElementEventArgs _workflowElementEventArgs)
Run On
Called
Parameters
- _workflowElementEventArgs
Type: WorkflowElementEventArgs Class
Remarks
It is the workflow completed event that is responsible for updating the LedgerJournalTable table WorkflowApprovalStatus field from its current status to LedgerJournalWFApprovalStatus::Approved. This is because the possible latency between the element approval completed event and the workflow completed event creates a window of opportunity for an approved journal to be posting or posted before the entire workflow completes.
This latency also creates a condition where it could be possible to cancel a workflow on an approved posting or posted journal.