User Tools

Site Tools


Plugin installed incorrectly. Rename plugin directory 'swiftmail.backup' to 'swiftmail'.
en:software:tim:actionhandler:conditionalmandatoryhandler

This is an old revision of the document!


ConditionalMandatoryHandler

Description

Before completing a task, the Conditional Mandatory Handler checks if all mandatory fields, as a function of other fields, of the respective smartform are filled in. If the mandatory fields are empty, 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 “Mandatory Fields” (see Example).


Class

com.dooris.bpm.actionhandler.ConditionalMandatoryHandler



Event Type

Any

Action Name

Any

Mandatory Fields

ID_of_Smartform_Field,ID_of_next_Smartform_Field,… (IMPORTANT: no whitespace between “,” and the ID!)

Parameter

condition

the dependence is set here. E.g. condition=“${variableA}==“true”; checks if the variableA has been set. If yes, the variable in the Mandatory Field is mandatory.
Examples:
1.) condition=“${variableB}”>=“100”;
2.) condition=“${variableB}”!=“${variableC}”;
3.) condition=“${variableB}”==“${variableA}”;
4.) condition=”(${count}+1)“==“150”;
5.) condition=“${varibleA}”==“${variableB}&&100>${count}”;
6.) condition=“${varibleA}”==“${variableB}||100>${count}”;

Example

en/software/tim/actionhandler/conditionalmandatoryhandler.1446040895.txt.gz · Last modified: 2021/07/01 09:54 (external edit)