Skip to main content

Alloy - Update Lamp Fields

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 Lamp Fields
Codeworkflows_alloyUpdateLampFields_8e94c74eae0778bdfadc6ae7
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 toLamps
EventsCreate, Edit
CollectionsLive
Attributes listened forattributes_lampsLampType  (Lamp Type)
Output modeManyItems  (Runs once for all items)

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 (126 lines)
{
"trigger": {
"dodiCode": "designs_lamps",
"collections": [
"Live"
],
"events": [
"Create",
"Edit"
],
"attributesListeningFor": [
"attributes_lampsLampType"
],
"outputMode": "ManyItems"
},
"actions": [
{
"actionId": "880250609035349e32b8254d",
"designCode": "designs_workflowFilterAction",
"description": "",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowFilterActionsAqsQuery",
"value": {
"type": "Query",
"properties": {
"attributes": [
"attributes_itemsTitle",
"attributes_itemsSubtitle"
],
"collectionCode": "Live",
"dodiCode": "designs_lamps"
},
"children": [
{
"type": "And",
"children": [
{
"type": "Exists",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_lampsLampType"
}
}
]
}
]
}
]
},
"attributeType": "Aqs"
}
}
],
"variables": [],
"actions": [
{
"actionId": "823a2a42d540d6437aca8f4b",
"designCode": "designs_workflowEditItemAction",
"description": "",
"parameters": [
{
"attributeCode": "attributes_lampsChargeCode_8a1c7bf9cbcd0911a4904712",
"value": {
"outputAction": "8731f8bfef35ddb3ae2f9c04",
"itemValue": {
"attributeCode": "attributes_elexonEnergyCodesChargeCode_8c2abf3e630b3d1e546ff6f1"
},
"outputMode": "Input"
},
"attributeType": "String"
},
{
"attributeCode": "attributes_lampsCyclicChangeFrequency",
"value": {
"outputAction": "85fbb35243a9e9995d59fe64",
"itemValue": {
"attributeCode": "attributes_lampTypesChangeCycle_8a972cbb8fe0319aed250a1d"
},
"outputMode": "Input"
},
"attributeType": "Number"
}
],
"variables": [],
"actions": []
},
{
"actionId": "8731f8bfef35ddb3ae2f9c04",
"designCode": "designs_workflowRelationAction",
"description": "Lamp Charge Codes",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root.attributes_lampsLampType.attributes_lampTypesWithEnergyCodesElexonEnergyCode_85a1f5b8f7def46c1552e34b",
"attributeType": "String"
}
}
],
"variables": [],
"actions": []
},
{
"actionId": "85fbb35243a9e9995d59fe64",
"designCode": "designs_workflowRelationAction",
"description": "Lamp Type",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root.attributes_lampsLampType",
"attributeType": "String"
}
}
],
"variables": [],
"actions": []
}
]
}
]
}