jadex.bpmn.runtime.handler.GatewayParallelActivityHandler 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.ArrayList;
import java.util.Collection;
import java.util.List;
import jadex.bpmn.model.MActivity;
import jadex.bpmn.model.MSequenceEdge;
import jadex.bpmn.runtime.IActivityHandler;
import jadex.bpmn.runtime.ProcessThread;
import jadex.bridge.IInternalAccess;
/**
* Handler for parallel split and join gateways.
*/
public class GatewayParallelActivityHandler extends AbstractGatewayActivityHandler implements IActivityHandler
{
/**
* Perform a split.
* @return All resulting threads after the split.
*/
protected Collection performSplit(MActivity activity, IInternalAccess instance, ProcessThread thread)
{
Collection threads = new ArrayList();
List outgoing = activity.getOutgoingSequenceEdges();
for(int i=0; i