Summary

Add a WorkflowExecutionResult DTO class that encapsulates the result of a workflow execution, including status, session information, outputs, and timing data.

Business Value

  • Provides type-safe result handling for workflow execution
  • Standardizes result format across all execution modes
  • Enables clean error handling with status codes
  • Supports serialization for queue storage and API responses

Status Constants

  • STATUS_COMPLETED: Workflow finished successfully
  • STATUS_RUNNING: Workflow is currently executing
  • STATUS_PENDING: Workflow is queued or starting
  • STATUS_FAILED: Workflow execution failed
  • STATUS_TIMEOUT: Workflow exceeded timeout limit

Factory Methods

  • success(): Create a successful completion result
  • pending(): Create a pending/async result
  • running(): Create a running status result
  • failure(): Create a failure result with error message
  • timeout(): Create a timeout result

Properties

  • success: Boolean success indicator
  • status: Status string constant
  • sessionId: Playground session ID
  • jobId: Job ID if available
  • outputs: Workflow output data
  • errorMessage: Error details if failed
  • executionTimeMs: Execution duration in milliseconds

Comments

joevagyok created an issue. See original summary.

gxleano’s picture

I have contributed (not only by code, but discussion, presentation, testing or anything related).

d34dman’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.