congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
NodeInstance.cancel
Code IndexAdd Tabnine to your IDE (free)

How to use
cancel
method
in
org.jbpm.workflow.instance.NodeInstance

Best Java code snippets using org.jbpm.workflow.instance.NodeInstance.cancel (Showing top 14 results out of 315)

origin: kiegroup/jbpm

public void cancel() {
  while (!nodeInstances.isEmpty()) {
    NodeInstance nodeInstance = (NodeInstance) nodeInstances.get(0);
    ((org.jbpm.workflow.instance.NodeInstance) nodeInstance).cancel();
  }
  super.cancel();
}
origin: kiegroup/jbpm

public void triggerCompleted(String outType) {
  boolean cancelRemainingInstances = getCompositeNode().isCancelRemainingInstances();
  ((org.jbpm.workflow.instance.NodeInstanceContainer)getNodeInstanceContainer()).setCurrentLevel(getLevel());
  triggerCompleted(outType, cancelRemainingInstances);
  if (cancelRemainingInstances) {
    while (!nodeInstances.isEmpty()) {
      NodeInstance nodeInstance = (NodeInstance) nodeInstances.get(0);
      ((org.jbpm.workflow.instance.NodeInstance) nodeInstance).cancel();
    }
  }
}
origin: kiegroup/jbpm

public void execute(ProcessContext context) throws Exception {
  WorkflowProcessInstance pi = context.getNodeInstance().getProcessInstance();
  NodeInstance nodeInstance = findNodeByUniqueId(pi.getNodeInstances(), attachedToNodeId);
  if (nodeInstance != null) {
    ((org.jbpm.workflow.instance.NodeInstance)nodeInstance).cancel();
  }
}

origin: kiegroup/jbpm

protected org.jbpm.workflow.instance.NodeInstance followConnection(Connection connection) {
  // check for exclusive group first
  NodeInstanceContainer parent = getNodeInstanceContainer();
  if (parent instanceof ContextInstanceContainer) {
    List<ContextInstance> contextInstances = ((ContextInstanceContainer) parent).getContextInstances(ExclusiveGroup.EXCLUSIVE_GROUP);
    if (contextInstances != null) {
      for (ContextInstance contextInstance: new ArrayList<ContextInstance>(contextInstances)) {
        ExclusiveGroupInstance groupInstance = (ExclusiveGroupInstance) contextInstance;
        if (groupInstance.containsNodeInstance(this)) {
          for (NodeInstance nodeInstance: groupInstance.getNodeInstances()) {
            if (nodeInstance != this) {
              ((org.jbpm.workflow.instance.NodeInstance) nodeInstance).cancel();
            }
          }
          ((ContextInstanceContainer) parent).removeContextInstance(ExclusiveGroup.EXCLUSIVE_GROUP, contextInstance);
        }
        
      }
    }
  }
  return (org.jbpm.workflow.instance.NodeInstance)
    ((org.jbpm.workflow.instance.NodeInstanceContainer) getNodeInstanceContainer())
      .getNodeInstance(connection.getTo());
}
origin: kiegroup/jbpm

} else {
  while (!getNodeInstanceContainer().getNodeInstances().isEmpty()) {
    ((org.jbpm.workflow.instance.NodeInstance) getNodeInstanceContainer().getNodeInstances().iterator().next()).cancel();
origin: kiegroup/jbpm

NodeInstance nodeInstance = nodeInstances.get(0);
((org.jbpm.workflow.instance.NodeInstance) nodeInstance)
    .cancel();
origin: kiegroup/jbpm

Collection<NodeInstance> nodeInstances = ((WorkflowProcessInstance) nodeInstanceContainer).getNodeInstances();
for (NodeInstance nodeInstance: nodeInstances) {
  ((org.jbpm.workflow.instance.NodeInstance) nodeInstance).cancel();
origin: org.jbpm/jbpm-flow

public void cancel() {
  while (!nodeInstances.isEmpty()) {
    NodeInstance nodeInstance = (NodeInstance) nodeInstances.get(0);
    ((org.jbpm.workflow.instance.NodeInstance) nodeInstance).cancel();
  }
  super.cancel();
}
origin: org.jbpm/jbpm-flow

public void triggerCompleted(String outType) {
  boolean cancelRemainingInstances = getCompositeNode().isCancelRemainingInstances();
  ((org.jbpm.workflow.instance.NodeInstanceContainer)getNodeInstanceContainer()).setCurrentLevel(getLevel());
  triggerCompleted(outType, cancelRemainingInstances);
  if (cancelRemainingInstances) {
    while (!nodeInstances.isEmpty()) {
      NodeInstance nodeInstance = (NodeInstance) nodeInstances.get(0);
      ((org.jbpm.workflow.instance.NodeInstance) nodeInstance).cancel();
    }
  }
}
origin: org.jbpm/jbpm-flow

public void execute(ProcessContext context) throws Exception {
  WorkflowProcessInstance pi = context.getNodeInstance().getProcessInstance();
  NodeInstance nodeInstance = findNodeByUniqueId(pi.getNodeInstances(), attachedToNodeId);
  if (nodeInstance != null) {
    ((org.jbpm.workflow.instance.NodeInstance)nodeInstance).cancel();
  }
}

origin: org.jbpm/jbpm-flow

protected org.jbpm.workflow.instance.NodeInstance followConnection(Connection connection) {
  // check for exclusive group first
  NodeInstanceContainer parent = getNodeInstanceContainer();
  if (parent instanceof ContextInstanceContainer) {
    List<ContextInstance> contextInstances = ((ContextInstanceContainer) parent).getContextInstances(ExclusiveGroup.EXCLUSIVE_GROUP);
    if (contextInstances != null) {
      for (ContextInstance contextInstance: new ArrayList<ContextInstance>(contextInstances)) {
        ExclusiveGroupInstance groupInstance = (ExclusiveGroupInstance) contextInstance;
        if (groupInstance.containsNodeInstance(this)) {
          for (NodeInstance nodeInstance: groupInstance.getNodeInstances()) {
            if (nodeInstance != this) {
              ((org.jbpm.workflow.instance.NodeInstance) nodeInstance).cancel();
            }
          }
          ((ContextInstanceContainer) parent).removeContextInstance(ExclusiveGroup.EXCLUSIVE_GROUP, contextInstance);
        }
        
      }
    }
  }
  return (org.jbpm.workflow.instance.NodeInstance)
    ((org.jbpm.workflow.instance.NodeInstanceContainer) getNodeInstanceContainer())
      .getNodeInstance(connection.getTo());
}
origin: org.jbpm/jbpm-flow

} else {
  while (!getNodeInstanceContainer().getNodeInstances().isEmpty()) {
    ((org.jbpm.workflow.instance.NodeInstance) getNodeInstanceContainer().getNodeInstances().iterator().next()).cancel();
origin: org.jbpm/jbpm-flow

NodeInstance nodeInstance = nodeInstances.get(0);
((org.jbpm.workflow.instance.NodeInstance) nodeInstance)
    .cancel();
origin: org.jbpm/jbpm-flow

Collection<NodeInstance> nodeInstances = ((WorkflowProcessInstance) nodeInstanceContainer).getNodeInstances();
for (NodeInstance nodeInstance: nodeInstances) {
  ((org.jbpm.workflow.instance.NodeInstance) nodeInstance).cancel();
org.jbpm.workflow.instanceNodeInstancecancel

Popular methods of NodeInstance

  • getId
  • getSlaCompliance
  • getNode
  • resolveContextInstance
  • trigger
  • getLevel
  • getNodeId
  • getNodeInstanceContainer
  • getNodeName
  • getProcessInstance
  • getSlaDueDate
  • getSlaTimerId
  • getSlaDueDate,
  • getSlaTimerId,
  • setDynamicParameters

Popular in Java

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • setRequestProperty (URLConnection)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JButton (javax.swing)
  • JLabel (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now