Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.

...

Beschreibung

Vor dem Abschließen 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 sind im Feld obligatorischeFelder.

...

Klasse

Code Block
com.dooris.bpm.actionhandler.ConditionalMandatoryHandler

Parameter

The dependency is set here. E.g.

Parameter name

Default value

Description

Valid examples

condition

Name des Parameters

Standardwert

Beschreibung

Gültige Beispiele

Zustand

Hier wird die Abhängigkeit festgelegt. Zum Beispiel. condition="${variableA}"=="true"; checks if the variableA has been set. If yes, the variable in the mandatoryFields is mandatory prüft, ob die Variable A gesetzt wurde. Wenn ja, wird die Variable in der obligatorischeFelder ist verpflichtend.

  • "${variableB}">="100"

  • "${variableB}"!="${variableC}"

  • "${variableB}"=="${variableA}"

  • "(${count}+1)"=="150"

  • "${varibleA}"=="${variableB}&&100>${count}"

  • "${varibleA}"=="${variableB}||100>${count}"

mandatoryFields

Here all condition fields must be specifiedobligatorischeFelder

Hier müssen alle Bedingungsfelder angegeben werden.

ID_of_Smartform_Field,.ID_of_next_Smartform_Field,... (IMPORTANT: no blank space between WICHTIG: kein Leerzeichen zwischen "," and the und der ID!)


ExampleBeispiel:

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

...

condition

...

diesem Beispiel haben wir eine Aufgabe namens "Finanzielle Genehmigung" in einem Teil des Einkaufs-Workflows. Wir konfigurieren den Actionhandler unter diesem Knoten, um den Kommentarbereich aus dem Smartform zu erstellen obligatorisch Wenn die Entscheidung auf der Grundlage der financial_approval Parameter ist 'Nein'.

...

Wenn die Entscheidung mit "Nein" gewählt wird, muss financial_approval_comment Parameter aus dem Smartform ausgefüllt werden.

Parameter

Beispielwert

Zustand

"${financial_approval}"=="noNein"

mandatoryFieldsobligatorischeFelder

financial_approval_comment