...
Description
Der The ActionHandler MatrixHandler kann nur in Kombination mit der Regelmatrix verwendet werden. Der Handler sucht in der Matrix nach Übereinstimmungen. Die Suchwerte werden durch die Parameter definiert.
Wenn die Suchwerte mit einer Regel übereinstimmen, werden ein oder mehrere Ergebnisse zurückgegeben. Die Auswertung erfolgt auf Basis der Regelmatrix. Für die folgenden Parameterbeispiele wird das Beispiel aus diesem Eintrag verwendet: Regelmatrix.
...
can only be used in combination with the Rules Matrix. The handler searches for matches in the matrix. The search values are defined by the parameters.
If the search values match a rule, one or more results will be returned. The evaluation takes place based on the Rules Matrix. For the following parameter examples, the example from this entry will be used: Rules Matrix.
...
Class
Code Block |
---|
com.dooris.bpm.actionhandler.MatrixHandler |
Parameter
Parameter |
---|
Description |
---|
columnValueMapping
Valid examples |
---|
|
Dieser Parameter enthält den Namen der auszuwertenden Matrix.
Entscheidung
This parameter contains the name of the matrix being evaluated. |
|
| Here the different search columns and the searched values have to be defined. The column names and values can come from process variables. They have to be declared like so: ${NAME_DER_VARIABLE}. |
The syntax is the following: |
If the search should be run for more than one value, the statement has to be repeated: |
|
|
If more than one result is expected, the statement has to be repeated. |
Name~§~Ergebnis~%~
|
Example
We have a simple example to explain the usage of this actionhandler. We have implemented this actionhandler on the 'task1' node.
...
Parameter | Description | Value |
---|---|---|
| Name of the rules matrix we have created. |
|
| Column name ‘Department’ is entered here as the search value. |
|
| Column name ‘Result’ is entered here to show the result for the search value. |
|
We have an already populated matrix under the Rules Matrix section under the administration tab as follows:
...
We have a smartform with two fields. First variable is set as department
. When the user fills out the department variable, the result field will be filled automatically via the help of the rules matrix.
...
Second variable is set as result and will be taken from the Result column according to the Department value.
...
We will start the process instance by filling out the department field.
...
After entering the department name and starting the process instance, the actionhandler will be executed.
...
You can see that handler finds the value for the IT as Result 1.
...