{"_properties":{"isServerWorkflow":false},"components":[{"id":1,"steps":[{"id":2,"inputs":{},"position":"0,-10","purpose":"start","title":"Start","transitions":[{"id":52,"inputs":{},"position":"90,50 90,90","sourceConnector":"bottom","target":{"id":5},"targetConnector":"top"}]},{"action":"gcx:wf:core::GetWorkflowInputs","description":"Gets the current selection of features from context.","id":5,"inputs":{},"name":"getWorkflowInputs1","position":"-30,90","title":"Get Workflow Inputs","transitions":[{"id":56,"inputs":{},"position":"90,210 90,240","sourceConnector":"bottom","target":{"id":55},"targetConnector":"top"}]},{"action":"gcx:wf:core:loop:ForEach","description":"Loops through all selected features.","id":7,"inputs":{"items":{"accessors":["$toGraphics"],"annotations":[{"count":11,"index":0,"kind":"idref"}],"code":"$toGraphics.result","source":"$toGraphics.result"}},"name":"forEach1","position":"-30,750","title":"For Each"},{"action":"gcx:wf:arcgis::SymbolFromJson","id":12,"inputs":{"json":{"accessors":[],"annotations":[],"code":"{\n    \"type\": \"esriSFS\",\n    \"color\": [\n        106,\n        215,\n        251,\n        100\n    ],\n    \"outline\": {\n        \"type\": \"esriSLS\",\n        \"color\": [\n            106,\n            215,\n            251,\n            255\n        ],\n        \"width\": 3,\n        \"style\": \"esriSLSSolid\"\n    },\n    \"style\": \"solid\"\n}","source":"{\n  \"type\": \"esriSFS\",\n  \"color\": [\n    106,\n    215,\n    251,\n    100\n  ],\n  \"outline\": {\n    \"type\": \"esriSLS\",\n    \"color\": [\n      106,\n      215,\n      251,\n      255\n    ],\n    \"width\": 3,\n    \"style\": \"esriSLSSolid\"\n  },\n  \"style\": \"solid\"\n}"}},"name":"polygon","position":"-30,400","title":"Get Symbol From JSON","transitions":[{"id":39,"inputs":{},"position":"90,470 90,510","target":{"id":38}}]},{"action":"gcx:wf:core::Annotation","description":"This workflow needs to be run from an appropriate location in your Web app, such that the current selection of features can be passed in as context. For example, the Feature Actions menu or the Results List's Results Shown event.","id":36,"inputs":{},"position":"-310,90","title":"Notes"},{"action":"gcx:wf:core::Annotation","description":"Symbology JSON can be obtained using Esri's Symbol Builder. Colour, line width, fill type, transparency, etc. are all modifiable by changing the parameters in the JSON.","id":37,"inputs":{},"position":"-310,480","title":"Notes"},{"action":"gcx:wf:arcgis::SymbolFromJson","id":38,"inputs":{"json":{"accessors":[],"annotations":[],"code":"{\n    \"type\": \"esriSLS\",\n    \"color\": [\n        106,\n        215,\n        251,\n        255\n    ],\n    \"width\": 3,\n    \"style\": \"esriSLSSolid\"\n}","source":"{\n  \"type\": \"esriSLS\",\n  \"color\": [\n    106,\n    215,\n    251,\n    255\n  ],\n  \"width\": 3,\n  \"style\": \"esriSLSSolid\"\n}"}},"name":"line","position":"-30,510","title":"Get Symbol From JSON","transitions":[{"id":44,"inputs":{},"position":"90,580 90,630","target":{"id":43}}]},{"action":"gcx:wf:arcgis::SymbolFromJson","id":43,"inputs":{"json":{"accessors":[],"annotations":[],"code":"{\n    \"type\": \"esriSMS\",\n    \"color\": [\n        106,\n        215,\n        251,\n        0\n    ],\n    \"angle\": 0,\n    \"xoffset\": 0,\n    \"yoffset\": 0,\n    \"size\": 12,\n    \"style\": \"esriSMSCircle\",\n    \"outline\": {\n        \"type\": \"esriSLS\",\n        \"color\": [\n            106,\n            215,\n            251,\n            255\n        ],\n        \"width\": 3,\n        \"style\": \"esriSLSSolid\"\n    }\n}","source":"{\n  \"type\": \"esriSMS\",\n  \"color\": [\n    106,\n    215,\n    251,\n    0\n  ],\n  \"angle\": 0,\n  \"xoffset\": 0,\n  \"yoffset\": 0,\n  \"size\": 12,\n  \"style\": \"esriSMSCircle\",\n  \"outline\": {\n    \"type\": \"esriSLS\",\n    \"color\": [\n      106,\n      215,\n      251,\n      255\n    ],\n    \"width\": 3,\n    \"style\": \"esriSLSSolid\"\n  }\n}"}},"name":"point","position":"-30,630","title":"Get Symbol From JSON","transitions":[{"id":40,"position":"90,700 90,750","sourceConnector":"bottom","target":{"id":7}}]},{"action":"gcx:wf:app::RunOperation","description":"Converts VertiGIS features to Esri graphics.","id":55,"inputs":{"operationName":"results.to-graphics","operationParameter":{"accessors":["$getWorkflowInputs1"],"annotations":[{"count":19,"index":0,"kind":"idref"}],"code":"$getWorkflowInputs1.inputs.context","source":"$getWorkflowInputs1.inputs.context"}},"name":"toGraphics","position":"-30,240","title":"Convert to Esri Graphics","transitions":[{"id":57,"inputs":{},"position":"90,360 90,400","target":{"id":12}}]}]},{"id":8,"steps":[{"id":9,"inputs":{},"position":"0,0","purpose":"start","title":"For Each","transitions":[{"id":59,"inputs":{},"position":"90,60 90,110","sourceConnector":"bottom","target":{"id":58}}]},{"action":"gcx:wf:arcgis::CreateGraphic","id":22,"inputs":{"geometry":{"accessors":["$forEach1"],"annotations":[{"count":9,"index":0,"kind":"idref"}],"code":"$forEach1.item.geometry","source":"$forEach1.item.geometry"},"symbol":{"accessors":["$polygon"],"annotations":[{"count":8,"index":0,"kind":"idref"}],"code":"$polygon.symbol","source":"$polygon.symbol"}},"name":"polygonFeature","position":"-30,370","title":"Create Feature","transitions":[{"id":25,"inputs":{},"position":"90,440 90,490","sourceConnector":"bottom","target":{"id":24}}]},{"action":"gcx:wf:arcgis::AddGraphicsLayerFeatures","id":24,"inputs":{"features":{"accessors":["$polygonFeature"],"annotations":[{"count":15,"index":0,"kind":"idref"}],"code":"$polygonFeature.feature","source":"$polygonFeature.feature"}},"name":"addPolygon","position":"-30,490","title":"Add Graphics"},{"action":"gcx:wf:core::Switch","description":"Sorts based on graphics type. Additional types may need to be added, depending on the types of features present in your app.","id":58,"inputs":{"value":{"accessors":["$forEach1"],"annotations":[{"count":9,"index":0,"kind":"idref"}],"code":"$forEach1.item.geometry.type","source":"$forEach1.item.geometry.type"}},"position":"-30,110","title":"Switch","transitions":[{"id":60,"inputs":{},"position":"90,280 90,370","purpose":"default","target":{"id":22},"title":"polygon"},{"branch":"point","id":64,"inputs":{},"position":"-30,195 -200,195 -200,270","sourceConnector":"left","target":{"id":63},"targetConnector":"top"},{"branch":"polyline","id":69,"inputs":{},"position":"210,195 390,195 390,270","sourceConnector":"right","target":{"id":68},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::CreateGraphic","id":63,"inputs":{"geometry":{"accessors":["$forEach1"],"annotations":[{"count":9,"index":0,"kind":"idref"}],"code":"$forEach1.item.geometry","source":"$forEach1.item.geometry"},"symbol":{"accessors":["$point"],"annotations":[{"count":6,"index":0,"kind":"idref"}],"code":"$point.symbol","source":"$point.symbol"}},"name":"pointFeature","position":"-320,270","title":"Create Feature","transitions":[{"id":74,"inputs":{},"position":"-200,340 -200,390","sourceConnector":"bottom","target":{"id":73}}]},{"action":"gcx:wf:arcgis::CreateGraphic","id":68,"inputs":{"geometry":{"accessors":["$forEach1"],"annotations":[{"count":9,"index":0,"kind":"idref"}],"code":"$forEach1.item.geometry","source":"$forEach1.item.geometry"},"symbol":{"accessors":["$line"],"annotations":[{"count":5,"index":0,"kind":"idref"}],"code":"$line.symbol","source":"$line.symbol"}},"name":"lineFeature","position":"270,270","title":"Create Feature","transitions":[{"id":78,"inputs":{},"position":"390,340 390,390","sourceConnector":"bottom","target":{"id":77}}]},{"action":"gcx:wf:arcgis::AddGraphicsLayerFeatures","id":73,"inputs":{"features":{"accessors":["$pointFeature"],"annotations":[{"count":13,"index":0,"kind":"idref"}],"code":"$pointFeature.feature","source":"$pointFeature.feature"}},"name":"addPoint","position":"-320,390","title":"Add Graphics"},{"action":"gcx:wf:arcgis::AddGraphicsLayerFeatures","id":77,"inputs":{"features":{"accessors":["$lineFeature"],"annotations":[{"count":12,"index":0,"kind":"idref"}],"code":"$lineFeature.feature","source":"$lineFeature.feature"}},"name":"addLine","position":"270,390","title":"Add Graphics"}]}],"deploymentConfig":{"supportedApps":{"VSW":true}},"designerVersion":"5.37.0+41","licenseInfo":{"licenseeId":"88cb61d6-af47-9b3e-5181-ed674c4c0815"},"start":{"id":2},"transitions":[{"branch":"loop","id":10,"inputs":{},"source":{"id":7},"target":{"id":9}}]}