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

jadex.bpmn.model.task.ITask Maven / Gradle / Ivy

The newest version!
package jadex.bpmn.model.task;

import jadex.bridge.IInternalAccess;
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, IInternalAccess process);
	
	/**
	 *  Cleanup in case the task is cancelled.
	 *  @return	A future to indicate when cancellation has completed.
	 */
	public IFuture cancel(IInternalAccess instance);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy