Workflow constructor

Workflow({
  1. required String id,
  2. required String name,
  3. required String description,
  4. required List<WorkflowStep> steps,
  5. String? startStepId,
  6. Map<String, dynamic>? initialData,
  7. WorkflowStatus status = WorkflowStatus.pending,
  8. DateTime? createdAt,
  9. DateTime? updatedAt,
  10. String? version,
  11. int? priority,
  12. bool? isEnabled,
  13. List<String>? tags,
  14. Map<String, String>? metadata,
  15. Map<String, dynamic>? triggerConditions,
  16. int? maxRetries,
  17. 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,
});