PAK Commands – Simple Text Input
2. Examples
Due to simplicity, the descriptiveText
input parameter will be left empty for the examples. By default, it is set to „Please type in the text field to continue.“.
All example images use the Human Task representation of the Workflow Executor. |
|
|
In the first example we provided no parameters. Our result will be written under the key outputText
as "Hello World"
in this case.
We can also choose to provide some sample text for the user by setting inputText
to for example "Sample Text"
.
A list of predetermined possible solutions can be entered with the suggestiveKeyList
input. These items then are selectable over a dropdown list.
The input of the user can be restricted by a Regular Expression. The task now only accepts terms that are accepted by the Regular Expression provided by the inputTextRegex
field e.g. "^[01]+$"
would only accept words that contain only 0 and 1 as letters (e.g. binary numbers).