HWY - Safety Ins created
This workflow is included in the Highways package.
Description
When a Highways Safety Inspection is created, add the inspection method to the inspection and map it to the parent Street Asset.
Properties
This workflow has the following properties.
| Property | Value |
|---|---|
| Name | HWY - Safety Ins created |
| Code | workflows_hWYSafetyInsCreated_684c02bc1c1e97ba487f30a7 |
| Type | Workflow |
| Context | Package |
| Enabled | Yes |
| Runs on | Working days and hours only (Both) |
Trigger
The system triggers this workflow when items of the design below are created.
| Property | Value |
|---|---|
| Workflow type | Event workflow |
| Applies to | Highways Safety Inspections |
| Events | Create |
| Collections | Live |
| Output mode | ManyItems (Runs once for all items) |
| Can be triggered by other workflows | Yes (indirectly, via item changes) |
Actions
This workflow runs 7 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 (188 lines)
{
"trigger": {
"dodiCode": "designInterfaces_highwaysSafetyInspections_67b74aa8e716149b9424ffe9",
"collections": [
"Live"
],
"events": [
"Create"
],
"attributesListeningFor": [],
"outputMode": "ManyItems",
"canBeTriggeredByWorkflows": true
},
"actions": [
{
"actionId": "6888dadecc58008859573070",
"designCode": "designs_workflowRelationAction",
"description": "Update links on parent HW sections and street asset",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root^attributes_tasksAssignableTasks<designs_highwaysInspectionSection_678e228f6f74a9152c07fa35>",
"attributeType": "String"
}
}
],
"variables": [],
"actions": [
{
"actionId": "6888dadecc58008859573071",
"designCode": "designs_workflowAddLinks",
"description": "Add links on section inspection attribute",
"parameters": [
{
"attributeCode": "attributes_workflowActionAddLinksItemsCode",
"attributeType": "Link",
"value": {
"inputParent": 1,
"itemValue": {
"property": "ItemId"
}
}
},
{
"attribute": {
"attributeCode": "attributes_workflowActionPatchLinkAttributeCode",
"value": "attributes_highwaysInspectionSectionSectionInspections_68527b63780fe191137b1ef2",
"attributeType": "String"
}
}
],
"variables": [],
"actions": [
{
"actionId": "6888dadecc58008859573072",
"designCode": "designs_workflowRemoveLinks",
"description": "And remove them from section tasks",
"parameters": [
{
"attributeCode": "attributes_workflowActionRemoveLinksItemsCode",
"attributeType": "Link",
"value": {
"inputParent": 2,
"itemValue": {
"property": "ItemId"
}
}
},
{
"attribute": {
"attributeCode": "attributes_workflowActionPatchLinkAttributeCode",
"value": "attributes_tasksAssignableTasks",
"attributeType": "String"
}
}
],
"variables": [],
"actions": [
{
"actionId": "6888dadecc58008859573073",
"designCode": "designs_workflowRelationAction",
"description": "Link this inspeciton as a street asset task",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root^attributes_carriagewayAssetHighwaysInspectionSections_678e549d4062cbea4a10969e<designs_streetAssets_85c0bae3d3eff6f8530cac65>",
"attributeType": "String"
}
}
],
"variables": [],
"actions": [
{
"actionId": "6888dadecc58008859573074",
"designCode": "designs_workflowAddLinks",
"description": "",
"parameters": [
{
"attributeCode": "attributes_workflowActionAddLinksItemsCode",
"attributeType": "Link",
"value": {
"inputParent": 4,
"itemValue": {
"property": "ItemId"
}
}
},
{
"attribute": {
"attributeCode": "attributes_workflowActionPatchLinkAttributeCode",
"value": "attributes_tasksAssignableTasks",
"attributeType": "String"
}
}
],
"variables": [],
"actions": []
}
]
}
]
}
]
}
]
},
{
"actionId": "6888dadecc5800885957306f",
"designCode": "designs_workflowRelationAction",
"description": "Get method from the inspection section schedule",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root^attributes_tasksAssignableTasks<designs_highwaysInspectionSection_678e228f6f74a9152c07fa35>.attributes_schedulableTaskSchedules_86d15a122f4aaa1b57cedbf4<designs_hWYSafetyInspectionSchedules_67f4db10af5844727ec3cf62>.attributes_hWYSafetyInspectionSchedulesMethod_67f4dbc6af5844727ec3d117",
"attributeType": "String"
}
}
],
"variables": [],
"actions": []
},
{
"actionId": "6888dadecc58008859573075",
"designCode": "designs_workflowEditItemAction",
"description": "Copy over schedule method and asset identifier data to inspection",
"parameters": [
{
"attributeCode": "attributes_highwaysSafetyInspectionsMethod_684c083f1c1e97ba487f63b6",
"value": {
"outputAction": "6888dadecc5800885957306f",
"itemValue": {
"property": "ItemId"
},
"outputMode": "Input"
},
"attributeType": "Link"
},
{
"attributeCode": "attributes_tasksIdentifierAssetReferece",
"value": {
"outputAction": "6888dadecc58008859573073",
"itemValue": {
"attributeCode": "attributes_assetsIdentifierAssetReference_8197e4a7753460c08346a499"
},
"outputMode": "Input"
},
"attributeType": "String"
},
{
"attributeCode": "attributes_tasksIdentifierTaskLocation",
"value": {
"outputAction": "6888dadecc58008859573073",
"itemValue": {
"attributeCode": "attributes_assetsIdentifierAssetLocation_82edf88e903775818e2ec91a"
},
"outputMode": "Input"
},
"attributeType": "String"
}
],
"variables": [],
"actions": []
}
]
}