Skip to content

feat: add unified execution tracking types and methods (#1075)#59

Merged
saurabhjain1592 merged 4 commits into
mainfrom
feat/unified-execution-status
Jan 24, 2026
Merged

feat: add unified execution tracking types and methods (#1075)#59
saurabhjain1592 merged 4 commits into
mainfrom
feat/unified-execution-status

Conversation

@saurabhjain1592

Copy link
Copy Markdown
Member

Summary

Adds unified execution tracking types for consistent status monitoring across MAP plans and WCP workflows (Issue #1075, EPIC #1074).

New Types (in ExecutionTypes class)

  • ExecutionStatus - Unified class with Builder pattern
  • ExecutionType - MAP_PLAN | WCP_WORKFLOW
  • ExecutionStatusValue / StepStatusValue - Status enums
  • UnifiedStepStatus - Step-level details

New Methods

  • getExecutionStatus(executionId) - Get unified execution status
  • listUnifiedExecutions(request) - List executions with filters

Helper Methods

  • ExecutionStatus.isTerminal() - Check terminal state
  • ExecutionStatus.getCurrentStep() - Get running step
  • ExecutionStatus.calculateTotalCost() - Sum step costs

Files Changed

  • src/main/java/com/getaxonflow/sdk/types/execution/ExecutionTypes.java - New types
  • src/main/java/com/getaxonflow/sdk/types/execution/package-info.java - Package docs
  • CHANGELOG.md - v2.7.0 entry

Test plan

  • SDK compiles (mvn compile)
  • Types accessible
  • Backward compatible
  • SDK smoke tests pass in CI

- Add ExecutionStatus and UnifiedStepStatus types for MAP/WCP unified tracking
- Add ExecutionType, ExecutionStatusValue, StepStatusValue enums
- Add UnifiedGateDecision, UnifiedApprovalStatus enums
- Add request/response types for listing executions
- Add Builder patterns for all complex types

Part of EPIC #1074: Unified Workflow Infrastructure
Added methods:
- getExecutionStatus(String executionId) - Get unified status for MAP/WCP
- listUnifiedExecutions(UnifiedListExecutionsRequest) - List with filtering

Part of EPIC #1074: Unified Workflow Infrastructure
@saurabhjain1592 saurabhjain1592 merged commit 2ff6a90 into main Jan 24, 2026
9 checks passed
@saurabhjain1592 saurabhjain1592 deleted the feat/unified-execution-status branch January 27, 2026 10:44
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