cancel
Showing results for 
Search instead for 
Did you mean: 

Nuxeo Mobile - how to configure a task form ?

adam_bo_
Star Contributor
Star Contributor

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 ?

2 REPLIES 2

ThibArg_
Star Contributor
Star Contributor

[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"
        }
      ]
    }
  ]
}

It works great, What types are available for lists like approvers ?

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.