Nuxeo Mobile - how to configure a task form ?

When a task is opened, there is an information that the “task form cannot be displayed right now. Try Again”. What is a structure of a JSON for this kind of layout ?

0 votes

1 answers

1222 views

ANSWER



[Documentation is being written, not ready yet) You must have a .json file that matches the task ID. It has a name property which is nuxeo-{theTaskId}, a “layout” object that contains the variables to expose.

So go to “Resources” tab, then workflow > YourWorkflow. You must have on json file per task, naming convention is nuxeo-{taskid}-layout.json. You can get the id of the task by opening the corresponding .html (if you configured it in “LAYOUTS”), or by going to Modeler and looking at the task info. Say the task ID in our example is task123. You must create the nuxeo-task123-layout.json, here is an example with a “comment” variable:

{
  "name": "nuxeo-task123",
  "layout": [
    {
      "metadata": [
        {
          "label": "My Comment",
          "field": "comment",
          "type": "textarea"
        }
      ]
    }
  ]
}
0 votes



It works great, What types are available for lists like approvers ?
09/30/2018