Skip to main content

Alloy - Update Integrated Lamps

This workflow is included in the Street Lighting Package package.

Description​

This workflow has no description.

Properties​

This workflow has the following properties.

PropertyValue
NameAlloy - Update Integrated Lamps
Codeworkflows_alloyUpdateIntegratedLamps_8472fd85b9e1b06133d62857
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 toLanterns
EventsCreate, Edit
CollectionsLive
Attributes listened forattributes_lanternsLanternType  (Lantern Type)
Output modeManyItems  (Runs once for all items)

Actions​

This workflow runs 19 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 (934 lines)
{
"trigger": {
"dodiCode": "designs_lanterns",
"collections": [
"Live"
],
"events": [
"Create",
"Edit"
],
"attributesListeningFor": [
"attributes_lanternsLanternType"
],
"outputMode": "ManyItems"
},
"actions": [
{
"actionId": "856315b2f484011640c04207",
"designCode": "designs_workflowFilterAction",
"description": "Update lamp of the inegrated lantern connected to lamp item",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowFilterActionsAqsQuery",
"value": {
"type": "Query",
"properties": {
"attributes": [
"attributes_itemsTitle",
"attributes_itemsSubtitle"
],
"collectionCode": "Live",
"dodiCode": "designs_lanterns"
},
"children": [
{
"type": "And",
"children": [
{
"type": "Exists",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_lanternTypesIntegratedLampType_8575812e0cb825712dfb294b",
"path": "root.attributes_lanternsLanternType"
}
}
]
},
{
"type": "NotExists",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_lanternTypesIntegratedGearType_82f817f286a299d8549c7978",
"path": "root.attributes_lanternsLanternType"
}
}
]
},
{
"type": "Equals",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_lanternTypesIntegratedLed",
"path": "root.attributes_lanternsLanternType"
}
},
{
"type": "Boolean",
"properties": {
"value": true
}
}
]
},
{
"type": "ConnectedTo",
"children": [
{
"type": "Item",
"properties": {
"path": "root.attributes_lanternsLamps"
}
}
]
}
]
}
]
},
"attributeType": "Aqs"
}
}
],
"variables": [],
"actions": [
{
"actionId": "8a472fc6037eadd24c076e95",
"designCode": "designs_workflowRelationAction",
"description": "",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root.attributes_lanternsLamps",
"attributeType": "String"
}
}
],
"variables": [],
"actions": [
{
"actionId": "8e4ca52af774ab34e9aa1f07",
"designCode": "designs_workflowEditItemAction",
"description": "Change Lamp Type to Integrated Lamp Type from Lantern",
"parameters": [
{
"attributeCode": "attributes_lampsLampType",
"attributeType": "Link",
"value": {
"outputAction": "881ed32fb16cf51918e0d3bd",
"outputMode": "Input",
"itemValue": {
"property": "ItemId"
}
}
},
{
"attributeCode": "attributes_lampsPreviousLampCode_8ca33d10c87cbffd01d06c37",
"attributeType": "String",
"value": {
"inputParent": 0,
"itemValue": {
"attributeCode": "attributes_itemsTitle"
}
}
},
{
"attributeCode": "attributes_lampsCyclicChangeFrequency",
"attributeType": "Number",
"value": {
"outputAction": "881ed32fb16cf51918e0d3bd",
"outputMode": "Input",
"itemValue": {
"attributeCode": "attributes_lampTypesChangeCycle_8a972cbb8fe0319aed250a1d"
}
}
},
{
"attributeCode": "attributes_streetLightingComponentsLastReplacedDate",
"attributeType": "DateTime",
"value": {
"inputParent": 1,
"itemValue": {
"attributeCode": "attributes_streetLightingComponentsLastReplacedDate"
}
}
},
{
"attributeCode": "attributes_assetsInstalledDate",
"attributeType": "DateTime",
"value": {
"inputParent": 1,
"itemValue": {
"attributeCode": "attributes_assetsInstalledDate"
}
}
}
],
"variables": [],
"actions": []
}
]
}
]
},
{
"actionId": "8d82d81c43d4f61538121c7c",
"designCode": "designs_workflowFilterAction",
"description": "Update lamp and gear of the inegrated lantern connected to lamp item",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowFilterActionsAqsQuery",
"value": {
"type": "Query",
"properties": {
"attributes": [
"attributes_itemsTitle",
"attributes_itemsSubtitle"
],
"collectionCode": "Live",
"dodiCode": "designs_lanterns"
},
"children": [
{
"type": "And",
"children": [
{
"type": "Exists",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_lanternTypesIntegratedLampType_8575812e0cb825712dfb294b",
"path": "root.attributes_lanternsLanternType"
}
}
]
},
{
"type": "Exists",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_lanternTypesIntegratedGearType_82f817f286a299d8549c7978",
"path": "root.attributes_lanternsLanternType"
}
}
]
},
{
"type": "Equals",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_lanternTypesIntegratedLed",
"path": "root.attributes_lanternsLanternType"
}
},
{
"type": "Boolean",
"properties": {
"value": true
}
}
]
},
{
"type": "ConnectedTo",
"children": [
{
"type": "Item",
"properties": {
"path": "root.attributes_lanternsLamps"
}
}
]
}
]
}
]
},
"attributeType": "Aqs"
}
}
],
"variables": [],
"actions": [
{
"actionId": "8a5c68a1afb5b1de020495d3",
"designCode": "designs_workflowRelationAction",
"description": "",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root.attributes_lanternsLamps",
"attributeType": "String"
}
}
],
"variables": [],
"actions": [
{
"actionId": "84852b7f02ee41a858804491",
"designCode": "designs_workflowEditItemAction",
"description": "Change Lamp Type to Integrated Lamp Type from Lantern",
"parameters": [
{
"attributeCode": "attributes_lampsLampType",
"attributeType": "Link",
"value": {
"outputAction": "881ed32fb16cf51918e0d3bd",
"outputMode": "Input",
"itemValue": {
"property": "ItemId"
}
}
},
{
"attributeCode": "attributes_lampsPreviousLampCode_8ca33d10c87cbffd01d06c37",
"attributeType": "String",
"value": {
"inputParent": 0,
"itemValue": {
"attributeCode": "attributes_itemsTitle"
}
}
},
{
"attributeCode": "attributes_lampsCyclicChangeFrequency",
"attributeType": "Number",
"value": {
"outputAction": "881ed32fb16cf51918e0d3bd",
"outputMode": "Input",
"itemValue": {
"attributeCode": "attributes_lampTypesChangeCycle_8a972cbb8fe0319aed250a1d"
}
}
},
{
"attributeCode": "attributes_streetLightingComponentsLastReplacedDate",
"attributeType": "DateTime",
"value": {
"inputParent": 1,
"itemValue": {
"attributeCode": "attributes_streetLightingComponentsLastReplacedDate"
}
}
},
{
"attributeCode": "attributes_assetsInstalledDate",
"attributeType": "DateTime",
"value": {
"inputParent": 1,
"itemValue": {
"attributeCode": "attributes_assetsInstalledDate"
}
}
}
],
"variables": [],
"actions": []
}
]
},
{
"actionId": "862d608d7193a48fbcdc24b3",
"designCode": "designs_workflowRelationAction",
"description": "",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root.attributes_lanternsGears",
"attributeType": "String"
}
}
],
"variables": [],
"actions": [
{
"actionId": "80da98df6d896de03cb26a68",
"designCode": "designs_workflowEditItemAction",
"description": "Change Gear Type to Integrated Gear Type from Lantern",
"parameters": [
{
"attributeCode": "attributes_gearsGearType",
"attributeType": "Link",
"value": {
"outputAction": "813205fbe3e61c20ca2e3a26",
"outputMode": "Input",
"itemValue": {
"property": "ItemId"
}
}
},
{
"attributeCode": "attributes_streetLightingComponentsLastReplacedDate",
"attributeType": "DateTime",
"value": {
"inputParent": 1,
"itemValue": {
"attributeCode": "attributes_streetLightingComponentsLastReplacedDate"
}
}
},
{
"attributeCode": "attributes_assetsInstalledDate",
"attributeType": "DateTime",
"value": {
"inputParent": 1,
"itemValue": {
"attributeCode": "attributes_assetsInstalledDate"
}
}
}
],
"variables": [],
"actions": []
}
]
}
]
},
{
"actionId": "8e69dc601018f93450dc8116",
"designCode": "designs_workflowFilterAction",
"description": "Create lamp and gear when integrated lantern is not connected to lamp and gear item",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowFilterActionsAqsQuery",
"value": {
"type": "Query",
"properties": {
"attributes": [
"attributes_itemsTitle",
"attributes_itemsSubtitle"
],
"collectionCode": "Live",
"dodiCode": "designs_lanterns"
},
"children": [
{
"type": "And",
"children": [
{
"type": "Equals",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_lanternTypesIntegratedLed",
"path": "root.attributes_lanternsLanternType"
}
},
{
"type": "Boolean",
"properties": {
"value": true
}
}
]
},
{
"type": "NotConnectedTo",
"children": [
{
"type": "Item",
"properties": {
"path": "root.attributes_lanternsLamps"
}
}
]
},
{
"type": "NotConnectedTo",
"children": [
{
"type": "Item",
"properties": {
"path": "root.attributes_lanternsGears"
}
}
]
}
]
}
]
},
"attributeType": "Aqs"
}
}
],
"variables": [],
"actions": [
{
"actionId": "87d5c8beb3d71bb534d75f90",
"designCode": "designs_workflowCreateItemAction",
"description": "Create new lamp with integrated lamp type",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowCreateItemActionsDesignCode",
"value": "designs_lamps",
"attributeType": "String"
}
},
{
"attribute": {
"attributeCode": "attributes_workflowCreateItemActionsCollection",
"value": "Live",
"attributeType": "String"
}
},
{
"attributeCode": "attributes_workflowCreateItemActionsParents",
"attributeType": "Link",
"value": {
"inputParent": 1,
"itemValue": {
"property": "ItemId"
}
}
},
{
"attribute": {
"attributeCode": "attributes_workflowCreateItemActionsParentsLinkAttributeCode",
"value": "attributes_lanternsLamps",
"attributeType": "String"
}
},
{
"attribute": {
"attributeCode": "attributes_workflowCreateItemActionsSingleInstance",
"value": false,
"attributeType": "Boolean"
}
},
{
"attributeCode": "attributes_lampsLampType",
"attributeType": "Link",
"value": {
"outputAction": "881ed32fb16cf51918e0d3bd",
"outputMode": "Input",
"itemValue": {
"property": "ItemId"
}
}
},
{
"attributeCode": "attributes_lampsCyclicChangeFrequency",
"attributeType": "Number",
"value": {
"outputAction": "881ed32fb16cf51918e0d3bd",
"outputMode": "Input",
"itemValue": {
"attributeCode": "attributes_lampTypesChangeCycle_8a972cbb8fe0319aed250a1d"
}
}
},
{
"attributeCode": "attributes_streetLightingComponentsLastReplacedDate",
"attributeType": "DateTime",
"value": {
"inputParent": 1,
"itemValue": {
"attributeCode": "attributes_streetLightingComponentsLastReplacedDate"
}
}
},
{
"attributeCode": "attributes_assetsInstalledDate",
"attributeType": "DateTime",
"value": {
"inputParent": 1,
"itemValue": {
"attributeCode": "attributes_assetsInstalledDate"
}
}
}
],
"variables": [],
"actions": [
{
"actionId": "82d2fa9d696923e10329018e",
"designCode": "designs_workflowRelationAction",
"description": "",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root^attributes_lanternsLamps",
"attributeType": "String"
}
}
],
"variables": [],
"actions": [
{
"actionId": "8a116480c7069108d42057fd",
"designCode": "designs_workflowCreateItemAction",
"description": "Create new gear with integrated gear type",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowCreateItemActionsDesignCode",
"value": "designs_gears",
"attributeType": "String"
}
},
{
"attribute": {
"attributeCode": "attributes_workflowCreateItemActionsCollection",
"value": "Live",
"attributeType": "String"
}
},
{
"attributeCode": "attributes_workflowCreateItemActionsParents",
"attributeType": "Link",
"value": {
"inputParent": 2,
"itemValue": {
"property": "ItemId"
}
}
},
{
"attribute": {
"attributeCode": "attributes_workflowCreateItemActionsParentsLinkAttributeCode",
"value": "attributes_lanternsGears",
"attributeType": "String"
}
},
{
"attribute": {
"attributeCode": "attributes_workflowCreateItemActionsSingleInstance",
"value": false,
"attributeType": "Boolean"
}
},
{
"attributeCode": "attributes_gearsGearType",
"attributeType": "Link",
"value": {
"outputAction": "813205fbe3e61c20ca2e3a26",
"outputMode": "Input",
"itemValue": {
"property": "ItemId"
}
}
},
{
"attributeCode": "attributes_streetLightingComponentsLastReplacedDate",
"attributeType": "DateTime",
"value": {
"inputParent": 2,
"itemValue": {
"attributeCode": "attributes_streetLightingComponentsLastReplacedDate"
}
}
},
{
"attributeCode": "attributes_assetsInstalledDate",
"attributeType": "DateTime",
"value": {
"inputParent": 2,
"itemValue": {
"attributeCode": "attributes_assetsInstalledDate"
}
}
}
],
"variables": [],
"actions": []
}
]
}
]
}
]
},
{
"actionId": "8ebf4731a85b8c71eaecb330",
"designCode": "designs_workflowFilterAction",
"description": "Create new lamp and update gear when integrated lantern is not connected to lamp and is connected to gear item",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowFilterActionsAqsQuery",
"value": {
"type": "Query",
"properties": {
"attributes": [
"attributes_itemsTitle",
"attributes_itemsSubtitle"
],
"collectionCode": "Live",
"dodiCode": "designs_lanterns"
},
"children": [
{
"type": "And",
"children": [
{
"type": "Equals",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_lanternTypesIntegratedLed",
"path": "root.attributes_lanternsLanternType"
}
},
{
"type": "Boolean",
"properties": {
"value": true
}
}
]
},
{
"type": "NotConnectedTo",
"children": [
{
"type": "Item",
"properties": {
"path": "root.attributes_lanternsLamps"
}
}
]
},
{
"type": "ConnectedTo",
"children": [
{
"type": "Item",
"properties": {
"path": "root.attributes_lanternsGears"
}
}
]
}
]
}
]
},
"attributeType": "Aqs"
}
}
],
"variables": [],
"actions": [
{
"actionId": "83d9a8531ff12049a97524c7",
"designCode": "designs_workflowCreateItemAction",
"description": "Create new lamp with integrated lamp type",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowCreateItemActionsDesignCode",
"value": "designs_lamps",
"attributeType": "String"
}
},
{
"attribute": {
"attributeCode": "attributes_workflowCreateItemActionsCollection",
"value": "Live",
"attributeType": "String"
}
},
{
"attributeCode": "attributes_workflowCreateItemActionsParents",
"attributeType": "Link",
"value": {
"inputParent": 1,
"itemValue": {
"property": "ItemId"
}
}
},
{
"attribute": {
"attributeCode": "attributes_workflowCreateItemActionsParentsLinkAttributeCode",
"value": "attributes_lanternsLamps",
"attributeType": "String"
}
},
{
"attribute": {
"attributeCode": "attributes_workflowCreateItemActionsSingleInstance",
"value": false,
"attributeType": "Boolean"
}
},
{
"attributeCode": "attributes_lampsLampType",
"attributeType": "Link",
"value": {
"outputAction": "881ed32fb16cf51918e0d3bd",
"outputMode": "Input",
"itemValue": {
"property": "ItemId"
}
}
},
{
"attributeCode": "attributes_lampsCyclicChangeFrequency",
"attributeType": "Number",
"value": {
"outputAction": "881ed32fb16cf51918e0d3bd",
"outputMode": "Input",
"itemValue": {
"attributeCode": "attributes_lampTypesChangeCycle_8a972cbb8fe0319aed250a1d"
}
}
},
{
"attributeCode": "attributes_streetLightingComponentsLastReplacedDate",
"attributeType": "DateTime",
"value": {
"inputParent": 1,
"itemValue": {
"attributeCode": "attributes_streetLightingComponentsLastReplacedDate"
}
}
},
{
"attributeCode": "attributes_assetsInstalledDate",
"attributeType": "DateTime",
"value": {
"inputParent": 1,
"itemValue": {
"attributeCode": "attributes_assetsInstalledDate"
}
}
}
],
"variables": [],
"actions": [
{
"actionId": "80d64ae25737eb6995b25459",
"designCode": "designs_workflowRelationAction",
"description": "",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root^attributes_lanternsLamps",
"attributeType": "String"
}
}
],
"variables": [],
"actions": [
{
"actionId": "825f31b440ee2a7dfde9b94f",
"designCode": "designs_workflowRelationAction",
"description": "",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root.attributes_lanternsGears",
"attributeType": "String"
}
}
],
"variables": [],
"actions": [
{
"actionId": "894178e4912b97f49516f519",
"designCode": "designs_workflowEditItemAction",
"description": "Change Gear Type to Integrated Gear Type from Lantern",
"parameters": [
{
"attributeCode": "attributes_gearsGearType",
"attributeType": "Link",
"value": {
"outputAction": "813205fbe3e61c20ca2e3a26",
"outputMode": "Input",
"itemValue": {
"property": "ItemId"
}
}
},
{
"attributeCode": "attributes_streetLightingComponentsLastReplacedDate",
"attributeType": "DateTime",
"value": {
"inputParent": 2,
"itemValue": {
"attributeCode": "attributes_streetLightingComponentsLastReplacedDate"
}
}
},
{
"attributeCode": "attributes_assetsInstalledDate",
"attributeType": "DateTime",
"value": {
"inputParent": 2,
"itemValue": {
"attributeCode": "attributes_assetsInstalledDate"
}
}
}
],
"variables": [],
"actions": []
}
]
}
]
}
]
}
]
},
{
"actionId": "881ed32fb16cf51918e0d3bd",
"designCode": "designs_workflowRelationAction",
"description": "Lamp Type",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root.attributes_lanternsLanternType.attributes_lanternTypesIntegratedLampType_8575812e0cb825712dfb294b",
"attributeType": "String"
}
}
],
"variables": [],
"actions": []
},
{
"actionId": "813205fbe3e61c20ca2e3a26",
"designCode": "designs_workflowRelationAction",
"description": "Gear Types",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root.attributes_lanternsLanternType.attributes_lanternTypesIntegratedGearType_82f817f286a299d8549c7978",
"attributeType": "String"
}
}
],
"variables": [],
"actions": []
}
]
}