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

jadex.bpmn.testcases.pojobpmn.MultiResultsTask 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;

/**
 * 
 */
// todo: allow for omitting taskparameter decl when used in task itself
@Task(description="Test if result works as return value of execute.",	
	parameters=
	{
		@TaskParameter(name="result1", clazz=String.class, direction=TaskParameter.DIRECTION_OUT),
		@TaskParameter(name="result2", clazz=String.class, direction=TaskParameter.DIRECTION_OUT),
		@TaskParameter(name="result3", clazz=String.class, direction=TaskParameter.DIRECTION_OUT)
	}
)
public class MultiResultsTask
{
	/** Result 1. */
	@TaskResult
	protected String result1;

	/** Result 2. */
	@TaskResult
	protected String result2;

	/** Result 3. */
	@TaskResult
	protected String result3;

	/**
	 *  Execute the task.
	 */
	@TaskBody
	public void execute()
	{
		result1 = "result1";
		result2 = "result2";
		result3 = "result3";
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy