jadex.bpmn.runtime.task.PrintTask Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-kernel-bpmn Show documentation
Show all versions of jadex-kernel-bpmn Show documentation
The Jadex BPMN kernel provides a workflow kernel for the standardized business process modeling notation. The kernel relies on annotated BPMN diagrams, which include detailed execution information.
package jadex.bpmn.runtime.task;
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."))//,
// properties=@TaskProperty(name="external", clazz=boolean.class, initialvalue="false"))
public class PrintTask
{
/**
* Execute the task.
*/
@TaskBody
public void execute(String text)
{
System.out.println(text);
}
}
///**
// * 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 extends AbstractTask
//{
// /**
// * Execute the task.
// */
// public void doExecute(ITaskContext context, IInternalAccess instance)
// {
// String text = (String)context.getParameterValue("text");
// System.out.println(text);
// }
//
// //-------- static methods --------
//
// /**
// * Get the meta information about the agent.
// */
// public static TaskMetaInfo getMetaInfo()
// {
// String desc = "The print task can be used for printing out a text on the console.";
// ParameterMetaInfo textmi = new ParameterMetaInfo(ParameterMetaInfo.DIRECTION_IN,
// String.class, "text", null, "The text parameter should contain the text to be printed.");
//
// return new TaskMetaInfo(desc, new ParameterMetaInfo[]{textmi});
// }
//}
//
© 2015 - 2025 Weber Informatics LLC | Privacy Policy