Adds an acknowledgement workflow to a resource
Generates an acknowledgement resource with one row per person asked to
acknowledge a subject. Only the row's own person may acknowledge it.
The subject gains has_many :acknowledgements and an
acknowledged_by_actor? calculation. When the subject does not exist, it
is created with mix ash.gen.resource first.
Nobody may open a request until the application defines who can, in the
generated Checks.CanRequest module.
Example
mix ash_workflow.gen.acknowledgement MyApp.Policies.Policy --person MyApp.Accounts.User --overdue-after 14d
Options
--person- required. The actor resource. Each acknowledgement belongs to one person.--module- the acknowledgement resource's module name. Defaults to the subject's name withAcknowledgementappended.--domain- the domain for a subject the task creates. Required only when the subject does not exist.--overdue-after- moves an unacknowledged request to:overduethis long after it was requested, given as30m,12h,2dor2w. A duration under a minute needsAshWorkflow.Scheduler.Precise. Without it, no:overduestep is generated.--transition-log- also generates a transition log for the acknowledgement withmix ash_workflow.gen.transition_log. Defaults totrue.