UNPKG

workflow-4-node

Version:

Workflow 4 Node is a .NET Workflow Foundation like framework for Node.js. The goal is to reach feature equivalence and beyond.

25 lines (20 loc) 582 B
var Activity = require("./activity"); var util = require("util"); var Declarator = require("./declarator"); var errors = require("../common/errors"); function Parallel() { Declarator.call(this); } util.inherits(Parallel, Declarator); Parallel.prototype.varsDeclared = function (callContext, args) { if (args && args.length) { callContext.schedule(args, "_argsGot"); } else { callContext.complete([]); } } Parallel.prototype._argsGot = function (callContext, reason, result) { callContext.end(reason, result); } module.exports = Parallel;