Versions Compared

Key

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

...

Description

Der ActionHandler ConditionalMandatoryDocumentHandler überprüft, ob ein oder mehrere Dokumente hochgeladen wurden und ob eine Bedingung gültig ist. Es kann auch überprüft werden, ob die hochgeladenen Dateien mit einem oder mehreren angegebenen Dateinamen übereinstimmen. Wenn keine passenden Dokumente gefunden werden, wird eine Fehlermeldung angezeigt und die Aufgabe kann erst beendet werden, wenn die erforderlichen Dokumente angehängt sind.

Info

Wenn das Dokument ohne Bedingung obligatorisch sein soll, sollte dieser Handler verwendet werden:

MandatoryDocumentHandler

...

The ActionHandler ConditionalMandatoryDocumentHandler checks if one or more document(s) are uploaded and if a condition is valid. It can also check if the uploaded files do match one or more supplied file names. If no matching documents are found, an error message appears and the task can only be finished once the required document(s) are attached.

Info

If the document should be mandatory without a condition, this handler should be used:

MandatoryDocumentHandler

...

Class

Code Block
com.dooris.bpm.actionhandler.ConditionalMandatoryDocumentHandler

...

Parameter

ParameterStandardwert

Default Value

BeschreibungDescription

Gültige BeispieleValid examples

pattern

Eine Zeichenfolge, die im Dokumentnamen oder in der Beschreibung enthalten sein muss. Es können ein oder mehrere Muster eingegeben werden (mehrere Begriffe werden durch Kommas getrennt).

Wenn kein Muster angegeben ist, wird eine Überprüfung durchgeführt, um sicherzustellen, dass mindestens ein Dokument (unabhängig davon, wie es benannt ist) angehängt istA Character string, which must be present in the document name or description. One or multiple patterns may be entered (multiple terms being separated by commas).

If no pattern is given, a check is run to make sure that at least one document (regardless of how it is named) is attached!

  • PhoneNumberList

  • PhoneNumberList,docx,TravelCosts

description

trueGibt

an, ob die Beschreibung des Dokuments auch nach dem mitgelieferten Muster überprüft werden soll. Mögliche Werte hierfür sind Denotes if the description of the document should also be checked according to the supplied pattern. Possible values for this are true (include) oder or false (do not include).

false

caseSensitive

falseGibt an, ob Groß- und Kleinschreibung in Betracht gezogen werden soll. Dieser Parameter wird nur berücksichtigt, wenn ein Muster angegeben ist! Mögliche Werte hierfür sind true (Formatierung in Groß- und Kleinschreibung sind wichtig) oder false (ignorieren

Denotes if upper and lowercase formatting should be considered. This parameter is only taken into account if there is a pattern specified! Possible values for this are true (upper- and lower-case formatting are important) or false (ignore).

false

fileTypeDeklaration von Dateiendungen (durch Kommas getrennt). Überprüft, ob alle Dokumente der Dateiendung entsprechen, egal ob Groß- oder Kleinschreibung (Beispiel: angegebene fileType=pdf sind sowohl .pdf als auch .PDF gültig). Wenn nur dieser Parameter angegeben wird, ist das Hochladen von Dokumenten nicht

zwingend erforderlich. Wenn jedoch Dokumente beigefügt werden, müssen sie den Aktenendungen entsprechenDeclaration of file endings (separated by commas). Checks if all documents conform to the file ending, no matter if upper- or lower-case (example: given fileType=pdf both .pdf and .PDF are valid). If only this parameter is supplied, the uploading of documents is not mandatory. However, if documents are attached, they must conform to the file endings.

pdf, docx, pptx

enforcePattern

falseWenn auf "true" gesetzt, müssen alle angehängten Dokumente dem oben angegebenen Muster entsprechen

If set to “true”, all the attached documents must conform to the pattern specified above (Parameter 1). Wenn "false", muss nur eine Datei dem Muster entsprechen. Mögliche Werte hierfür sind "true" oder "false"If “false”, only one file must conform to the pattern. Possible values for this are “true” or “false”.

true

checkCurrentNode

falseWenn dieser Wert auf "true" gesetzt ist, werden die von diesem Handler festgelegten Einschränkungen für Dokumente überprüft, die auf diesen aktuellen Knoten hochgeladen wurden

If set to “true”, the restrictions set by this handler are checked for documents uploaded on this current node.

true

condition

Status
titlemandatory

Hier 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 das angegebene Dokument obligatorisch checks if the variableA has been set. If yes, the specified document is mandatory.

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

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

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

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

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

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

Example:

We created a simple example process for this actionhandler.

We have a smartform attached to the process which asks for the number of the requested items. When the user enters a bigger number than the threshold, for our example it will be 100, a mandatory document will be requested, and the process won't be continued until the document is uploaded.

...

The actionhandler is set here with one parameter, condition. variableX is already set in the smartform attached to the process.

...

When we enter 101 in the input field and click on the start process instance, it will give us an error which is saying the mandatory document needed to be uploaded. The process won't be started until mandatory documents are uploaded.

...

Image Added