pm4js
Version:
Process Mining for Javascript
21 lines (17 loc) • 381 B
JavaScript
class JsonOcelExporter {
static apply(ocel) {
return JsonOcelExporter.exportLog(ocel);
}
static exportLog(ocel) {
ocel = Ocel20FormatFixer.apply(ocel);
return JSON.stringify(ocel);
}
}
try {
module.exports = {JsonOcelExporter: JsonOcelExporter};
global.JsonOcelExporter = JsonOcelExporter;
}
catch (err) {
// not in node
//console.log(err);
}