public class HelloWorld
extends java.lang.Object
implements org.soafaces.bundle.workflow.Tasklet
Hello world (part 3) example Tasklet. This is a slightly more complex implementation than the part 2 example. It expands on the part 2 version buy including a simple Customzier to edit the input JavaBean
In this example the input JavaBean property, personName
can be edited directly by the Customizer. The Customizer also
persists any changes made to the input JavaBean.
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.
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.