The medium with which Oddjob asks for input will depend on how it's running. When running in Oddjob Explorer a GUI dialogue will be used. When running from the console, input from the console will be requested.
| inputHandler | The input handler to use. |
| name | A name, can be any text. |
| properties | Provide all the merged properties defined by this job. |
| requests | A list of requests for input. |
| stop | This flag is set by the stop method and should be examined by any Stoppable jobs in their processing loops. |
| Example 1 | Request lots of input. |
| Configured By | ELEMENT |
| Access | READ_WRITE |
| Required | No. This will be set automatically by Oddjob. |
The input handler to use.
| Configured By | ATTRIBUTE |
| Access | READ_WRITE |
| Required | No. |
A name, can be any text.
| Access | READ_ONLY |
| Required | Read Only. |
Provide all the merged properties defined by this job.
| Configured By | ELEMENT |
| Access | READ_WRITE |
| Required | No, but there will be no values. |
A list of requests for input.
| Access | READ_ONLY |
| Required | Read Only. |
This flag is set by the stop method and should be examined by any Stoppable jobs in their processing loops.
Request lots of input.
<oddjob>
<job>
<sequential>
<jobs>
<input>
<requests>
<input-file prompt="Install Directory" default="/home/oddjob/foo" property="config.install"/>
<input-text prompt="System" default="Development" property="config.system"/>
<input-text prompt="Username" property="config.username"/>
<input-password prompt="Password" property="config.password"/>
<input-confirm prompt="Agree To Licence" default="false" property="config.agree"/>
</requests>
</input>
<check value="${config.agree}" eq="true"/>
<echo>Password for ${config.username} is ${config.password}</echo>
<input>
<requests>
<input-message>Logging On to ${config.system} Now!</input-message>
</requests>
</input>
</jobs>
</sequential>
</job>
</oddjob>