<prompt>
Promps the user for input within the shell.
WARNING: this task is only suitable for Cernunnos XML executed from the command line.
| Name | XPath | Description | Reagent Type | Expected Type | Required |
|---|---|---|---|---|---|
| ATTRIBUTE_NAME | @attribute-name | Optional name under which the user's response will be registered as a request attribute. If omitted, the name 'Attributes.OBJECT' will be used. | PHRASE | java.lang.String | No |
| MESSAGE | @message | Textual description of the needed input. | PHRASE | java.lang.String | Yes |
| OPTIONS | option/@regex | Optional set of valid inputs. If not provided, any non-empty input will be accepted. | NODE_LIST | java.util.List | No |
| DEFAULT | @default | Optional default value that will be used if the user's response is empty. The value of DEFAULT does not need to appear in the set of OPTIONS. | PHRASE | java.lang.String | No |
| SUBTASKS | subtasks/* | The set of tasks that are children of this task. | NODE_LIST | java.util.List | No |
Prompts the user for input (shown below):
inpt=${Attributes.OBJECT}
Mar 30, 2008 10:35:23 PM org.danann.cernunnos.runtime.ScriptRunner run INFO: ************************************************** ** Invoking ScriptRunner.run(Task, TaskRequest) ** TaskRequest contains 1 elements ** - Attributes.ORIGIN=c:\HOME\danann\cernunnos\test.crn ************************************************** What is your favorite color? Allowable responses (must match one of these regular expressions): - red - blue - green - other Default response: yellow Response: