MandatoryHandler

Description

Before completing a task, the MandatoryHandler checks if all mandatory fields of the respective form are filled in.

If the mandatory fields are not filled completely, the handler prevents the task from completing. Subsequently, the user is informed to fill in the mandatory fields. The mandatory fields are specified in the field mandatoryFields.


Class

com.dooris.bpm.actionhandler.MandatoryHandler

Parameter

Parameter name

Default value

Description

Example

Parameter name

Default value

Description

Example

mandatoryFieldsMANDATORY

 

This parameter is used to set desired variable names from the related form as mandatory.

  • request1,request2

  • variablenameX

 

Example:

In this example, MandatoryHandler has been added to the ‘Fill and Submit Request’ node. Form is connected to this workflow, and desired mandatory field names from the form are set as a parameter in the actionhandler settings. The process flow will give an error when ‘Save and Complete’ is clicked without filling out the required field or fields.

Parameter name

Example

Parameter name

Example

mandatoryFields

request1,request2