Skip to main content

HWY - Safety Ins completed

This workflow is included in the Highways package.

Description​

When a Highways Safety Inspection is completed, update the condition values on the parent Highways Inspection Section.

Properties​

This workflow has the following properties.

PropertyValue
NameHWY - Safety Ins completed
Codeworkflows_hWYSafetyInsCompleted_684c0b551c1e97ba487f6f56
TypeWorkflow
ContextPackage
EnabledYes
Runs onWorking days and hours only (Both)

Trigger​

The system triggers this workflow when items of the design below are edited. Where attributes are listed, an edit to anything else is ignored.

PropertyValue
Workflow typeEvent workflow
Applies toHighways Safety Inspections
EventsEdit
CollectionsLive
Attributes listened forattributes_tasksStatus  (Status)
Output modeManyItems  (Runs once for all items)
Can be triggered by other workflowsNo

Actions​

This workflow runs 3 actions, in the order shown in this simplified diagram. Every action's full settings are in the configuration below.

Configuration​

The full configuration of this workflow, including every action's parameters.

Show configuration (142 lines)
{
"trigger": {
"dodiCode": "designInterfaces_highwaysSafetyInspections_67b74aa8e716149b9424ffe9",
"collections": [
"Live"
],
"events": [
"Edit"
],
"attributesListeningFor": [
"attributes_tasksStatus"
],
"outputMode": "ManyItems",
"canBeTriggeredByWorkflows": false
},
"actions": [
{
"actionId": "68518eddd720a5a5f70af474",
"designCode": "designs_workflowFilterAction",
"description": "",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowFilterActionsAqsQuery",
"value": {
"type": "Query",
"properties": {
"attributes": [
"attributes_itemsTitle",
"attributes_itemsSubtitle"
],
"collectionCode": "Live",
"dodiCode": "designInterfaces_highwaysSafetyInspections_67b74aa8e716149b9424ffe9"
},
"children": [
{
"type": "Equals",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_tasksStatus"
}
},
{
"type": "AlloyId",
"properties": {
"value": [
"5bc5bdd281d088d177342c76"
]
}
}
]
}
]
},
"attributeType": "Aqs"
}
}
],
"variables": [],
"actions": [
{
"actionId": "68527fd3780fe191137b22ad",
"designCode": "designs_workflowRelationAction",
"description": "Get parent inspection sections",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root^attributes_highwaysInspectionSectionSectionInspections_68527b63780fe191137b1ef2",
"attributeType": "String"
}
}
],
"variables": [],
"actions": [
{
"actionId": "68528002780fe191137b22e4",
"designCode": "designs_workflowEditItemAction",
"description": "Copy condition of the inspection to the secions",
"parameters": [
{
"attributeCode": "attributes_highwaysInspectionSectionCWCondition_684c0d711c1e97ba487f6fe7",
"attributeType": "Link",
"value": {
"inputParent": 1,
"itemValue": {
"attributeCode": "attributes_highwaysSafetyInspectionsCWCondition_67b74ad9e716149b94250009"
}
}
},
{
"attributeCode": "attributes_highwaysInspectionSectionFWCondition_684c0de51c1e97ba487f6ff4",
"attributeType": "Link",
"value": {
"inputParent": 1,
"itemValue": {
"attributeCode": "attributes_highwaysSafetyInspectionsFWCondition_67b74ae9e716149b94250018"
}
}
},
{
"attributeCode": "attributes_highwaysInspectionSectionCRCondition_684c0df91c1e97ba487f7001",
"attributeType": "Link",
"value": {
"inputParent": 1,
"itemValue": {
"attributeCode": "attributes_highwaysSafetyInspectionsCRCondition_67b74af4e716149b94250025"
}
}
},
{
"attributeCode": "attributes_highwaysInspectionSectionVECondition_684c0e131c1e97ba487f700e",
"attributeType": "Link",
"value": {
"inputParent": 1,
"itemValue": {
"attributeCode": "attributes_highwaysSafetyInspectionsVECondition_67b74b08e716149b94250032"
}
}
},
{
"attributeCode": "attributes_assetHeadsNotes",
"attributeType": "String",
"value": {
"inputParent": 1,
"itemValue": {
"attributeCode": "attributes_highwaysInspectionsNotesAndObservations_67b6107070676efd8020302b"
}
}
}
],
"variables": [],
"actions": []
}
]
}
]
}
]
}