Description
This handler returns the results of a regular expression as a string.
Class
com.dooris.bpm.actionhandler.ReturnRegexHandler
Parameter
Parameter name | Default value | Description | Valid examples |
---|---|---|---|
| This parameter is used to set the regular expressions. The following Regex example can be used to extract a valid e-mail from an arbitrary text.
|
| |
| The tested string, present as either a variable ${Prozessvariable} or a string directly. |
| |
| The process variable into which the results are written. |
| |
|
| Boolean(true/false). If it is set to “true”, all results are written to the process variable. If it is set to “false”, only the first result will be stored. |
|
Example:
In this example, we will use a regular expression for a cookie which we get from an interface. This cookie will be used for authentication. The response for cookie information as follows:
This response is written into a variable called payaraData
. We will implement the returnRegexHandler to extract the cookie information with following parameters: