jadex.bdibpmn.examples.helloworld.ExceptionTask Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-applications-bdibpmn Show documentation
Show all versions of jadex-applications-bdibpmn Show documentation
The Jadex BDI-BPMN applications package contain
several example applications, benchmarks and
testcases using BDI agents that have BPMN plans.
The newest version!
package jadex.bdibpmn.examples.helloworld;
import jadex.bpmn.model.task.ITaskContext;
import jadex.bpmn.runtime.task.AbstractTask;
import jadex.bridge.IInternalAccess;
/**
* Simple test task that throws an exception.
*/
public class ExceptionTask extends AbstractTask
{
public void doExecute(ITaskContext context, IInternalAccess instance)
{
throw new RuntimeException("Exception occurred.");
}
}