Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 4 Next »

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

regex

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.

^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$.

^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$.

content

The tested string, present as either a variable ${Prozessvariable} or a string directly.

${emailListe}

writeNameInVariable

The process variable into which the results are written.

ersteEmail

matchAll

true

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.

false

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:

  • No labels