ApprovalManager

Syntax

ApprovalManager(&awprcs_id, &hdr_, &approver_)

Description

Developers need to know their transaction id, and need to pass in an instance of their application's main record, which describes the request being submitted for approval. They also need to explicitly tell the Approval Framework who the approver is.

Parameters

Parameter Description

&awprcs_id

The approval Process ID that has been defined in the Transaction Registry, as string.

&hdr_

The header record defined for the approval processes in the Transaction Approval Levels in the Transaction Registry, as record.

&approver_

The Operator ID of the user approving the transaction, as string.

Example

import EOAW_CORE:*;
Component EOAW_CORE:ApprovalManager &approvalMgr;
&vchrRecord = CreateRecord(Record.VCHR_AF_HDR_VW);
GetLevel0()(1).GetRecord(Record.VCHR_FS).CopyFieldsTo(&vchrRecord);
&approvalMgr = create EOAW_CORE:ApprovalManager("VoucherApproval",⇒
&vchrRecord, %UserId);