public class InputJob extends PropertiesJobBase
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.
<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 and Description |
|---|
InputJob() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
execute()
Execute this job.
|
InputHandler |
getInputHandler() |
InputRequest |
getRequests(int index) |
protected boolean |
isOverride()
Are the properties override properties.
|
void |
setInputHandler(InputHandler inputHandler) |
void |
setRequests(int index,
InputRequest request) |
addPropertyLookup, createPropertyLookup, doWhenDeserialized, getLookup, getProperties, onDestroy, onInitialised, onReset, setPropertiesfireDestroyedState, force, getStateChanger, hardReset, iconHelper, isStop, onStop, run, sleep, softReset, stateHandler, stopconfigure, getName, logger, logger, loggerName, save, setName, toStringaddIconListener, addPropertyChangeListener, addStateListener, configure, destroy, firePropertyChange, getArooaSession, iconForId, initialise, lastStateEvent, onConfigured, removeIconListener, removePropertyChangeListener, removeStateListener, save, setArooaContext, setArooaSessionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddStateListener, lastStateEvent, removeStateListenerprotected int execute()
SimpleJobpublic InputHandler getInputHandler()
@Inject public void setInputHandler(InputHandler inputHandler)
public InputRequest getRequests(int index)
public void setRequests(int index,
InputRequest request)
protected boolean isOverride()
PropertiesJobBaseisOverride in class PropertiesJobBase