workflow-decider
Decider
Last updated 2 years ago by oncletom .
Original npm · Tarball
$ cnpm install workflow-decider 
SYNC missed versions from official npm registry.

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
}
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |