jadex.bpmn.runtime.ITask 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;
import jadex.commons.future.IFuture;
/**
* Interface for domain specific tasks.
* The implementation of a task is annotated in BPMN using the 'class' property.
*/
public interface ITask
{
/**
* Execute the task.
* @param context The accessible values.
* @param process The process instance executing the task.
* @return To be notified, when the task has completed.
*/
public IFuture execute(ITaskContext context, BpmnInterpreter process);
// Todo: Provide cancel() method for tasks no longer required
// (e.g. when subprocess finished while task not completed)
// to allow tasks doing some cleanup.
/**
* Compensate in case the task is canceled.
* @return To be notified, when the compensation has completed.
*/
public IFuture compensate(BpmnInterpreter instance);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy