sequential-workflow-model
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

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.

Package Sidebar

Install

npm i sequential-workflow-model

Weekly Downloads

702

Version

0.2.0

License

MIT

Unpacked Size

21.7 kB

Total Files

6

Last publish

Collaborators

  • b4rtaz