jadex.bpmn.runtime.handler.CompositeCancelable 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.future.IFuture;
/**
*
*/
public class CompositeCancelable implements ICancelable
{
protected List outgoing;
protected ProcessThread thread;
protected IInternalAccess instance;
protected ICancelable[] subcancelinfos;
/**
* Create a new CompositeCancelable.
*/
public CompositeCancelable(List outgoing, ProcessThread thread, IInternalAccess instance, ICancelable[] subcancelinfos)
{
this.outgoing = outgoing;
this.thread = thread;
this.instance = instance;
this.subcancelinfos = subcancelinfos;
}
/**
* Cancel the activity.
*/
public IFuture cancel()
{
// List outgoing = activity.getOutgoingSequenceEdges();
// Object[] waitinfos = (Object[])thread.getWaitInfo();
// if(waitinfos==null)
// System.out.println("here");
for(int i=0; i