.. include:: /Includes.rst.txt .. _task-1791608415: ============================ Task: Approvals as contracts ============================ Description =========== Packages that have their requests approved use the contracts of the approval module: the state of an approval (``ApprovalStates``), the approve and reject actions of a reader (``ApprovalActions``), the chain a subject needs (``ApprovalChains``) and its preview (``ChainPreview``). The subject, attributes, steps, origin and status of an approval are contract types, and ``SubmitForApproval`` answers a ``SubmittedApproval``. Impact ====== A package submitting approvals imports these types from ``WebVision\Adsum\Core\Approval\Contract``. .. index:: package:adsum-core, package:adsum-attendance, package:adsum-leave, package:adsum-working-time, package:adsum-assets