Execution Started Event part 1
This commit is contained in:
1 parent
4d6a245907
commit
50bd309826
10 files changed
+134
-1
No files matched your search
@@ -66,6 +66,11 @@ function newChainAttachDetach () {
|
||||
completeDetachment(node, rootNodes)
|
||||
return
|
||||
}
|
||||
case 'Execution Started Event': {
|
||||
node.payload.parentNode.executionStartedEvent = undefined
|
||||
completeDetachment(node, rootNodes)
|
||||
return
|
||||
}
|
||||
case 'Execution Finished Event': {
|
||||
node.payload.parentNode.executionFinishedEvent = undefined
|
||||
completeDetachment(node, rootNodes)
|
||||
@@ -574,6 +579,12 @@ function newChainAttachDetach () {
|
||||
completeAttachment(node, rootNodes)
|
||||
}
|
||||
break
|
||||
case 'Execution Started Event': {
|
||||
node.payload.parentNode = attachToNode
|
||||
node.payload.chainParent = attachToNode
|
||||
node.payload.parentNode.executionStartedEvent = node
|
||||
completeAttachment(node, rootNodes)
|
||||
}
|
||||
case 'Execution Finished Event': {
|
||||
node.payload.parentNode = attachToNode
|
||||
node.payload.chainParent = attachToNode
|
||||
|
||||
@@ -32,6 +32,9 @@ function newNodeChildren () {
|
||||
case 'Status Rerport': {
|
||||
return countChildrenStatusRerport(parentNode, childNode)
|
||||
}
|
||||
case 'Execution Started Event': {
|
||||
return countChildrenExecutionStartedEvent(parentNode, childNode)
|
||||
}
|
||||
case 'Execution Finished Event': {
|
||||
return countChildrenExecutionFinishedEvent(parentNode, childNode)
|
||||
}
|
||||
@@ -454,6 +457,14 @@ function newNodeChildren () {
|
||||
return response
|
||||
}
|
||||
|
||||
function countChildrenExecutionStartedEvent (parentNode, childNode) {
|
||||
let response = {
|
||||
childrenCount: 0,
|
||||
childIndex: undefined
|
||||
}
|
||||
return response
|
||||
}
|
||||
|
||||
function countChildrenExecutionFinishedEvent (parentNode, childNode) {
|
||||
let response = {
|
||||
childrenCount: 0,
|
||||
@@ -461,6 +472,7 @@ function newNodeChildren () {
|
||||
}
|
||||
return response
|
||||
}
|
||||
|
||||
function countChildrenCalculationsProcedure (parentNode, childNode) {
|
||||
let response = {
|
||||
childrenCount: 0,
|
||||
|
||||
@@ -9,6 +9,7 @@ function newNodeDeleter () {
|
||||
deleteTradingBot: deleteTradingBot,
|
||||
deleteProcessDefinition: deleteProcessDefinition,
|
||||
deleteStatusReport: deleteStatusReport,
|
||||
deleteExecutionStartedEvent: deleteExecutionStartedEvent,
|
||||
deleteExecutionFinishedEvent: deleteExecutionFinishedEvent,
|
||||
deleteCalculationsProcedure: deleteCalculationsProcedure,
|
||||
deleteDataBuildingProcedure: deleteDataBuildingProcedure,
|
||||
@@ -118,6 +119,10 @@ function newNodeDeleter () {
|
||||
deleteStatusReport(rootNode, rootNodes)
|
||||
break
|
||||
}
|
||||
case 'Execution Started Event': {
|
||||
deleteExecutionStartedEvent(rootNode, rootNodes)
|
||||
break
|
||||
}
|
||||
case 'Execution Finished Event': {
|
||||
deleteExecutionFinishedEvent(rootNode, rootNodes)
|
||||
break
|
||||
@@ -565,6 +570,10 @@ function newNodeDeleter () {
|
||||
deleteStatusReport(node.statusReport, rootNodes)
|
||||
}
|
||||
|
||||
if (node.executionStartedEvent !== undefined) {
|
||||
deleteExecutionStartedEvent(node.executionStartedEvent, rootNodes)
|
||||
}
|
||||
|
||||
if (node.executionFinishedEvent !== undefined) {
|
||||
deleteExecutionFinishedEvent(node.executionFinishedEvent, rootNodes)
|
||||
}
|
||||
@@ -612,6 +621,18 @@ function newNodeDeleter () {
|
||||
cleanNode(node)
|
||||
}
|
||||
|
||||
function deleteExecutionStartedEvent (node, rootNodes) {
|
||||
let payload = node.payload
|
||||
|
||||
if (payload.parentNode !== undefined) {
|
||||
payload.parentNode.executionStartedEvent = undefined
|
||||
}
|
||||
|
||||
completeDeletion(node, rootNodes)
|
||||
destroyUiObject(node)
|
||||
cleanNode(node)
|
||||
}
|
||||
|
||||
function deleteExecutionFinishedEvent (node, rootNodes) {
|
||||
let payload = node.payload
|
||||
|
||||
|
||||
@@ -871,6 +871,13 @@ function newOnFocus () {
|
||||
return
|
||||
}
|
||||
}
|
||||
case 'Execution Started Event': {
|
||||
if (node.payload.uiObject.isOnFocus === true) {
|
||||
return node
|
||||
} else {
|
||||
return
|
||||
}
|
||||
}
|
||||
case 'Execution Finished Event': {
|
||||
if (node.payload.uiObject.isOnFocus === true) {
|
||||
return node
|
||||
|
||||
@@ -1225,6 +1225,20 @@ function newProtocolNode () {
|
||||
}
|
||||
return object
|
||||
}
|
||||
case 'Execution Started Event': {
|
||||
let object = {
|
||||
type: node.type,
|
||||
subType: node.subType,
|
||||
name: node.name
|
||||
}
|
||||
if (includeIds) {
|
||||
object.id = node.id
|
||||
}
|
||||
if (includePayload) {
|
||||
object.savedPayload = getSavedPayload(node, includeReferences)
|
||||
}
|
||||
return object
|
||||
}
|
||||
case 'Execution Finished Event': {
|
||||
let object = {
|
||||
type: node.type,
|
||||
|
||||
@@ -9,6 +9,7 @@ function newUiObjectsFromNodes () {
|
||||
addProcessDefinition: addProcessDefinition,
|
||||
addMissingProcessDefinitionItems: addMissingProcessDefinitionItems,
|
||||
addStatusReport: addStatusReport,
|
||||
addExecutionStartedEvent: addExecutionStartedEvent,
|
||||
addExecutionFinishedEvent: addExecutionFinishedEvent,
|
||||
addCalculationsProcedure: addCalculationsProcedure,
|
||||
addDataBuildingProcedure: addDataBuildingProcedure,
|
||||
@@ -791,6 +792,10 @@ function newUiObjectsFromNodes () {
|
||||
}
|
||||
return
|
||||
}
|
||||
case 'Execution Started Event': {
|
||||
createUiObject(node.type, node.name, node, parentNode, chainParent, node.type)
|
||||
return
|
||||
}
|
||||
case 'Execution Finished Event': {
|
||||
let referenceChildren
|
||||
if (mapOfReferenceParents !== undefined) {
|
||||
@@ -1071,6 +1076,17 @@ function newUiObjectsFromNodes () {
|
||||
return node.statusReport
|
||||
}
|
||||
|
||||
function addExecutionStartedEvent (node) {
|
||||
if (node.executionStartedEvent === undefined) {
|
||||
node.executionStartedEvent = {
|
||||
type: 'Execution Started Event',
|
||||
name: 'New Execution Started Event'
|
||||
}
|
||||
createUiObject(node.executionStartedEvent.type, node.executionStartedEvent.name, node.executionStartedEvent, node, node)
|
||||
}
|
||||
return node.executionStartedEvent
|
||||
}
|
||||
|
||||
function addExecutionFinishedEvent (node) {
|
||||
if (node.executionFinishedEvent === undefined) {
|
||||
node.executionFinishedEvent = {
|
||||
|
||||
@@ -351,6 +351,11 @@ function newWorkspace () {
|
||||
functionLibraryUiObjectsFromNodes.addStatusReport(payload.node)
|
||||
}
|
||||
break
|
||||
case 'Add Execution Started Event':
|
||||
{
|
||||
functionLibraryUiObjectsFromNodes.addExecutionStartedEvent(payload.node)
|
||||
}
|
||||
break
|
||||
case 'Add Execution Finished Event':
|
||||
{
|
||||
functionLibraryUiObjectsFromNodes.addExecutionFinishedEvent(payload.node)
|
||||
@@ -635,6 +640,10 @@ function newWorkspace () {
|
||||
functionLibraryNodeDeleter.deleteStatusReport(payload.node, thisObject.workspaceNode.rootNodes)
|
||||
break
|
||||
}
|
||||
case 'Delete Execution Started Event': {
|
||||
functionLibraryNodeDeleter.deleteExecutionStartedEvent(payload.node, thisObject.workspaceNode.rootNodes)
|
||||
break
|
||||
}
|
||||
case 'Delete Execution Finished Event': {
|
||||
functionLibraryNodeDeleter.deleteExecutionFinishedEvent(payload.node, thisObject.workspaceNode.rootNodes)
|
||||
break
|
||||
|
||||
@@ -232,6 +232,10 @@ function newUiObject () {
|
||||
compatibleType = '->' + 'Process Definition' + '->'
|
||||
compatibleSubType = undefined
|
||||
break
|
||||
case 'Execution Started Event':
|
||||
compatibleType = '->' + 'Process Definition' + '->'
|
||||
compatibleSubType = undefined
|
||||
break
|
||||
case 'Execution Finished Event':
|
||||
compatibleType = '->' + 'Process Definition' + '->'
|
||||
compatibleSubType = undefined
|
||||
@@ -512,7 +516,7 @@ function newUiObject () {
|
||||
if (compatibleType.indexOf('->' + nearbyNode.type + '->') >= 0) {
|
||||
/* Discard objects with busy coonection ports */
|
||||
if (thisObject.payload.node.type === 'Status Report' && nearbyNode.statusReport !== undefined) { continue }
|
||||
if (thisObject.payload.node.type === 'Execution Finished Event' && nearbyNode.executionStartedEvent !== undefined) { continue }
|
||||
if (thisObject.payload.node.type === 'Execution Started Event' && nearbyNode.executionStartedEvent !== undefined) { continue }
|
||||
if (thisObject.payload.node.type === 'Execution Finished Event' && nearbyNode.executionFinishedEvent !== undefined) { continue }
|
||||
if (thisObject.payload.node.type === 'Calculations Procedure' && nearbyNode.calculations !== undefined) { continue }
|
||||
if (thisObject.payload.node.type === 'Data Building Procedure' && nearbyNode.dataBuilding !== undefined) { continue }
|
||||
|
||||
@@ -785,6 +785,40 @@ function newUiObjectConstructor () {
|
||||
)
|
||||
break
|
||||
}
|
||||
case 'Execution Started Event': {
|
||||
addLeftIcons(menuItemsInitialValues, floatingObject)
|
||||
menuItemsInitialValues.push(
|
||||
{
|
||||
action: 'Delete Execution Started Event',
|
||||
askConfirmation: true,
|
||||
confirmationLabel: 'Confirm to Delete',
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: 'Delete Event',
|
||||
visible: true,
|
||||
iconPathOn: 'delete',
|
||||
iconPathOff: 'delete',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
currentRadius: 0,
|
||||
angle: -15
|
||||
}
|
||||
)
|
||||
menuItemsInitialValues.push(
|
||||
{
|
||||
action: 'Share',
|
||||
actionFunction: payload.onMenuItemClick,
|
||||
label: 'Share',
|
||||
visible: true,
|
||||
iconPathOn: 'menu-share',
|
||||
iconPathOff: 'menu-share',
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
currentRadius: 0,
|
||||
angle: 15
|
||||
}
|
||||
)
|
||||
break
|
||||
}
|
||||
case 'Execution Finished Event': {
|
||||
addLeftIcons(menuItemsInitialValues, floatingObject)
|
||||
menuItemsInitialValues.push(
|
||||
@@ -4461,6 +4495,10 @@ function newUiObjectConstructor () {
|
||||
level_3()
|
||||
break
|
||||
}
|
||||
case 'Execution Started Event': {
|
||||
level_3()
|
||||
break
|
||||
}
|
||||
case 'Execution Finished Event': {
|
||||
level_3()
|
||||
break
|
||||
|
||||
@@ -96,6 +96,7 @@ function newDesignerSpace () {
|
||||
['Trading Bot', 'bot-trading'],
|
||||
['Process Definition', 'process-definition'],
|
||||
['Status Report', 'text'],
|
||||
['Execution Started Event', 'pantone'],
|
||||
['Execution Finished Event', 'pantone'],
|
||||
['Calculations Procedure', 'calculations-procedure'],
|
||||
['Data Building Procedure', 'data-building-procedure'],
|
||||
|
||||
Reference in new issue
Block a user