0.2.0 • Published 10 months ago

sequential-workflow-model v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Sequential Workflow Model

License: MIT View this project on NPM

This package contains a extendable data model of a sequential workflow.

The package is used by the following packages:

🔨 How to Extend Model

To extend the model, you need to extend base interfaces.

interface MyDefinition extends Definition {
  properties: {
    baseUrl: string;
  };
}

interface SendEmailStep extends Step {
  componentType: 'task';
  type: 'sendEmail';
  properties: {
    to: string;
    subject: string;
    body: string;
  };
}

interface IfStep extends BranchedStep {
  componentType: 'switch';
  type: 'if';
  properties: {
    condition: string;
  };
}

💡 License

This project is released under the MIT license.