0.0.13 • Published 8 years ago

seneca-wflow v0.0.13

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

Seneca With Flow (seneca-wflow)

A simple waterflow wrapper for seneca microservices

Sequence

Basic building block for workflows.

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
0.0.13

8 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago