Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

do-not-use-this-workflows-creator

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

do-not-use-this-workflows-creator

Library for providing a smooth user workflow

  • 1.0.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

An Angular Client to develop workflows using an intuitive statement based UI.

Installation


npm i do-not-use-this-workflows-creator

Usage

  • Install the workflows-creator npm i do-not-use-this-workflows-creator

  • Import the WorkflowBuilderModule in the required module -

      ...
      imports: [
          ...
          WorkflowBuilderModule,
          ...
      ],
    
  • Use the component selector in your application -

    <workflow-builder
      [(state)]="state"
      [(diagram)]="diagram"
      (eventAdded)="elementClick($event)"
      (actionAdded)="elementClick($event)"
      (itemChanged)="valueChanges($event)"
    ></workflow-builder>
    
    • state is the initial state object
    • diagram is initial BPMN Diagram respectively.
    • eventAdded - this event fires whenever a new event is added in the workflow
    • actionAdded - this event fires whenever a new action is added in the workflow
    • itemChange - this event fires whenever a user input changes

Configurations

Nodes
  • Each Statement is made up of nodes -

    • Events - Triggers or Checks that lead to an action
    • Action - Actually task performed by the workflow
  • You can create your own nodes by extending the WorkflowNode class.

  • To register this node for use, provide it to the BPMN_NODES token -

{provide: BPMN_NODES, useValue: CustomNode, multi: true},
Element
  • Each Node is based on certain base elements like tasks, gateways, etc.
  • You can create your own BPMN Elements by extending the BpmnElement class.
  • You can also create any custom element by extending the WorkflowElement class(in case working with a non-BPMN workflow engine).
  • To register this element for use, provide it to the BPMN_INPUTS token -
{provide: BPMN_ELEMENTS, useValue: CustomElement, multi: true},
Prompts
  • Each Node also has some prompts or inputs from the users.
  • You can create your own Prompt by extending the WorkflowPrompt class.
  • To register this prompt for use, provide it to the token -
{provide: BPMN_INPUTS, useValue: CustomInput, multi: true},

Keywords

FAQs

Package last updated on 08 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc