Alloy - Update Actual Costs
This workflow is included in the Street Lighting Extended Activities package.
Description
This workflow has no description.
Properties
This workflow has the following properties.
| Property | Value |
|---|---|
| Name | Alloy - Update Actual Costs |
| Code | workflows_alloyUpdateActualCosts_861ef7a59528b231f7cb8ff6 |
| Type | Workflow |
| Context | Package |
| Enabled | Yes |
| Runs on | Working days and hours only (Both) |
Trigger
The system triggers this workflow when items of the design below are edited. Where attributes are listed, an edit to anything else is ignored.
| Property | Value |
|---|---|
| Workflow type | Event workflow |
| Applies to | Street Lighting Lighting Job |
| Events | Edit |
| Collections | Live |
| Attributes listened for | attributes_tasksStatus (Status) |
| Output mode | ManyItems (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 (167 lines)
{
"trigger": {
"dodiCode": "designs_streetLightingLightingJob_829231e7849b05abef6d69f7",
"collections": [
"Live"
],
"events": [
"Edit"
],
"attributesListeningFor": [
"attributes_tasksStatus"
],
"outputMode": "ManyItems"
},
"actions": [
{
"actionId": "83afad0691f3492722675246",
"designCode": "designs_workflowFilterAction",
"description": "",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowFilterActionsAqsQuery",
"value": {
"type": "Query",
"properties": {
"attributes": [
"attributes_itemsTitle",
"attributes_itemsSubtitle"
],
"collectionCode": "Live",
"dodiCode": "designs_streetLightingLightingJob_829231e7849b05abef6d69f7"
},
"children": [
{
"type": "And",
"children": [
{
"type": "Equals",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_tasksStatus"
}
},
{
"type": "AlloyId",
"properties": {
"value": [
"8e6517831f0f10fcaba6492e"
]
}
}
]
}
]
}
]
},
"attributeType": "Aqs"
}
}
],
"variables": [],
"actions": [
{
"actionId": "8088fb50be2939a1fc64c87d",
"designCode": "designs_workflowRelationAction",
"description": "",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root.attributes_jobsJobWorkItems<designs_measurementJobWorkItems>",
"attributeType": "String"
}
}
],
"variables": [],
"actions": [
{
"actionId": "89d0eec501a25c625efa1ecf",
"designCode": "designs_workflowFilterAction",
"description": "",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowFilterActionsAqsQuery",
"value": {
"type": "Query",
"properties": {
"attributes": [
"attributes_itemsTitle",
"attributes_itemsSubtitle"
],
"collectionCode": "Live",
"dodiCode": "designs_measurementJobWorkItems"
},
"children": [
{
"type": "And",
"children": [
{
"type": "Exists",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_jobWorkItemsEstimatedValue"
}
}
]
},
{
"type": "And",
"children": [
{
"type": "NotExists",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_jobWorkItemsActualValue"
}
}
]
}
]
}
]
}
]
},
"attributeType": "Aqs"
}
}
],
"variables": [],
"actions": [
{
"actionId": "849cbec8f245dd67bf268bc7",
"designCode": "designs_workflowEditItemAction",
"description": "",
"parameters": [
{
"attributeCode": "attributes_jobWorkItemsActualValue",
"value": {
"inputParent": 0,
"itemValue": {
"attributeCode": "attributes_jobWorkItemsEstimatedValue"
}
},
"attributeType": "Number"
}
],
"variables": [],
"actions": []
}
]
}
]
}
]
}
]
}