Alloy - Generate Attributes For Warranty And Parts Used
This workflow is included in the Street Lighting Package package.
Description
This workflow has no description.
Properties
This workflow has the following properties.
| Property | Value |
|---|---|
| Name | Alloy - Generate Attributes For Warranty And Parts Used |
| Code | workflows_generateAttributesForWarrantyAndPartsUsed_8d2a685b9b1be9d1b57d010f |
| Type | Workflow |
| Context | Package |
| Enabled | Yes |
| Runs on | Working days and hours only (Both) |
Trigger
A user triggers this workflow on demand, or another workflow runs it (via an MWR). It works on the items of the design below.
| Property | Value |
|---|---|
| Workflow type | Manual workflow |
| Applies to | Street Lighting Parts Used |
| Collections | Live |
| Output mode | ManyItems (Runs once for all items) |
| Parameters design | MTP - Alloy - Generate Attributes For Warranty And Parts Used |
| Output action | The Create Item action highlighted in the diagram below |
Actions
This workflow runs 8 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 (272 lines)
{
"trigger": {
"dodiCode": "designInterfaces_streetLightingPartsUsed_856fe78d59aa657bf6844135",
"collections": [
"Live"
],
"outputMode": "ManyItems",
"parametersDesignCode": "designs_generateAttributesForWarrantyAndPartsUsed_8607768d434a669bb8d1f2ea",
"outputActionId": "8d2d1caa39de8e7618a73c66"
},
"actions": [
{
"actionId": "8d6a2262ca18871617e68f30",
"designCode": "designs_workflowRelationAction",
"description": "Find any Inventory Part Used connected to Columns history",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root.attributes_streetLightingPartsUsedPartsHistory_8b7a969aaed72f2f76813645",
"attributeType": "String"
}
}
],
"variables": [],
"actions": [
{
"actionId": "86294f960a1411048f2e113d",
"designCode": "designs_workflowFilterAction",
"description": "The Current Part Installed (Inventory collection/status) is changed to Live collection (Last Part Used)",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowFilterActionsAqsQuery",
"value": {
"type": "Query",
"properties": {
"attributes": [
"attributes_itemsTitle",
"attributes_itemsSubtitle"
],
"collectionCode": "Inventory",
"dodiCode": "designs_partUsed_8dd321682c473848f7429cb5"
}
},
"attributeType": "Aqs"
}
}
],
"variables": [],
"actions": [
{
"actionId": "87da23d9c73243e48e666ae6",
"designCode": "designs_workflowEditItemAction",
"description": "",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowEditItemActionsCollection",
"value": "Live",
"attributeType": "String"
}
},
{
"attribute": {
"attributeCode": "attributes_partUsedStatus_80bd33cb742f13c18402f1cd",
"value": "Last Part Used",
"attributeType": "String"
}
}
],
"variables": [],
"actions": []
}
]
}
]
},
{
"actionId": "8d2d1caa39de8e7618a73c66",
"designCode": "designs_workflowCreateItemAction",
"description": "Create new Part Used with Inventory collection and status and set up all the information relating to the Column component",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowCreateItemActionsDesignCode",
"value": "designs_partUsed_8dd321682c473848f7429cb5",
"attributeType": "String"
}
},
{
"attribute": {
"attributeCode": "attributes_workflowCreateItemActionsCollection",
"value": "Inventory",
"attributeType": "String"
}
},
{
"attributeCode": "attributes_workflowCreateItemActionsParents",
"attributeType": "Link",
"value": {
"inputParent": 0,
"itemValue": {
"property": "ItemId"
}
}
},
{
"attribute": {
"attributeCode": "attributes_workflowCreateItemActionsParentsLinkAttributeCode",
"value": "attributes_streetLightingPartsUsedPartsHistory_8b7a969aaed72f2f76813645",
"attributeType": "String"
}
},
{
"attribute": {
"attributeCode": "attributes_workflowCreateItemActionsSingleInstance",
"value": false,
"attributeType": "Boolean"
}
},
{
"attributeCode": "attributes_itemsGeometry",
"attributeType": "GeoJson",
"value": {
"inputParent": 0,
"itemValue": {
"attributeCode": "attributes_itemsGeometry"
}
}
},
{
"attributeCode": "attributes_partUsedWarrantyDate_8e167652bd750a583e997df2",
"attributeType": "DateTime",
"value": {
"parameterCode": "attributes_generatePartUsedWarrantyDate_83d20b7558095b5f015c35bd",
"inputMode": "Each"
}
},
{
"attributeCode": "attributes_partUsedPartCode_81f6c8dcf328d4798cd1cf44",
"attributeType": "String",
"value": {
"inputParent": 0,
"itemValue": {
"attributeCode": "attributes_itemsTitle"
}
}
},
{
"attribute": {
"attributeCode": "attributes_partUsedStatus_80bd33cb742f13c18402f1cd",
"value": "Inventory",
"attributeType": "String"
}
},
{
"attributeCode": "attributes_partUsedType_8aecda32fdeed161a7e640fa",
"attributeType": "String",
"value": {
"parameterCode": "attributes_generatePartUsedType_849d8aefdd6763576b5bd00c",
"inputMode": "Each"
}
},
{
"attributeCode": "attributes_partUsedWarrantyPeriod_80344d93e27f620bbcb1007f",
"attributeType": "Link",
"value": {
"outputAction": "8d83e1e2074909645b7e597b",
"outputMode": "Input",
"itemValue": {
"attributeCode": "attributes_streetLightingTypesWarrantyPeriodMonths_8885a77131f9cef08146465b"
}
}
},
{
"attributeCode": "attributes_assetsInstalledDate",
"attributeType": "DateTime",
"value": {
"parameterCode": "attributes_generatePartUsedInstalledDate_8baa0a246eb331bd4b7d5b61",
"inputMode": "Each"
}
}
],
"variables": [],
"actions": []
},
{
"actionId": "8b8bba3d320cf7d05a6e69ef",
"designCode": "designs_workflowRelationAction",
"description": "Find any existing Live parts used in Column history these are changed to Archive",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root.attributes_streetLightingPartsUsedPartsHistory_8b7a969aaed72f2f76813645",
"attributeType": "String"
}
}
],
"variables": [],
"actions": [
{
"actionId": "8a698b6cf527ea054f6dc925",
"designCode": "designs_workflowFilterAction",
"description": "The current Part Used (status = Last Part Used and collection = Live) is moved to Archive",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowFilterActionsAqsQuery",
"value": {
"type": "Query",
"properties": {
"attributes": [
"attributes_itemsTitle",
"attributes_itemsSubtitle"
],
"collectionCode": "Live",
"dodiCode": "designs_partUsed_8dd321682c473848f7429cb5"
}
},
"attributeType": "Aqs"
}
}
],
"variables": [],
"actions": [
{
"actionId": "8c3ebc0de11f32265c81e299",
"designCode": "designs_workflowEditItemAction",
"description": "Change the current Live part to collection and status Archive",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowEditItemActionsCollection",
"value": "Archive",
"attributeType": "String"
}
},
{
"attribute": {
"attributeCode": "attributes_partUsedStatus_80bd33cb742f13c18402f1cd",
"value": "Archive",
"attributeType": "String"
}
}
],
"variables": [],
"actions": []
}
]
}
]
},
{
"actionId": "8d83e1e2074909645b7e597b",
"designCode": "designs_workflowRelationAction",
"description": "Part Type",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root.attributes_streetLightingPartsUsedPartType_81984af1310ebb0162841293",
"attributeType": "String"
}
}
],
"variables": [],
"actions": []
}
]
}