Beschreibung
Vor Abschluss einer Aufgabe prüft der ConditionalMandatoryHandler, ob alle Pflichtfelder, die von anderen Feldern im entsprechenden Smartform abhängig sind, ausgefüllt sind.
Wenn die Pflichtfelder nicht vollständig ausgefüllt sind, verhindert der Handler, dass die Aufgabe abgeschlossen wird. Anschließend wird der Benutzer aufgefordert, die Pflichtfelder auszufüllen. Die Pflichtfelder werden im Feld mandatoryFields
angegeben.
...
Description
Before completing a task, the ConditionalMandatoryHandler checks if all mandatory fields that are dependent on other fields in the corresponding smartform 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
Code Block |
---|
com.dooris.bpm.actionhandler.ConditionalMandatoryHandler |
Parameter
ParameternameParameter name | StandardwertDefault value | BeschreibungDescription | Gültige BeispieleValid examples |
---|---|---|---|
| wird die Abhängigkeit gesetzt. Zum BeispielThe dependency is set here. E.g. condition="${variableA}"=="true"; prüft, ob die VariableA gesetzt wurde. Wenn ja, ist die Variable im Pflichtfeld obligatorisch checks if the variableA has been set. If yes, the variable in the |
| |
| müssen alle Konditionsfelder angegeben werdenHere all condition fields must be specified. |
|
Example:
In this example, we have a task called ‘Financial approval’ in a part of Purchasing workflow. We configure the actionhandler under this node to make the comment area from the smartform mandatory if the decision based on the financial_approval
parameter is 'No'.
...
If the decision is chosen as “no”, financial_approval_comment parameter from the smartform will be mandatory to fill it out.
Parameter | Example Value |
---|---|
| “ |
|
|