jadex.bpmn.runtime.handler.Notifier 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.handler;
import jadex.bpmn.model.MActivity;
import jadex.bpmn.runtime.ProcessThread;
import jadex.bridge.IInternalAccess;
/**
* Notifier for initiating external notifications.
*/
public class Notifier
{
//-------- attributes --------
/** The activity. */
protected MActivity activity;
/** The instance. */
protected IInternalAccess instance;
/** The process thread. */
protected ProcessThread thread;
//-------- constructors --------
/**
* Create a notifier.
*/
public Notifier(MActivity activity, IInternalAccess instance, ProcessThread thread)
{
this.activity = activity;
this.instance = instance;
this.thread = thread;
}
//-------- methods --------
/**
* Initiate the notification.
* @param event The event.
*/
public void notify(final Object event)
{
DefaultActivityHandler.getBpmnFeature(instance).notify(activity, thread, event);
}
}