Skip to main content

HWY - cleanup safety ins projects

This workflow is included in the Highways package.

Description​

When a Highways Safety Inspection is completed, remove it from its parent project at the end of the day.

Properties​

This workflow has the following properties.

PropertyValue
NameHWY - cleanup safety ins projects
Codeworkflows_hWYCleanupSafetyInsProjects_684c12431c1e97ba487f713b
TypeWorkflow
ContextPackage
EnabledYes
Runs onWorking days and hours only (Both)

Trigger​

The system triggers this workflow on a schedule, rather than in response to item changes.

PropertyValue
Workflow typeSchedule workflow (Frequency)
Every1 day
Starting2025-06-13

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 (108 lines)
{
"trigger": {
"interval": 1,
"units": "Day",
"start": "2025-06-13T21:00:00.000Z"
},
"actions": [
{
"actionId": "684c12b11c1e97ba487f718b",
"designCode": "designs_workflowQueryAction",
"description": "Get completed Safety inspections",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowQueryActionsSingleInstance",
"value": true,
"attributeType": "Boolean"
}
},
{
"attribute": {
"attributeCode": "attributes_workflowQueryActionsAqsQuery",
"value": {
"type": "Query",
"properties": {
"attributes": [
"attributes_itemsTitle",
"attributes_itemsSubtitle"
],
"collectionCode": "Live",
"dodiCode": "designs_highwaysSafetyInspections_67b7444de716149b9424fdb7"
},
"children": [
{
"type": "Equals",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_tasksStatus"
}
},
{
"type": "AlloyId",
"properties": {
"value": [
"5bc5bdd281d088d177342c76"
]
}
}
]
}
]
},
"attributeType": "Aqs"
}
}
],
"variables": [],
"actions": [
{
"actionId": "684c2e831c1e97ba487f72d1",
"designCode": "designs_workflowRelationAction",
"description": "",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root^attributes_projectsTasks<designs_hWYSafetyInspectionProjects_67f7a04b231fd40e3625c2eb>",
"attributeType": "String"
}
}
],
"variables": [],
"actions": [
{
"actionId": "684c2f3b1c1e97ba487f73f6",
"designCode": "designs_workflowRemoveLinks",
"description": "",
"parameters": [
{
"attributeCode": "attributes_workflowActionRemoveLinksItemsCode",
"attributeType": "Link",
"value": {
"outputAction": "684c12b11c1e97ba487f718b",
"itemValue": {
"property": "ItemId"
},
"outputMode": "Input"
}
},
{
"attribute": {
"attributeCode": "attributes_workflowActionPatchLinkAttributeCode",
"value": "attributes_projectsTasks",
"attributeType": "String"
}
}
],
"variables": [],
"actions": []
}
]
}
]
}
]
}