6.2.1. ProcForm Interface

When you declare user task outcomes or the start event node in the model editor it is possible to set a form that will be displayed to the user. The form should implement the ProcForm interface. The methods of the ProcForm interface:

  • String getComment() - returns the value that will be written to the comment field of the ProcTask object or to the startComment field of the ProcInstance if the form is displayed on a process start.
  • Map<String, Object> getFormResult() - returns a list of objects that will be added to process variables after the form commit.