Skip to content

Workflow

javier7ar edited this page Oct 11, 2017 · 4 revisions

The workflow object

The workflow object has 2 fields

  • actionLabel : String. The label used in the button that starts the TakeSampleActivity
  • steps : Array of Step Objects. The array that defines the workflow with the steps to take the sample

Example:

{
  "workflow": {
    "actionLabel" : "Take a sample",
    "steps": [
      {
        "id" : 1,
        "type" : "Information",
        "text" : "Please, follow the instructions",
        "nextStepId" : 2
      },
      {
        "id" : 2,
        "type" : "Location",
        "text" : "Please, positionate the sample on the map",
        "nextStepId" : 3,
        "helpFileName" : "locationhelp.html"
      },
      {
        "id" : 3,
        "type": "MultipleSelect",
        "title" : "Select what you see",
        "helpFileName" : "selecthelp.html",
        "options" : [
          {
            "id":1,
            "text":"Trees"
          },
          {
            "id":2,
            "text":"Trash"
          },
          {
            "id":3,
            "text":"Water"
          }
        ]
      }
    ]
  }
}

Clone this wiki locally