Class InputJob

All Implemented Interfaces:
Serializable, Runnable, ArooaContextAware, ArooaSessionAware, Forceable, PropertyChangeNotifier, Iconic, LogEnabled, Resettable, Stateful, Stoppable

public class InputJob extends PropertiesJobBase implements Stoppable
Author:
rob
See Also:

Description

Ask for input from the user.

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.

Example

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>
  • Constructor Details

    • InputJob

      public InputJob()
  • Method Details