Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getFlows.done(function (mcf) {
console.log(mcf.getDataStructs());
console.log(mcf.getDataStructs()[0]);
console.log(mcf.getDataStructs()[0]['d.Structure']['o.ExtensionPoint_Summary']);
console.log(JSON.parse(mcf.getDataStructs()[0]['d.Structure']['o.ExtensionPoint_Summary']));
//this.afterGetFlows(JSON.parse(mcf.getDataStructs()[0]['d.Structure']['o.ExtensionPoint_Summary']));
_this.afterGetFlows([{ "id": "1", "label": "label of flow", "command": "*A" }, { "id": "2", "label": "received from", "command": "6MYSELF" }]);
});
});
getFlows.done((mcf: CommandFlow) => {
console.log(mcf.getDataStructs());
console.log(mcf.getDataStructs()[0]);
console.log(mcf.getDataStructs()[0]['d.Structure']['o.ExtensionPoint_Summary']);
console.log(JSON.parse(mcf.getDataStructs()[0]['d.Structure']['o.ExtensionPoint_Summary']));
//this.afterGetFlows(JSON.parse(mcf.getDataStructs()[0]['d.Structure']['o.ExtensionPoint_Summary']));
this.afterGetFlows([{"id":"1","label":"label of flow","command":"*A"},{"id":"2","label":"received from","command":"6MYSELF"}]);
});
});