Skip to main content

HWY - Highways Job completed

This workflow is included in the Highways package.

Description​

A baseline workflow to update parent Defects and Service Enquiries status and remedied date off when associated Highways jobs are completed.

Properties​

This workflow has the following properties.

PropertyValue
NameHWY - Highways Job completed
Codeworkflows_hWYHighwaysJobCompleted_6877d4e6c95b2b00fcc129ac
TypeWorkflow
ContextPackage
EnabledYes
Runs onWorking days and hours only (Both)

Trigger​

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

PropertyValue
Workflow typeEvent workflow
Applies toHighways Jobs
EventsCreate, Edit
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 (112 lines)
{
"trigger": {
"dodiCode": "designInterfaces_highwaysJobs_67e6472bcb15029b2c49ab4a",
"collections": [
"Live"
],
"events": [
"Create",
"Edit"
],
"attributesListeningFor": [
"attributes_tasksStatus"
],
"outputMode": "ManyItems",
"canBeTriggeredByWorkflows": false
},
"actions": [
{
"actionId": "6877d4ffc95b2b00fcc12a71",
"designCode": "designs_workflowFilterAction",
"description": "Check that status is completed",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowFilterActionsAqsQuery",
"value": {
"type": "Query",
"properties": {
"attributes": [
"attributes_itemsTitle",
"attributes_itemsSubtitle"
],
"collectionCode": "Live",
"dodiCode": "designInterfaces_highwaysJobs_67e6472bcb15029b2c49ab4a"
},
"children": [
{
"type": "Equals",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_tasksStatus"
}
},
{
"type": "AlloyId",
"properties": {
"value": [
"5bc5bdd281d088d177342c76"
]
}
}
]
}
]
},
"attributeType": "Aqs"
}
}
],
"variables": [],
"actions": [
{
"actionId": "6877d52cc95b2b00fcc12ba4",
"designCode": "designs_workflowRelationAction",
"description": "Go to parent defects",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root^attributes_defectsRaisingJobsRaisedJobs<designInterfaces_defects>",
"attributeType": "String"
}
}
],
"variables": [],
"actions": [
{
"actionId": "6877d565c95b2b00fcc12d49",
"designCode": "designs_workflowEditItemAction",
"description": "Set parent defects to remedied",
"parameters": [
{
"attributeCode": "attributes_defectsRemediedDate",
"attributeType": "DateTime",
"value": {
"inputParent": 1,
"itemValue": {
"attributeCode": "attributes_tasksCompletionTime"
}
}
},
{
"attribute": {
"attributeCode": "attributes_defectsStatus",
"value": [
"5c8bdfc88ae862230019dc22"
],
"attributeType": "Link"
}
}
],
"variables": [],
"actions": []
}
]
}
]
}
]
}