Procees Output and Process Dependencies Implemented

This commit is contained in:
Luis Fernando Molina committed 2019-11-06 10:46:28 +01:00
1 parent 8950614232
commit 1cc06a28eb
11 files changed
+370 -59

No files matched your search

@@ -1171,14 +1171,28 @@ function newProtocolNode () {
subType: node.subType,
name: node.name,
code: node.code,
processOutput: getProtocolNode(node.processOutput, removePersonalData, parseCode, includeIds, includePayload, includeReferences),
processDependencies: getProtocolNode(node.processDependencies, removePersonalData, parseCode, includeIds, includePayload, includeReferences),
statusReport: getProtocolNode(node.statusReport, removePersonalData, parseCode, includeIds, includePayload, includeReferences),
executionStartedEvent: getProtocolNode(node.executionStartedEvent, removePersonalData, parseCode, includeIds, includePayload, includeReferences),
executionFinishedEvent: getProtocolNode(node.executionFinishedEvent, removePersonalData, parseCode, includeIds, includePayload, includeReferences),
calculations: getProtocolNode(node.calculations, removePersonalData, parseCode, includeIds, includePayload, includeReferences),
dataBuilding: getProtocolNode(node.dataBuilding, removePersonalData, parseCode, includeIds, includePayload, includeReferences),
outputDatasets: [],
statusDependencies: [],
dataDependencies: []
dataBuilding: getProtocolNode(node.dataBuilding, removePersonalData, parseCode, includeIds, includePayload, includeReferences)
}
if (includeIds) {
object.id = node.id
}
if (includePayload) {
object.savedPayload = getSavedPayload(node, includeReferences)
}
return object
}
case 'Process Output': {
let object = {
type: node.type,
subType: node.subType,
name: node.name,
outputDatasets: []
}
if (node.outputDatasets !== undefined) {
for (let m = 0; m < node.outputDatasets.length; m++) {
@@ -1188,6 +1202,22 @@ function newProtocolNode () {
}
}
}
if (includeIds) {
object.id = node.id
}
if (includePayload) {
object.savedPayload = getSavedPayload(node, includeReferences)
}
return object
}
case 'Process Dependencies': {
let object = {
type: node.type,
subType: node.subType,
name: node.name,
statusDependencies: [],
dataDependencies: []
}
if (node.statusDependencies !== undefined) {
for (let m = 0; m < node.statusDependencies.length; m++) {
let statusDependency = getProtocolNode(node.statusDependencies[m], removePersonalData, parseCode, includeIds, includePayload, includeReferences)