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.

31 lines (22 loc) 769 B
"use strict"; var Activity = require("./activity"); var util = require("util"); function WaitForBookmark() { Activity.call(this); this.bookmarkName = ""; } util.inherits(WaitForBookmark, Activity); WaitForBookmark.prototype.run = function (callContext, args) { var bookmarkName = this.bookmarkName; if (!bookmarkName) { callContext.fail(new Error("WaitForBookmark activity's property 'bookmarkName' is not a non-empty string.")); return; } callContext.createBookmark(bookmarkName, "_bmReached"); callContext.idle(); }; WaitForBookmark.prototype._bmReached = function (callContext, reason, result) { callContext.end(reason, result); }; module.exports = WaitForBookmark; //# sourceMappingURL=waitForBookmark.js.map