Workflow constructor
Workflow({
- required String id,
- required String name,
- required String description,
- required List<
WorkflowStep> steps, - String? startStepId,
- Map<
String, dynamic> ? initialData, - WorkflowStatus status = WorkflowStatus.pending,
- DateTime? createdAt,
- DateTime? updatedAt,
- String? version,
- int? priority,
- bool? isEnabled,
- List<
String> ? tags, - Map<
String, String> ? metadata, - Map<
String, dynamic> ? triggerConditions, - int? maxRetries,
- Duration? executionTimeout,
Implementation
Workflow({
required this.id,
required this.name,
required this.description,
required this.steps,
this.startStepId,
this.initialData,
this.status = WorkflowStatus.pending,
this.createdAt,
this.updatedAt,
this.version,
this.priority,
this.isEnabled,
this.tags,
this.metadata,
this.triggerConditions,
this.maxRetries,
this.executionTimeout,
});