Workflow class
Workflow model
- Available extensions
- Annotations
-
- @JsonSerializable.new()
Constructors
-
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}) -
Workflow.fromJson(Map<
String, dynamic> json) -
factory
Properties
- createdAt → DateTime?
-
final
- description → String
-
final
- executionTimeout → Duration?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
-
initialData
→ Map<
String, dynamic> ? -
final
- isEnabled → bool?
-
final
- maxRetries → int?
-
final
-
metadata
→ Map<
String, String> ? -
final
- name → String
-
final
- priority → int?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startStepId → String?
-
final
- status → WorkflowStatus
-
final
-
steps
→ List<
WorkflowStep> -
final
-
final
-
triggerConditions
→ Map<
String, dynamic> ? -
final
- updatedAt → DateTime?
-
final
- version → String?
-
final
Methods
-
copyWith(
{String? id, String? name, String? description, List< WorkflowStep> ? steps, String? startStepId, Map<String, dynamic> ? initialData, WorkflowStatus? status, 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}) → Workflow -
copyWith(
{String? id, String? name, String? description, List< WorkflowStep> ? steps, String? startStepId, Map<String, dynamic> ? initialData, WorkflowStatus? status, 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}) → Workflow -
Available on Workflow, provided by the WorkflowExtension extension
Create a copy of the workflow -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited