← Back to Activities Workflows
5.6.4 Activity Entity Reference
Source: app/plugins/Activities/src/Model/Entity/Activity.php
Activity defines an authorization type. Its important configuration includes name, term length, group, minimum/maximum age, required approver counts for initial requests and renewals, the permission used to discover approvers, and an optional role granted after activation.
Virtual properties expose the group and granted-role names for display. getApproversQuery(branchId) uses PermissionsLoader::getMembersWithPermissionsQuery() and throws when no approver permission is configured.
Safe use
- Load
activity_group/rolebefore relying on their virtual names. - Validate age and approval behavior through the registered workflow conditions, not a template.
- Scope approver discovery to the target member’s correct branch and active tenant.
- Treat the accessible-field map as input shaping, not authorization.
- Change field names/semantics together with workflow provider schemas and JSON definitions.