Class: RigidWorkflow::StepAttempt
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- RigidWorkflow::StepAttempt
- Defined in:
- app/models/rigid_workflow/step_attempt.rb
Overview
Represents a single execution attempt of a step. Tracks attempt-specific status, input/output, and error details.
Step ↔ StepAttempt Relationship:
Step (1) ──── (has_many) ────> StepAttempt (N)
- step_name - attempt_number
- activity_class - status
- input - input
- status - output
- max_attempts - error_details
- scheduled_at - started_at
- finished_at
- failed_at
Query current state: step.current_attempt Query history: step.attempts