sw

seneca-wflow

Seneca control flow helper

Showing:

Popularity

Downloads/wk

1

GitHub Stars

0

Maintenance

Last Commit

6yrs ago

Contributors

0

Package

Dependencies

3

Size (min+gzip)

13.3KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Seneca With Flow (seneca-wflow)

A simple waterflow wrapper for seneca microservices

Idea

Chain microservices based on business workflow.

To Use

var _seneca = require('seneca')()

.use('seneca-wflow', {

filename:'./workflow/yourflow',// module that contains the business flow

sequence:['process1', 'process2',...]

});

Examples:

Example 1 :

run with flow without seneca

$ node example/example1 --seneca.log.all | grep flowEngine

Example 2:

Example of creating a new workflow using the create command.


$ node example/example2 


Add loging to your plugin


$ node example/example2 --seneca.log.all | grep example2

Example 3:

Using the append command will append a sequence with number of times to execute the sequence.  Used to make loops.


$ node example/example3

Example 4:

Use pre-workflow flag to modify workflow prior to execute.

var options={

filename:"example4_seneca", // module 
sequence:["hello","preWF:generateLoop"]
}

$ node example/example4

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100