UNPKG

tuain-nano-bpm

Version:

Package to provide basic functionalities for Process Management on services for Tuain platform

20 lines (17 loc) 542 B
class InstanceEventData { constructor(procName, procId, id, name, vars) { // this.controller = controller; this._procName = procName; this._procId = procId; this._id = id.toString(); this._name = name; this._vars = vars; } get procName() { return this._procName; } get procId() { return this._procId; } get id() { return this._id; } get name() { return this._name; } get varNames() { return Object.keys(this._vars); } getVar(name) { return this._vars?.[name]; } } module.exports = InstanceEventData;