import{validation}from"../../Validation.js";import{isArcGisApiVersion3x}from"./ArcGisApiVersion.js";class SetFeatureAttribute{execute(t){const e=validation.exists("feature",t.feature);var i=validation.string("attributeName",t.attributeName,validation.never);return e.attributes||(isArcGisApiVersion3x?e.setAttributes({}):e.attributes={}),e.attributes[i]=t.attributeValue,{}}}SetFeatureAttribute.action="gcx:wf:arcgis::SetFeatureAttribute",SetFeatureAttribute.suite="gcx:wf:builtin";export{SetFeatureAttribute};