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.

41 lines (34 loc) 1.02 kB
"use strict"; var Composite = require("./composite"); var util = require("util"); function Method() { Composite.call(this); this.reserved("canCreateInstance", false); this.reserved("methodName", null); this.reserved("instanceIdPath", ""); this.result = null; } util.inherits(Method, Composite); Method.prototype.createImplementation = function () { return { "@block": { id: "_methodBlock", a: null, args: [{ "@beginMethod": { canCreateInstance: this.canCreateInstance, methodName: this.methodName, instanceIdPath: this.instanceIdPath, "@to": "a" } }, { "@endMethod": { methodName: this.methodName, result: "= this._methodBlock.$parent.result" } }, "= this.a"] } }; }; module.exports = Method; //# sourceMappingURL=method.js.map