Skip to content

CRD-2.3: Workflow Create Command #24

@charleslbryant

Description

@charleslbryant

User Story

As an operator, I can deploy new workflows from JSON files

Command

forge-dotnet create-workflow <file.json>

Input

JSON file containing workflow definition

API Integration

POST /workflows endpoint

Acceptance Criteria

  • Validates JSON file exists and is readable
  • Validates workflow JSON schema
  • Creates workflow in n8n via API
  • Returns new workflow ID on success
  • Clear feedback on validation failures

Tasks Breakdown

  • Create WorkflowDefinition model
  • Create JSON validation service
  • Extend IWorkflowService with CreateWorkflowAsync method
  • Extend N8nWorkflowClient with create workflow endpoint
  • Implement CreateWorkflowCommand with file validation
  • Add comprehensive error handling and user feedback
  • Write unit tests for all components
  • Update documentation

Parent Issues

Priority

High - Core functionality

Metadata

Metadata

Assignees

No one assigned

    Labels

    crdChange Request Document - User StorynextMedium priority - next sprint

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions