define(["require","exports","tslib","../../deps/bluebird_fork","../../Validation","./tools","esri/geometry/geometryEngineAsync"],function(e,t,i,n,r,o,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n=i.__importDefault(n);l.prototype.execute=function(e){var t=r.validation.exists("geometry1",e.geometry1),i=r.validation.exists("geometry2",e.geometry2),e=r.validation.array("relations",e.relations,r.validation.never).map(function(e){return a.relate(t,i,e)});return o.inline(n.default.all(e),function(e){return{incident:0<=e.indexOf(!0),incidents:e}})},l.action="gcx:wf:arcgis::RelateEngineTask",l.suite="gcx:wf:builtin",i=l;function l(){}t.RelateEngineTask=i});