Versions Compared

Key

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

Beschreibung

Dies ist ein einfacher ActionHandler, der zum Festlegen von Prozessvariablen verwendet wird.

...

Description

This is a simple ActionHandler used to set process variables.

...

Class

Code Block
com.dooris.bpm.actionhandler.ProcessVariableSetter

Parameter

ParameterStandardwert

Default value

BeschreibungDescription

Gültige BeispieleValid examples

name

Name des gesetzten Parameters, d.hof the parameter being set, i.e. "boolaccepted"

timeOfDispatch

value

Der Wert, den die Variable annehmen soll. Kann auch ein Platzhalter seinThe value that the variable should assume. Can also be a placeholder: ${year}_${persnr}

${SYS.NOW. tt,dd.MM.jjjj yyyy HH:mm:ss}

${expressversand}

replaceTokensInValue

trueWenn

replaceTokensInValue auf false gesetzt ist, wird der Inhalt der angegebenen Variablen zum Zeitpunkt der Erstellung nicht aufgelöstIf the replaceTokensInValue is set to be false, then the content of the given variable will not be resolved at the time of creation!

searchInJson

null

Hier wird der JSON-Pfad für einen bestimmten Teil der zurückgegebenen JSON-Datei eingegeben. (nur einfacher JSON-Pfad ist möglich, z.B. wird kein * akzeptiert)

Kann in Kombination mit DE HTTPRestHandler.

Siehe Beispiel untenherum

Die vordefinierte Variable Here the JSON path for a specific part of the returned JSON file is entered. (only basic JSON path is possible, no * is accepted for example)

Can be used in combination with HTTPRestHandler.

see example down below

The pre-defined variable ${NOW}

Mit With ${NOW}kann das aktuelle Datum in eine Variable geschrieben werden. Wenn nur , the current date can be written to a variable. If only ${SYS.NOW} aufgerufen wird, wird das Format TT is called, the format DD.MM.JJJJ zurückgegeben. Darüber hinaus wird alles, was von Einfaches Datumsformat kann bestanden werden. Zum BeispielYYYY is returned. In addition, everything supported by Simple Date Format can be passed. For example: ${NOW,dd.MM.yyyy HH:mm:ss}

...

Example

Parameter

WertValue

name

favorite_offer

value

${offers}

JSON
-Code, der in den Variablenangeboten mit dem HTTPRestManager gespeichert wurde
code that was saved in the variable offers with the HTTPRestManager
Code Block
languagejs
{
    "services": {
        "spread": 2€,
        "make": 5€,
        "deliver": 10€,
    },
    "products": [
        {
            "name": "Cranberries",
            "color": "red",
        },
        {
            "name": "Mangos",
			"color": "orange",
        },
        {
            "name": "Bananas",
            "color": "yellow",
        },
    ]
}

searchInJson

products[1].name

product[${number}].name (wenn die Variable if the variable 'number' in der SmartForm auf 1 gesetzt ist)

...

is set to 1 in the smartform)

This results in the process variable 'favorite_offer' auf 'Mangos' gesetzt wird.being set to 'Mangos'



Example:
In the example, we have a part of the process flow for IT-Hardware Request. ProcessVariableSetter actionhandler is added in the ‘forward request for approval' task node. Variable status from the smartform is entered for the parameter name. The new value of the parameter name in the smartform will be the 'forward request for approval’ which was set for the parameter value.

...


Parameter

Value

name

status

value

forward request for approval