jadex.bpmn.runtime.handler.EventIntermediateMultipleActivityHandler 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 java.util.List;
import jadex.bpmn.model.MActivity;
import jadex.bpmn.model.MSequenceEdge;
import jadex.bpmn.runtime.ProcessThread;
import jadex.bridge.IInternalAccess;
import jadex.commons.IFilter;
/**
* Event intermediate multi handler.
*/
public class EventIntermediateMultipleActivityHandler extends DefaultActivityHandler
{
/**
* Execute an activity.
* @param activity The activity to execute.
* @param instance The process instance.
* @param thread The process thread.
*/
public void execute(final MActivity activity, final IInternalAccess instance, final ProcessThread thread)
{
// System.out.println("Executed: "+activity+", "+instance);
// Call all connected intermediate event handlers.
final List outgoing = activity.getOutgoingSequenceEdges();
if(outgoing==null)
throw new UnsupportedOperationException("Activity must have connected activities: "+activity);
// Execute all connected activities.
final IFilter