Skip to main content

HWY - Section created Set details from Street

This workflow is included in the Highways package.

Description​

When a new Highways Inspection Section is created, sets the details e.g. Operational area etc as per the parent Street.

Properties​

This workflow has the following properties.

PropertyValue
NameHWY - Section created Set details from Street
Codeworkflows_hWYSectionCreatedSetRefAndLocation_684c11401c1e97ba487f709c
TypeWorkflow
ContextPackage
EnabledYes
Runs onWorking days and hours only (Both)

Trigger​

The system triggers this workflow when items of the design below are created.

PropertyValue
Workflow typeEvent workflow
Applies toHighways Inspection Section
EventsCreate
CollectionsLive
Output modeManyItems  (Runs once for all items)
Can be triggered by other workflowsNo

Actions​

This workflow runs 4 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 (190 lines)
{
"trigger": {
"dodiCode": "designs_highwaysInspectionSection_678e228f6f74a9152c07fa35",
"collections": [
"Live"
],
"events": [
"Create"
],
"attributesListeningFor": [],
"outputMode": "ManyItems",
"canBeTriggeredByWorkflows": false
},
"actions": [
{
"actionId": "6888e9a3cc58008859574061",
"designCode": "designs_workflowRelationAction",
"description": "Get paret street asset",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root^attributes_carriagewayAssetHighwaysInspectionSections_678e549d4062cbea4a10969e<designs_streetAssets_85c0bae3d3eff6f8530cac65>",
"attributeType": "String"
}
}
],
"variables": [],
"actions": []
},
{
"actionId": "6888e9a3cc58008859574062",
"designCode": "designs_workflowEditItemAction",
"description": "Copy details from paretn street asset to inspection section",
"parameters": [
{
"attributeCode": "attributes_defaultTeamsDefaultTeam",
"value": {
"outputAction": "6888e9a3cc58008859574061",
"itemValue": {
"attributeCode": "attributes_defaultTeamsDefaultTeam"
},
"outputMode": "Input"
},
"attributeType": "Link"
},
{
"attributeCode": "attributes_assetAreaManagementOperationalArea_80ef3bc80ae7207498ec51fe",
"value": {
"outputAction": "6888e9a3cc58008859574061",
"itemValue": {
"attributeCode": "attributes_assetAreaManagementOperationalArea_80ef3bc80ae7207498ec51fe"
},
"outputMode": "Input"
},
"attributeType": "Link"
},
{
"attributeCode": "attributes_assetAreaManagementSubOperationalArea_86a18c975cf6af06bd0fd60a",
"value": {
"outputAction": "6888e9a3cc58008859574061",
"itemValue": {
"attributeCode": "attributes_assetAreaManagementSubOperationalArea_86a18c975cf6af06bd0fd60a"
},
"outputMode": "Input"
},
"attributeType": "Link"
},
{
"attributeCode": "attributes_assetAreaManagementWard_8f1fb1c9771bf6592503a3d6",
"value": {
"outputAction": "6888e9a3cc58008859574061",
"itemValue": {
"attributeCode": "attributes_assetAreaManagementWard_8f1fb1c9771bf6592503a3d6"
},
"outputMode": "Input"
},
"attributeType": "Link"
},
{
"attributeCode": "attributes_assetAreaManagementParish_8d878f2f486941bc1f64cb7b",
"value": {
"outputAction": "6888e9a3cc58008859574061",
"itemValue": {
"attributeCode": "attributes_assetAreaManagementParish_8d878f2f486941bc1f64cb7b"
},
"outputMode": "Input"
},
"attributeType": "Link"
},
{
"attributeCode": "attributes_assetAreaManagementOwner_83bcc01bd35a83c9d82f2bf3",
"value": {
"outputAction": "6888e9a3cc58008859574061",
"itemValue": {
"attributeCode": "attributes_assetAreaManagementOwner_83bcc01bd35a83c9d82f2bf3"
},
"outputMode": "Input"
},
"attributeType": "Link"
},
{
"attributeCode": "attributes_assetsIdentifierAssetReference_8197e4a7753460c08346a499",
"value": {
"outputAction": "6888e9a3cc58008859574061",
"itemValue": {
"attributeCode": "attributes_assetsIdentifierAssetReference_8197e4a7753460c08346a499"
},
"outputMode": "Input"
},
"attributeType": "String"
},
{
"attributeCode": "attributes_assetsIdentifierAssetLocation_82edf88e903775818e2ec91a",
"value": {
"outputAction": "6888e9a3cc58008859574061",
"itemValue": {
"attributeCode": "attributes_assetsIdentifierAssetLocation_82edf88e903775818e2ec91a"
},
"outputMode": "Input"
},
"attributeType": "String"
}
],
"variables": [],
"actions": [
{
"actionId": "6888e9a3cc58008859574063",
"designCode": "designs_workflowFilterAction",
"description": "If geometry is not set on inspection section, copy from parent",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowFilterActionsAqsQuery",
"value": {
"type": "Query",
"properties": {
"attributes": [
"attributes_itemsTitle",
"attributes_itemsSubtitle"
],
"collectionCode": "Live",
"dodiCode": "designs_highwaysInspectionSection_678e228f6f74a9152c07fa35"
},
"children": [
{
"type": "NotExists",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_itemsGeometry"
}
}
]
}
]
},
"attributeType": "Aqs"
}
}
],
"variables": [],
"actions": [
{
"actionId": "6888e9a3cc58008859574064",
"designCode": "designs_workflowEditItemAction",
"description": "",
"parameters": [
{
"attributeCode": "attributes_itemsGeometry",
"value": {
"outputAction": "6888e9a3cc58008859574061",
"itemValue": {
"attributeCode": "attributes_itemsGeometry"
},
"outputMode": "Input"
},
"attributeType": "GeoJson"
}
],
"variables": [],
"actions": []
}
]
}
]
}
]
}