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.

26 lines (21 loc) 663 B
"use strict"; let Activity = require("./activity"); let util = require("util"); function InstanceData() { Activity.call(this); } util.inherits(InstanceData, Activity); InstanceData.prototype.run = function(callContext, args) { if (callContext.executionContext.engine && callContext.executionContext.engine.instance) { let insta = callContext.executionContext.engine.instance; callContext.complete({ workflowName: insta.workflowName, workflowVersion: insta.workflowVersion, instanceId: insta.id }); } else { callContext.complete(null); } }; module.exports = InstanceData;