ReturnRegexHandler
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 |
|
| Â | The process variable into which the results are written. |
|
|
| Boolean( If it is set to |
|
Â
Example:
In this example a process model with only one task is needed. At process instance start a text which contains email adresses will be inserted into a textfield the Form. After instance start, only the email addresses from the text should be displayed in a second input field.
Process model:
The ReturnRegexHandler is implemented on the task ‘Return Regex’ with the following parameters and values:
Parameter | Wert |
---|---|
|
|
|
|
|
|
Â
Furthermore, a form is needed with an input field for the text and an output field for the result from the ReturnRegexHandler.
After publishing the process, it can be started after entering a text containing email addresses into the first input field.
After process start, the Form can be viewed in "Started process instances" and the e-mail addresses from the text above are displayed in the 2nd input field.
© TIM Solutions GmbH | AGB | Datenschutz | Impressum