LedgerJournalTable.initWFApprovalStatus Method
Sets an initial state of the WorkflowApprovalStatus field of the LedgerJournalTabletable.
Syntax
public void initWFApprovalStatus(LedgerJournalName _ledgerJournalName, [boolean _isJournalAlreadyApproved])
Run On
Called
Parameters
- _ledgerJournalName
Type: LedgerJournalName Table
A LedgerJournalName buffer.
- _isJournalAlreadyApproved
Type: boolean
A Boolean value that indicates whether the journal is already approved; optional.
Exceptions
Exception | Condition |
---|---|
Error | The current workflow approval status of the journal indicates that an active workflow instance exists. |
Remarks
The valid initial states are None and Not Submitted.Only journals with a current workflow approval status not associated to running workflow instances can have an initial workflow approval state set.An Infolog will be generated when an already approved journal cannot have its workflow approval status set to Not Submitted.