public class HelloWorld
extends java.lang.Object
implements org.soafaces.bundle.workflow.Tasklet
Hello world (part 2) example Tasklet. This is a simple implementation of a Tasklet. It expands on the part 1 version buy having the Tasklet use an input JavaBean to store the person's name used in the hello message.
The Tasklet uses the Java Logging API to log the hello the message when the Job is run. The message includes the person's name found in the input JavaBean.
Note, that since no Customizer is used in this example the input JavaBean can't be manually edited by the user. It can only be set in the code.
HelloWorldInput
Constructor and Description |
---|
HelloWorld() |
Modifier and Type | Method and Description |
---|---|
void |
onExecute(org.soafaces.bundle.workflow.TaskletInputContext inputContext,
org.soafaces.bundle.workflow.TaskletOutputContext outputContext)
The outBean is null in this example because there is no
output JavaBean defined.
|
public void onExecute(org.soafaces.bundle.workflow.TaskletInputContext inputContext, org.soafaces.bundle.workflow.TaskletOutputContext outputContext)
onExecute
in interface org.soafaces.bundle.workflow.Tasklet
inputContext
- This context contains information related to the input state the
Tasklet is running in.outputContext
- This context contains information related to the output state the
Tasklet is running in.Copyright © Grand Logic, Inc. All Rights Reserved.