New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

seneca-wflow

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

seneca-wflow

A simple waterflow wrapper for seneca microservices

  • 0.0.13
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-44.44%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 24 Jan 2016

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