All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jadex.bpmn.testcases.pojobpmn.PrintTask Maven / Gradle / Ivy

Go to download

The Jadex bpmn applications package contains several example applications, benchmarks and testcases using bpmn workflows.

There is a newer version: 4.0.267
Show newest version
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);
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy