JSON seems to match the GUI,
It seems that the render is “right but confusing”
It doesn’t draw 2 connectors between events here because it’s not a Y branch but rather a nested event in the json. (Typically, the on-error would be a sibling node to the on-success, but here it is a child node)
{
"id": "OnClick_Control_CheckInTool_Action",
"actions": [
{
"type": "event-next",
"value": "PerformUpdate",
"param": {
"uiFormEventType": "UpdateOnSaveButton"
},
"onSuccess": [
{
"type": "event-next",
"value": "OpenPromptForPasswordSlider",
"onError": [
{
"type": "exit"
}
]
},
{
"type": "row-update",
"param": [
{
"columns": [
{
"epBinding": "TransView.Comments",
"value": " ECO Group {ECOGroup.GroupID} {ECOGroup.Description}"
}
]
}
]
},
{
"type": "slider-open",
"param": {
"page": "Slider.Comments"
},
"onCancel": [
{
"type": "exit"
}
]
},
{
"type": "rest-erp",
"param": {
"svc": "Erp.BO.EngWorkBenchSvc",
"svcPath": "CheckInAndRefresh",
"requestMethod": "POST",
"methodParameters": [
{
"field": "ipGroupID",
"epBinding": "ECOGroup.GroupID"
},
{
"field": "ipPartNum",
"epBinding": "ECORev.PartNum"
},
{
"field": "ipRevisionNum",
"epBinding": "ECORev.RevisionNum"
},
{
"field": "ipAltMethod",
"epBinding": "ECORev.AltMethod"
},
{
"field": "ipProcessMfgID",
"epBinding": "ECORev.ProcessMfgID"
},
{
"field": "ipValidPassword",
"epBinding": "TransView.ValidPassword"
},
{
"field": "ipAuditText",
"epBinding": "TransView.Comments"
}
],
"erpRestPostArgs": {
"responseParamArgs": [
{
"dataset": {
"datasetId": "EngWorkBench"
},
"responsePath": "returnObj"
}
]
}
},
"onSuccess": [
{
"type": "condition",
"param": {
"expression": "'{actionResult.opMessage}' !== ''",
"onSuccess": [
{
"type": "erp-message-handler",
"param": {
"level": "info",
"type": "Slideout",
"message": "{actionResult.opMessage}"
}
}
]
}
},
{
"type": "erp-message-handler",
"param": {
"level": "info",
"type": "Slideout",
"message": "Check In Complete"
}
},
{
"type": "event-next",
"value": "RefreshTree"
}
]
}
]
}
]
},