workflow-decider

1.0.10 • Public • Published

workflow-decider

Install

npm i -g workflow-decider

Use

workflow-decider -r ./config.js
workflow-decider -r @org/workflow-config

Configuration path is either a relative path to a file or a requirable module.

Selectable debug can be enabled via the DEBUG environment variable:

DEBUG=decider:make-decision* workflow-decider -r <requirable-path-to-config>

Configuration

module.exports = {
  defaultStorage: <fn>,
  defaultRunCommand: <fn>,
 
  onClose: <fn>,
 
  interpolators: { },
  processors: [ ],
}

See below for details.

Defaults

defaultStorage

TBD.

defaultRunCommand

TBD.

Events

onClose

TBD.

Interpolators

TBD.

Processors

Array containing definitions of the processors used by the decider

{
  name: [required] (string) name of the processor
  version: [required] (string) version of the processor
  description: (string) description of the processor
  requires: [default=[]] (array[string]) keys in metadata needed by the processor to run
  runMaxCount: [default=1] (integer) times the processor can be completed from 1 to Infinity
  retryMaxCount: [default=0] (integer) times the processor can be retried if failed
  retryTimeout: [default=0] (integer) delay in seconds for the processor to be rescheduled during retry
  condition: [default=()=>{}] (function) must evaluate to true in order for the processor to be run
}

Readme

Keywords

none

Package Sidebar

Install

npm i workflow-decider

Weekly Downloads

1

Version

1.0.10

License

none

Last publish

Collaborators

  • thom4