{
    "description":"Examples to demonstrate the REST API for workflow service. Note most examples rely on a test server called taskserver which has numbered tasks e.g task0, task1 etc. which rely on simple json input and respond with json",
    "Samples":{
        "Add-plan-tasks-execute": {
            "description":"Using curl create a plan, add tasks, chain them into a workflow using insert and then execute",
            "code":["nexttasks.sh"]
        },
        "plan-tasks-synch": {
            "description":"Using curl create a plan, add tasks, chain them into a workflow using synch and then execute, also list the plans",
            "code":["synch.sh"]
        },
        "periodic-plan": {
            "description":"Using curl create a plan that executes periodically every 100ms interval, add tasks, chain them into a workflow using synch and then execute, also list the plans",
            "code":["synchjob.sh"]
        },
        "plan-with-switch":{
            "description":"Create a plan with a json description of the plan(taskjson) and execute. The task json has switch statement",
            "code":["plan.json", "planwithswitch.js"]
        },
        "plan-with-if":{
            "description":"Create a plan with a json description of the plan(taskjson) and execute. The task json has if else statement",
            "code":["plan1.json", "planwithif.js"]
        },
        "planservice":{
            "description":"Create a plan with a json description of the planpathservice.json and execute. The taskjson in this uses service instead of the url",
            "code":["plan1.json", "planwithif.js"]
        }

    }
}