Click or drag to resize

RoleApproval Methods

The RoleApproval type exposes the following members.

Methods
  NameDescription
Public methodLogResourceApprovalDecision
Creates audit trail decision entries for explicitly approved roles (Role Assignment objects)
Codemethod usage The code method is intended to be used in the resource approval processes. It should be executed both on the "Approve" and "Reject" transition with the "halt on error" flag set to true. It assumes that the active user is the approver. It assumes that the RoleApproval references the approved Resource Assignments and the the requestor field is populated with the user who created the request.
Designed to be used in a process only (Yes/No) Yes
Action Object (data object type) Activity
Public methodLogRoleApproval Obsolete.
Creates audit log entries for explicitly approved roles (Role Assignment objects)
Codemethod usage The code method is intended to be used in the role approval processes. It should be executed on the "Approve" transition with the "halt on error" flag set to true. It assumes that the active user is the approver. It assumes that the RoleApproval references the approved Role Assignments and the the requestor field is populated with the user who created the request.
Designed to be used in a process only (Yes/No) Yes
Action Object (data object type) RoleApproval
Public methodValidateApproverNotBeneficiary Obsolete.
Validates that the role approver is not a beneficiary, meaning that none of the role assignments to be approved must be assigned to the approver.
Codemethod usage The code method is intended to be used in the role approval processes. It should be executed on the "Approve" transition with the "halt on error" flag set to true. It assumes that the active user is the approver. The method retrieves the identities assigned to the referred role assignment data objects. It then validates that the active user's identity is not one of those.
Designed to be used in a process only (Yes/No) Yes
Action Object (data object type) RoleApproval
Public methodValidateApproverNotRequestor
Validates that the role approver is not the one who made the role request.
Codemethod usage The code method is intended to be used in the role approval processes. It should be executed on the "Approve" transition with the "halt on error" flag set to true. It assumes that the active user is the approver. The method compares the active user with the user stated in the "Requestor" property of the role approval data object.
Designed to be used in a process only (Yes/No) Yes
Action Object (data object type) RoleApproval
Top
Extension Methods
  NameDescription
Public Extension MethodToBool
Converts object to boolean.
(Defined by ObjectExtensions.)
Public Extension MethodToDateTime
Converts object to DateTime.
(Defined by ObjectExtensions.)
Public Extension MethodToInt
Converts object to integer.
(Defined by ObjectExtensions.)
Top
See Also