Skip to content

Conversation

ArtemIstomin-sm
Copy link
Contributor

@ArtemIstomin-sm ArtemIstomin-sm commented Sep 29, 2025

Summary

  • WorkflowRun Helper Methods: Added helper methods to WorkflowRun struct for status checking and task management

    • Status check methods: IsRunning(), IsPaused(), IsFailed(), IsCompleted(), IsTimedOut(), IsTerminated()
    • Task management methods: GetFailedTasks(), GetCompletedTasks(), GetTasksByStatus(), GetTaskByReferenceName()
  • Workflow Helper Methods: Enhanced Workflow struct with additional helper methods

    • Status check methods: IsRunning(), IsPaused(), IsFailed(), IsCompleted(), IsTimedOut(), IsTerminated()
    • Task management methods: GetInProgressTasks(), GetFailedTasks(), GetCompletedTasks(), GetScheduledTasks(), GetTasksByStatus(), GetTaskByReferenceName()
  • Documentation Updates: Enhanced docs/workflow_sdk.md with documentation

    • Added WorkflowRun Helper Methods section with status check and task management examples
    • Added Workflow Monitoring Methods section covering WaitForWorkflowCompletionUntilTimeout() and MonitorExecution()
    • Added Workflow Helper Methods section with additional helper methods for Workflow struct
    • Added GetWorkflowWithContext() method example in workflow execution flow
  • Test Coverage: Created comprehensive test suite for helper methods

  • Temporarily disabled Revive lint to check naming until the next major release.

@ArtemIstomin-sm ArtemIstomin-sm force-pushed the feature/workflow-helpers-methods branch from 0f653bb to 7196581 Compare October 3, 2025 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant