{"_properties":{"isServerWorkflow":false},"components":[{"id":2,"steps":[{"id":3,"inputs":{},"position":"0,0","purpose":"start","title":"Start","transitions":[{"id":21,"position":"90,60 90,110","sourceConnector":"bottom","target":{"id":20},"targetConnector":"top"}]},{"action":"gcx:wf:app::RunCommand","description":"ui.display-notification","id":8,"inputs":{"commandName":"ui.display-notification","commandParameter":{"accessors":[],"annotations":[],"code":"{\n    disableTimeouts: true,\n    id: \"myWorkflowNotification\",\n    message: \"draw an arrow on the map to proceed\",\n    position: \"top\"\n}","source":"{\n    disableTimeouts: true,\n    id: \"myWorkflowNotification\",\n    message: \"draw an arrow on the map to proceed\",\n    position: \"top\"\n}"}},"position":"-30,220","title":"Run Command","transitions":[{"id":16,"inputs":{},"position":"90,280 90,320","target":{"id":12}}]},{"action":"gcx:wf:app::RunCommand","description":"ui.hide-notification","id":10,"inputs":{"commandName":"ui.hide-notification"},"position":"-30,450","title":"Run Command","transitions":[{"id":30,"position":"90,510 90,570","sourceConnector":"bottom","target":{"id":25}}]},{"action":"gcx:wf:app::RunOperation","description":"sketching.capture-geometry","id":12,"inputs":{"operationName":"sketching.capture-geometry","operationParameter":{"accessors":["$symbol1"],"annotations":[{"count":8,"index":39,"kind":"idref"}],"code":"{\n    geometryType: \"line\",\n    symbol: $symbol1.symbol\n}","source":"{\n    geometryType: \"line\",\n    symbol:$symbol1.symbol\n}"}},"name":"runOperation1","position":"-30,320","title":"Run Operation","transitions":[{"id":18,"inputs":{},"position":"90,410 90,450","sourceConnector":"bottom","target":{"id":10},"targetConnector":"top"}]},{"action":"gcx:wf:core::Annotation","description":"This example is to demonstrate how to make workflow mimic the standard \"Draw\" command in Web, but with some added customization like using a specific symbol.\n\nYou might use this in a case where you need the user to add specific drawings or annotation before printing or screenshotting the map for them.\n\nThe benefit of using Web commands rather than Display Form + Geometry Picker + Add Graphics is that the user gets a better preview of what the result will look like while they are still in the process of drawing.","id":14,"inputs":{},"position":"-330,140","title":"Notes"},{"action":"gcx:wf:arcgis::SymbolFromJson","id":20,"inputs":{"json":{"accessors":[],"annotations":[],"code":"{\n    type: \"esriSLS\",\n    style: \"esriSLSSolid\",\n    color: [\n        237,\n        174,\n        249,\n        255\n    ],\n    width: 2,\n    marker: {\n        style: \"arrow\",\n        placement: \"end\"\n    }\n}","source":"{\n  type: \"esriSLS\",\n  style: \"esriSLSSolid\",\n  color: [\n    237,\n    174,\n    249,\n    255\n    ],\n  width: 2,\n  marker: {\n    style: \"arrow\",\n    placement: \"end\"\n  }\n}"}},"name":"symbol1","position":"-30,110","title":"Get Symbol From JSON","transitions":[{"id":22,"position":"90,170 90,220","target":{"id":8}}]},{"action":"gcx:wf:app::RunOperation","description":"drawing.create-graphics","id":25,"inputs":{"operationName":"drawing.create-graphics","operationParameter":{"accessors":["$runOperation1"],"annotations":[{"count":14,"index":0,"kind":"idref"}],"code":"$runOperation1.result","source":"$runOperation1.result"}},"name":"runOperation2","position":"-30,570","title":"Run Operation","transitions":[{"id":29,"inputs":{},"position":"90,660 90,720","target":{"id":27}}]},{"action":"gcx:wf:app::RunCommand","description":"map.add-markup","id":27,"inputs":{"commandName":"map.add-markup","commandParameter":{"accessors":["$runOperation2"],"annotations":[{"count":14,"index":0,"kind":"idref"}],"code":"$runOperation2.result","source":"$runOperation2.result"}},"position":"-30,720","title":"Run Command"}]}],"deploymentConfig":{"supportedApps":{"VSW":true}},"designerVersion":"5.53.0+6","licenseInfo":{"licenseeId":"6186c77c-832c-031f-68e7-15ddb2c47678"},"start":{"id":3}}