jadex.bpmn.testcases.pojobpmn.PrintTask Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-applications-bpmn Show documentation
Show all versions of jadex-applications-bpmn Show documentation
The Jadex bpmn applications package contains several example applications, benchmarks and testcases using bpmn workflows.
package jadex.bpmn.testcases.pojobpmn;
import jadex.bpmn.model.task.annotation.Task;
import jadex.bpmn.model.task.annotation.TaskBody;
import jadex.bpmn.model.task.annotation.TaskParameter;
/**
* Print out some text stored in variable text.
*/
@Task(description="The print task can be used for printing out a text on the console.", parameters=
@TaskParameter(name="text", clazz=String.class, direction=TaskParameter.DIRECTION_IN,
description="The text parameter should contain the text to be printed."))
public class PrintTask
{
// /** Injected argument. */
// @TaskArgument
// protected String text;
//
// /** The component. */
// @TaskComponent
// protected IInternalAccess ia;
/**
* Execute the task.
*/
@TaskBody
// public void execute(ITaskContext context, @ParameterInfo("text") String text)
public void execute(String text)
{
// System.out.println(text+" "+this.text+" "+ia);
System.out.println(text);
}
}