Interface WorkflowOptions<P>
interface WorkflowOptions<
P extends readonly WorkflowPolicyClass[] = readonly [],
> {
name: string;
policies?: P;
reporters?: readonly ReporterClass[];
}
P extends readonly WorkflowPolicyClass[] = readonly [],
> {
name: string;
policies?: P;
reporters?: readonly ReporterClass[];
}
Type Parameters
- P extends readonly WorkflowPolicyClass[] = readonly []
The workflow policies attached to the workflow, as a list written in place.
Properties
Readonlyname
name: string
The workflow's name, which every event of its journeys carries.
Optional Readonlypolicies
The workflow policies attached to the workflow, in the order their hooks
are looked up, each declared with @workflowPolicy. The workflow must
implement the roles each of them requests.
Optional Readonlyreporters
The classes of the workflow's own reporters, built for every journey before the reporters an instance adds.
What
@workflowsays about a workflow.