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

jadex.bpmn.examples.dataflow.B 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.examples.dataflow;

import jadex.bpmn.model.task.ITaskContext;
import jadex.bpmn.model.task.annotation.Task;
import jadex.bpmn.model.task.annotation.TaskParameter;
import jadex.bpmn.runtime.task.AbstractTask;
import jadex.bridge.IInternalAccess;

/**
 *  Print out some text stored in variable text.
 */
@Task(parameters=
{
	@TaskParameter(name="a", clazz=String.class, direction=TaskParameter.DIRECTION_IN),
	@TaskParameter(name="b", clazz=String.class, direction=TaskParameter.DIRECTION_OUT),
})
public class B extends AbstractTask
{
	/**
	 *  Execute the task.
	 */
	public void doExecute(ITaskContext context, IInternalAccess instance)
	{
		String a = (String)context.getParameterValue("a");
		
		context.setParameterValue("b", a);
		
		System.out.println("got param values: "+a);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy