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

jadex.bpmn.testcases.pojobpmn.ResultTask 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;
import jadex.bpmn.model.task.annotation.TaskResult;

/**
 *
 */
@Task(description="Test if result works as return value of execute.",	
	parameters={@TaskParameter(name="text", clazz=String.class, direction=TaskParameter.DIRECTION_IN),
		@TaskParameter(name="result", clazz=String.class, direction=TaskParameter.DIRECTION_OUT)})
public class ResultTask
{
	/** Injected argument. */
	@TaskResult
	protected String result;

	/**
	 *  Execute the task.
	 */
	@TaskBody
	public String execute(String text)
	{
		System.out.println("in: "+text+" old result: "+result);
		return "result = "+text;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy