Nuxeo Online Services

Node General Tab

Updated: October 11, 2017 Page Information Edit on GitHub

  • Title: The title of the task, displayed in tasks lists in the user interface as well as directly on top of the task form, where user processes the task. Supports i18n.
  • NodeId: The node id is useful when you want to configure queues of tasks. This is currently limited to advanced users.
  • Directive: The directive is displayed on top of the submission form when the user processes the tasks. Supports i18n.
  • Due date expression: This is where you express what should the due date be on the task that is created by this node. It is usually set relatively to the current date (the time when the task is created), but it can also be expressed leveraging the date at which the workflow was started.
  • Assignees: You can add static assignees here, either users or groups, one per input field (click on "Add" to add more than one). You need to prefix users by "user:" like user:jack and groups by "group:" like group:validators.
  • Assignees expression: To Compute additional assignees, you can set a scripted expression (MVEL syntax) here so as to determine where to lookup the assignees of the task. You have access to some useful variables in the context, like the NodeVariables and WorkflowVariables (see Variables Available in the Automation Context for more information). A frequent pattern is to set a node variable from the input chain of the node and reference it here.
  • Create one task per assignee: If checked, there will be as many tasks created as there are assignees. This property is displayed only for the multi-task node.
  • Allow task reassignment: If set to true, the Reassign user action will be displayed on the task resolution screen and assignee will be able to reassign the task to someone else.
  • Grand permission to task assignee: Specifies the permission that will be assigned to each of the assignees on the bound document(s).
  • Mail notification: Specifies the mail template that is going to be used to generate the mail to be sent to the task assignee. If for some reasons you want to send the email to some other users, you can do it from the input chain or output chain of the node, using the Send E-Mail operation.
  • Task Document type: This is only for advanced users. It is useful to change the type of the task that is created, so as to be able to do some tasks queues that display additional metadata coming directly from the document.
  • Input operation chain: The automation chain you specify here will be executed when the workflow engine enters the node. If the node is of type Task, that means it's executed right before the task is created. The list of documents bound to the workflow instance will be the input of the chain. If there is one document, it will still be a list, with one element only.
  • Output operation chain: The automation chain you specify here will be executed just before the workflow engine leaves the node. If the node is of type Task, that means it's executed after the task created at this step is ended. The list of documents bound to the workflow instance will be the input of the chain. If there is one document, it will still be a list, with one element only.
  • Allows incoming connections: Used only by the graph editor. Check this if you want to be able to draw loops back to this node.

Getting the first document of the document list in the automation chains ran from a workflow node

As we mentioned above, the workflow engine injects a document list in the automation chain, even when there is only one document. You may have sometime a "Cannot find any valid path in operation chain" exception, because the operation you put in the chain expects one document in input and the previous operation gives a list.

You can avoid this situation, when you know you have only one document, by fetching this document first. To do so, you can use:

Execution Context > Restore input document from a script
script: This[0]

Then, for the rest of the chain, you will have only one document in input transiting from one operation to the other.

a month ago manonlumeau fix tree item index
4 years ago Solen Guitter 24
4 years ago Alain Escaffre 23
4 years ago Alain Escaffre 22
4 years ago Solen Guitter 21
4 years ago Solen Guitter 20 | Fixed screenshots
4 years ago Frédéric Vadon 19 | Exclusive Node Added
4 years ago Alain Escaffre 18
4 years ago Karl Harris 17
4 years ago Solen Guitter 16 | Added links and fixed typos
4 years ago Alain Escaffre 15
4 years ago Alain Escaffre 13
4 years ago Alain Escaffre 14
4 years ago Solen Guitter 11
4 years ago Solen Guitter 12
4 years ago Solen Guitter 10
4 years ago Solen Guitter 9
4 years ago Solen Guitter 8 | Resized screenshots
5 years ago Alain Escaffre 7
5 years ago Mariana Cedica 6
5 years ago Alain Escaffre 5
5 years ago Alain Escaffre 4
5 years ago Alain Escaffre 3
5 years ago Alain Escaffre 1
5 years ago Alain Escaffre 2 | Migrated to Confluence 4.0
History: Created by Alain Escaffre