[
      {
        "id": 4,
        "workflow": [
            {
                "id": "1",
                "type": "start",
                "next": {
                    "success": "ajax"
                }
            },
            {
                "id": "ajax",
                "type": "ajax",
                "method": "get",
                "data": "{}",
                "url": "{{#with (lookup ui_json route.params.entity)}}{{get}}{{/with}}",
                "var": "response_data",
                "headers": "{{route.params.entity}}",
                "next": {
                    "success": "js",
                    "failure": "bad-alert"
                }
            },
            {
                "id": "js",
                "type": "js",
                "code": "function(data, ui){ui.description=window.UIJSON.{{route.params.entity}}.grid.description;ui.rereference=window.UIJSON.{{route.params.entity}}.grid.rereference;ui.image=window.UIJSON.{{route.params.entity}}.grid.image;ui.buttonLabel=window.UIJSON.{{route.params.entity}}.grid.buttonLabel;ui.navigateTo=window.UIJSON.{{route.params.entity}}.grid.navigateTo; ui.sortKey=window.UIJSON.{{route.params.entity}}.grid.sortKey; ui.edit=window.UIJSON.{{route.params.entity}}.grid.edit_detail;  ui.data = (data.response_data.data)}",
                "next": {
                    "success": "test-js-alert",
                    "failure": "bad-alert"
                }
            }
        ]
    },
    
    {
        "id": 8,
        "workflow": [
            {
                "id": "1",
                "type": "start",
                "next": {
                    "success": "js"
                }
            },
            {
                "id": "js",
                "type": "js",
                "code": "function(data, ui){ console.log('ui');console.log(ui); console.log('uijson');console.log(window.UIJSON.{{route.params.userdetails}}.fields); ui.formFields = window.UIJSON.{{route.params.userdetails}}.fields; ui.buttons = window.UIJSON.{{route.params.userdetails}}.buttons}",
                "next": {
                    "success": "exit"
                }
            }
        ]
    },
    {
        "id": "home",
        "workflow": [
            {
                "id": "1",
                "type": "start",
                "next": {
                    "success": "js"
                }
            },
            {
                "id": "js",
                "type": "js",
                "code": "function(data, ui){ ui.items = window.UIJSON.home.items;}",
                "next": {
                    "success": "ajax"
                }
            }
        ]
    }
]