Skip to main content

Alloy - Set Warranty Expires

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 - Set Warranty Expires
Codeworkflows_setWarrantyExpires_8508c8b9455f4244be84ceb1
TypeWorkflow
ContextPackage
EnabledYes
Runs onWorking 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.

PropertyValue
Workflow typeManual workflow
Applies toStreet Lighting With Warranty and Parts Used
CollectionsLive
Output modeManyItems  (Runs once for all items)
Parameters designMTP - Alloy - Set Warranty Expires
Output actionThe Edit Item action highlighted in the diagram below

Actions​

This workflow runs 2 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 (57 lines)
{
"trigger": {
"dodiCode": "designInterfaces_streetLightingWithWarrantyAndPartsUsed_813b284e736e8a25eae31199",
"collections": [
"Live"
],
"outputMode": "ManyItems",
"parametersDesignCode": "designs_setWarrantyExpires_8adeacef2f11849dd65b7a3f",
"outputActionId": "857d574d806e1d5066f42828"
},
"actions": [
{
"actionId": "857d574d806e1d5066f42828",
"designCode": "designs_workflowEditItemAction",
"description": "Update component warranty expires using the type warranty period months standard item value",
"parameters": [
{
"attributeCode": "attributes_streetLightingWarrantyWarrantyExpires_8eda1f094dbffaf6f4d6e4c2",
"value": {
"script": "return Now.AddMonths((int)warrantyPeriodMonths);"
},
"attributeType": "DateTime"
}
],
"variables": [
{
"name": "warrantyPeriodMonths",
"attributeType": "Number",
"value": {
"outputAction": "8a36d1b28a04248e225df963",
"outputMode": "Input",
"itemValue": {
"attributeCode": "attributes_warrantyPeriodsListMonths_8dfd35fea85ce047aece332e"
}
}
}
],
"actions": []
},
{
"actionId": "8a36d1b28a04248e225df963",
"designCode": "designs_workflowRelationAction",
"description": "Part Type Warranty Period",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root.attributes_streetLightingPartsUsedPartType_81984af1310ebb0162841293.attributes_streetLightingTypesWarrantyPeriodMonths_8885a77131f9cef08146465b",
"attributeType": "String"
}
}
],
"variables": [],
"actions": []
}
]
}