Status Report and Execution Finished Event part 2
This commit is contained in:
1 parent
4f9c4bd403
commit
717269a931
8 files changed
+70
-26
No files matched your search
@@ -391,6 +391,18 @@ function newNodeChildren () {
|
||||
childrenCount: 0,
|
||||
childIndex: undefined
|
||||
}
|
||||
if (parentNode.statusReport !== undefined) {
|
||||
response.childrenCount++
|
||||
if (parentNode.statusReport.id === childNode.id) {
|
||||
response.childIndex = response.childrenCount
|
||||
}
|
||||
}
|
||||
if (parentNode.executionFinishedEvent !== undefined) {
|
||||
response.childrenCount++
|
||||
if (parentNode.executionFinishedEvent.id === childNode.id) {
|
||||
response.childIndex = response.childrenCount
|
||||
}
|
||||
}
|
||||
if (parentNode.calculations !== undefined) {
|
||||
response.childrenCount++
|
||||
if (parentNode.calculations.id === childNode.id) {
|
||||
|
||||
@@ -561,6 +561,14 @@ function newNodeDeleter () {
|
||||
}
|
||||
}
|
||||
|
||||
if (node.statusReport !== undefined) {
|
||||
deleteStatusReport(node.statusReport, rootNodes)
|
||||
}
|
||||
|
||||
if (node.executionFinishedEvent !== undefined) {
|
||||
deleteExecutionFinishedEvent(node.executionFinishedEvent, rootNodes)
|
||||
}
|
||||
|
||||
if (node.calculations !== undefined) {
|
||||
deleteCalculationsProcedure(node.calculations, rootNodes)
|
||||
}
|
||||
|
||||
@@ -824,6 +824,14 @@ function newOnFocus () {
|
||||
}
|
||||
case 'Process Definition': {
|
||||
let child
|
||||
child = getNodeThatIsOnFocus(node.statusReport)
|
||||
if (child !== undefined) {
|
||||
return child
|
||||
}
|
||||
child = getNodeThatIsOnFocus(node.executionFinishedEvent)
|
||||
if (child !== undefined) {
|
||||
return child
|
||||
}
|
||||
child = getNodeThatIsOnFocus(node.calculations)
|
||||
if (child !== undefined) {
|
||||
return child
|
||||
|
||||
@@ -1171,6 +1171,8 @@ function newProtocolNode () {
|
||||
subType: node.subType,
|
||||
name: node.name,
|
||||
code: node.code,
|
||||
statusReport: getProtocolNode(node.statusReport, 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: [],
|
||||
|
||||
@@ -808,6 +808,14 @@ function newShortcutKeys () {
|
||||
}
|
||||
case 'Process Definition': {
|
||||
let child
|
||||
child = getNodeByShortcutKey(node.statusReport, searchingKey)
|
||||
if (child !== undefined) {
|
||||
return child
|
||||
}
|
||||
child = getNodeByShortcutKey(node.executionFinishedEvent, searchingKey)
|
||||
if (child !== undefined) {
|
||||
return child
|
||||
}
|
||||
child = getNodeByShortcutKey(node.calculations, searchingKey)
|
||||
if (child !== undefined) {
|
||||
return child
|
||||
|
||||
@@ -7,6 +7,7 @@ function newUiObjectsFromNodes () {
|
||||
addIndicatorBot: addIndicatorBot,
|
||||
addTradingBot: addTradingBot,
|
||||
addProcessDefinition: addProcessDefinition,
|
||||
addMissingProcessDefinitionItems: addMissingProcessDefinitionItems,
|
||||
addStatusReport: addStatusReport,
|
||||
addExecutionFinishedEvent: addExecutionFinishedEvent,
|
||||
addCalculationsProcedure: addCalculationsProcedure,
|
||||
@@ -747,6 +748,12 @@ function newUiObjectsFromNodes () {
|
||||
}
|
||||
case 'Process Definition': {
|
||||
createUiObject(node.type, node.name, node, parentNode, chainParent, node.type)
|
||||
if (node.statusReport !== undefined) {
|
||||
createUiObjectFromNode(node.statusReport, node, node)
|
||||
}
|
||||
if (node.executionFinishedEvent !== undefined) {
|
||||
createUiObjectFromNode(node.executionFinishedEvent, node, node)
|
||||
}
|
||||
if (node.calculations !== undefined) {
|
||||
createUiObjectFromNode(node.calculations, node, node)
|
||||
}
|
||||
@@ -1005,15 +1012,22 @@ function newUiObjectsFromNodes () {
|
||||
return object
|
||||
}
|
||||
|
||||
function addMissingProcessDefinitionItems (node) {
|
||||
addStatusReport(node)
|
||||
addExecutionFinishedEvent(node)
|
||||
addCalculationsProcedure(node)
|
||||
addDataBuildingProcedure(node)
|
||||
}
|
||||
|
||||
function addStatusReport (node) {
|
||||
if (node.statusReport === undefined) {
|
||||
node.statusReport = {
|
||||
type: 'Status Report',
|
||||
name: 'New Status Report'
|
||||
}
|
||||
createUiObject(node.calculations.type, node.calculations.name, node.calculations, node, node)
|
||||
createUiObject(node.statusReport.type, node.statusReport.name, node.statusReport, node, node)
|
||||
}
|
||||
return node.calculations
|
||||
return node.statusReport
|
||||
}
|
||||
|
||||
function addExecutionFinishedEvent (node) {
|
||||
@@ -1022,9 +1036,9 @@ function newUiObjectsFromNodes () {
|
||||
type: 'Execution Finished Event',
|
||||
name: 'New Execution Finished Event'
|
||||
}
|
||||
createUiObject(node.calculations.type, node.calculations.name, node.calculations, node, node)
|
||||
createUiObject(node.executionFinishedEvent.type, node.executionFinishedEvent.name, node.executionFinishedEvent, node, node)
|
||||
}
|
||||
return node.calculations
|
||||
return node.executionFinishedEvent
|
||||
}
|
||||
|
||||
function addCalculationsProcedure (node) {
|
||||
|
||||
@@ -341,6 +341,11 @@ function newWorkspace () {
|
||||
functionLibraryUiObjectsFromNodes.addProcessDefinition(payload.node)
|
||||
}
|
||||
break
|
||||
case 'Add Missing Process Definition Items':
|
||||
{
|
||||
functionLibraryUiObjectsFromNodes.addMissingProcessDefinitionItems(payload.node)
|
||||
}
|
||||
break
|
||||
case 'Add Status Report':
|
||||
{
|
||||
functionLibraryUiObjectsFromNodes.addStatusReport(payload.node)
|
||||
|
||||
@@ -663,36 +663,23 @@ function newUiObjectConstructor () {
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
currentRadius: 0,
|
||||
angle: -80,
|
||||
angle: -70,
|
||||
dontShowAtFullscreen: true
|
||||
}
|
||||
)
|
||||
menuItemsInitialValues.push(
|
||||
{
|
||||
action: 'Add Calculations Procedure',
|
||||
action: 'Add Missing Process Definition Items',
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: 'Add Calculations Procedure',
|
||||
label: 'Add Missing Items',
|
||||
visible: true,
|
||||
relatedUiObject: 'Calculations Procedure',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
currentRadius: 0,
|
||||
angle: -45
|
||||
angle: -40
|
||||
}
|
||||
)
|
||||
menuItemsInitialValues.push(
|
||||
{
|
||||
action: 'Add Data Building Procedure',
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: 'Add Data Building Procedure',
|
||||
visible: true,
|
||||
relatedUiObject: 'Data Building Procedure',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
currentRadius: 0,
|
||||
angle: -25
|
||||
}
|
||||
)
|
||||
menuItemsInitialValues.push(
|
||||
{
|
||||
action: 'Add Output Dataset',
|
||||
@@ -703,7 +690,7 @@ function newUiObjectConstructor () {
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
currentRadius: 0,
|
||||
angle: -8
|
||||
angle: -20
|
||||
}
|
||||
)
|
||||
menuItemsInitialValues.push(
|
||||
@@ -716,7 +703,7 @@ function newUiObjectConstructor () {
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
currentRadius: 0,
|
||||
angle: 8
|
||||
angle: 0
|
||||
}
|
||||
)
|
||||
menuItemsInitialValues.push(
|
||||
@@ -729,7 +716,7 @@ function newUiObjectConstructor () {
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
currentRadius: 0,
|
||||
angle: 25
|
||||
angle: 20
|
||||
}
|
||||
)
|
||||
menuItemsInitialValues.push(
|
||||
@@ -745,7 +732,7 @@ function newUiObjectConstructor () {
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
currentRadius: 0,
|
||||
angle: 45
|
||||
angle: 40
|
||||
}
|
||||
)
|
||||
menuItemsInitialValues.push(
|
||||
@@ -759,7 +746,7 @@ function newUiObjectConstructor () {
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
currentRadius: 0,
|
||||
angle: 80
|
||||
angle: 70
|
||||
}
|
||||
)
|
||||
break
|
||||
|
||||
Reference in new issue
Block a user