{
    "components": [
        {
            "id": 2,
            "steps": [
                {
                    "id": 3,
                    "inputs": {},
                    "position": "40,-90",
                    "purpose": "start",
                    "title": "Start",
                    "transitions": [
                        {
                            "id": 20,
                            "position": "130,-30 130,20",
                            "target": { "id": 18 }
                        }
                    ]
                },
                {
                    "action": "gcx:wf:core::GetWorkflowInputs",
                    "id": 6,
                    "inputs": {},
                    "name": "getWorkflowInputs1",
                    "position": "10,190",
                    "title": "Get Workflow Inputs",
                    "transitions": [
                        {
                            "id": 22,
                            "position": "130,260 130,310",
                            "target": { "id": 15 }
                        }
                    ]
                },
                {
                    "action": "gcx:wf:arcgis::BufferEngineTask",
                    "id": 15,
                    "inputs": {
                        "distance": {
                            "accessors": ["$form1"],
                            "annotations": [
                                { "count": 6, "index": 0, "kind": "idref" }
                            ],
                            "code": "$form1.state.bufferAmount.value.numeric",
                            "source": "$form1.state.bufferAmount.value.numeric"
                        },
                        "geometry": {
                            "accessors": ["$getWorkflowInputs1"],
                            "annotations": [
                                { "count": 19, "index": 0, "kind": "idref" }
                            ],
                            "code": "$getWorkflowInputs1.inputs.context.geometry",
                            "source": "$getWorkflowInputs1.inputs.context.geometry"
                        },
                        "unit": "meters"
                    },
                    "name": "buffer1",
                    "position": "10,310",
                    "title": "Buffer Geometry",
                    "transitions": [
                        {
                            "id": 26,
                            "position": "130,380 130,430",
                            "target": { "id": 25 }
                        }
                    ]
                },
                {
                    "action": "gcx:wf:forms:form:DisplayForm",
                    "id": 18,
                    "inputs": {
                        "form": {
                            "accessors": [],
                            "code": "resources.forms[values.id]",
                            "values": { "id": 19 }
                        }
                    },
                    "name": "form1",
                    "position": "10,20",
                    "title": "Get Buffer Distance",
                    "transitions": [
                        {
                            "id": 21,
                            "position": "130,140 130,190",
                            "target": { "id": 6 }
                        }
                    ]
                },
                {
                    "action": "gcx:wf:arcgis::CreateGraphic",
                    "id": 23,
                    "inputs": {
                        "geometry": {
                            "accessors": ["$buffer1"],
                            "annotations": [
                                { "count": 8, "index": 0, "kind": "idref" }
                            ],
                            "code": "$buffer1.geometry",
                            "source": "$buffer1.geometry"
                        },
                        "symbol": {
                            "accessors": ["$symbol1"],
                            "annotations": [
                                { "count": 8, "index": 0, "kind": "idref" }
                            ],
                            "code": "$symbol1.symbol",
                            "source": "$symbol1.symbol"
                        }
                    },
                    "name": "feature1",
                    "position": "10,550",
                    "title": "Create Feature",
                    "transitions": [
                        {
                            "id": 29,
                            "position": "130,620 130,680",
                            "target": { "id": 28 }
                        }
                    ]
                },
                {
                    "action": "gcx:wf:arcgis::SymbolFromJson",
                    "id": 25,
                    "inputs": {
                        "json": {
                            "accessors": [],
                            "annotations": [],
                            "code": "{\n    \"type\": \"esriSFS\",\n    \"style\": \"esriSFSForwardDiagonal\",\n    \"color\": [3, 252, 252, 255],\n    \"outline\": {\n        \"type\": \"esriSLS\",\n        \"style\": \"esriSLSSolid\",\n        \"color\": [30, 0, 255, 255],\n        \"width\": 1\n    }\n}",
                            "source": "{\n  \"type\": \"esriSFS\",\n  \"style\": \"esriSFSForwardDiagonal\",\n  \"color\": [3, 252, 252, 255],\n    \"outline\": {\n     \"type\": \"esriSLS\",\n     \"style\": \"esriSLSSolid\",\n     \"color\": [30, 0, 255,255],\n     \"width\": 1\n    }\n}"
                        }
                    },
                    "name": "symbol1",
                    "position": "10,430",
                    "title": "Get Symbol From JSON",
                    "transitions": [
                        {
                            "id": 30,
                            "position": "130,500 130,550",
                            "target": { "id": 23 }
                        }
                    ]
                },
                {
                    "action": "gcx:wf:arcgis::AddGraphicsLayerFeatures",
                    "id": 28,
                    "inputs": {
                        "features": {
                            "accessors": ["$feature1"],
                            "annotations": [
                                { "count": 9, "index": 0, "kind": "idref" }
                            ],
                            "code": "$feature1.feature",
                            "source": "$feature1.feature"
                        }
                    },
                    "name": "addGraphics1",
                    "position": "10,680",
                    "title": "Add Graphics"
                }
            ]
        }
    ],
    "deploymentConfig": {
        "supportedApps": { "GWV": true },
        "worksOffline": false
    },
    "forms": [
        {
            "defaults": {},
            "elements": {
                "bufferAmount": {
                    "description": {
                        "markdown": "Amount to Buffer Geometry (in meters)"
                    },
                    "enabled": true,
                    "index": 0,
                    "title": { "markdown": "Amount" },
                    "type": "Number",
                    "value": "50"
                },
                "footer": {
                    "enabled": true,
                    "items": {
                        "0": {
                            "default": true,
                            "index": 0,
                            "label": { "markdown": "Submit" },
                            "validates": true,
                            "value": "submit"
                        }
                    },
                    "section": "footer",
                    "type": "ButtonBar"
                },
                "header": {
                    "section": "header",
                    "title": { "markdown": "Buffer Point" },
                    "type": "Header"
                }
            },
            "id": 19
        }
    ],
    "start": { "id": 3 }
}
