The ApprovalAttribute is used to approve a object by a particular user or by a user group. To approve an object, the user needs to provide their Aligned Elements login credentials.
Example
The following example creates an object to approve that "This Document Object is completed and can be closed". After it has been approved, the user and the date of approval is displayed.
XML
<ApprovalAttribute Name="Closing Confirmation"
ObjectToApprove="This Document Object is completed and can be closed.">
</ApprovalAttribute>
Appearance
Before approval
After the object has been approved
XML Elements
UserGroups
The approver can be extended to also include user groups, in addition to single users..
<ApprovalAttribute Name="Closing Confirmation"
ObjectToApprove="This Document Object is completed and can be closed.">
<UserGroups>
<UserGroup UserGroupName="Testers" />
</UserGroups>
</ApprovalAttribute>
XML Attributes
ObjectToApprove (required)
The object to approve. The value is a simple text.
AskForWorkRole
Indicates if a work role must be provided to approve. The Default value is false.
<ApprovalAttribute Name="Closing Confirmation"
ObjectToApprove="This Document Object is completed and can be closed."
AskForWorkRole="true">
</ApprovalAttribute>
AskForLocation
Indicates if a location must be provided to approve. The Default value is false.
<ApprovalAttribute Name="Closing Confirmation"
ObjectToApprove="This Document Object is completed and can be closed."
AskForLocation="true">
</ApprovalAttribute>
AskForComment
Indicates if a comment must be provided to approve. The Default value is false.
<ApprovalAttribute Name="Closing Confirmation"
ObjectToApprove="This Document Object is completed and can be closed."
AskForComment="true">
</ApprovalAttribute>