create-workflow

Generate Directum RX workflow scaffolding with Task.mtd blocks, C# handlers, and RouteScheme.xml.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/dunaevdmitriys-dev/directum-mcp-server --skill create-workflow-dunaevdmitriys-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-workflow
Source: https://github.com/dunaevdmitriys-dev/directum-mcp-server/tree/main/skills/create-workflow
Command: npx skills add https://github.com/dunaevdmitriys-dev/directum-mcp-server --skill create-workflow-dunaevdmitriys-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you create a complete Directum RX workflow by assembling the required metadata (Task.mtd blocks), implementing block handlers with correct method signatures, and producing a valid RouteScheme.xml so the workflow can run end-to-end.

Core Features & Use Cases

  • Workflow metadata authoring: updates Task.mtd by adding blocks and ensuring BlockIds stays an empty array while wiring HandledEvents correctly.
  • Block handler scaffolding: generates/updates ModuleBlockHandlers.cs with the exact namespaces and strongly-typed handler signatures for Assignment, Notice, Script, and Task blocks.
  • RouteScheme generation: creates/updates RouteScheme.xml with a minimal but valid activity graph (Start → Blocks → End) that matches your blocks.
  • Directum RX use-case fit: used when you need a new workflow for an existing task that already exists in Directum RX, including typical patterns like BeforeStart checks and route handlers.

Quick Start

Tell the AI the CompanyCode, ModuleName, existing TaskName, and a block list (names, block types, and what each block should do) so it can produce updated Task.mtd, ModuleBlockHandlers.cs, and RouteScheme.xml for your Directum RX workflow.

Frequently Asked Questions about create-workflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a Directum RX workflow with Task.mtd and RouteScheme.xml?

To generate a Directum RX workflow, you provide the CompanyCode, ModuleName, existing TaskName, and a block list. The process outputs updated Task.mtd blocks, C# block handlers, and a matching RouteScheme.xml graph for end-to-end execution.

What is the correct way to wire HandledEvents in Directum RX block handlers?

Wiring HandledEvents in Directum RX block handlers requires updating Task.mtd metadata to map events correctly while keeping BlockIds as an empty array. The C# handler method signatures must match the expected Assignment, Notice, Script, and Task block types.

Can I use this to add workflow blocks to an existing Directum RX task?

Yes, you can add workflow blocks to an existing Directum RX task. You must supply the existing TaskName along with block names, types, and descriptions to generate the correct Task.mtd updates, ModuleBlockHandlers.cs scaffolding, and RouteScheme.xml.

What namespace should Directum RX C# block handlers use?

Directum RX C# block handlers must use the {Company}.{Module}.Server.{ModuleName}Blocks namespace. This ensures the strongly-typed handler signatures for Assignment, Notice, Script, and Task blocks are correctly recognized within the module's server-side architecture.

Why does my Directum RX workflow RouteScheme.xml fail validation after adding blocks?

RouteScheme.xml validation fails when the activity graph does not match the defined blocks or lacks correct GUID fields. The scheme requires a valid Start to Blocks to End flow that aligns exactly with the Task.mtd block definitions and their specific identifiers.

How do I create a Directum RX workflow route scheme for multiple block types?

Creating a route scheme for multiple block types involves defining a minimal activity graph in RouteScheme.xml connecting Start, Blocks, and End. You must simultaneously update Task.mtd with the correct block definitions and generate C# handlers for each Assignment, Notice, Script, or Task block.