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

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

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

origin: kiegroup/jbpm

public NodeInstanceResolverFactory(NodeInstance nodeInstance) {
  this.nodeInstance = nodeInstance;
  this.extraParameters.put("nodeInstance", nodeInstance);
  if (nodeInstance.getProcessInstance() != null) {
    this.extraParameters.put("processInstance", nodeInstance.getProcessInstance());
    this.extraParameters.put("processInstanceId", nodeInstance.getProcessInstance().getId());
    this.extraParameters.put("parentProcessInstanceId", nodeInstance.getProcessInstance().getParentProcessInstanceId());
  }
}
origin: kiegroup/jbpm

public boolean evaluate(NodeInstance instance,
            Connection connection,
            Constraint constraint) {
  Object value;
  try {
    ProcessContext context = new ProcessContext(((ProcessInstance)instance.getProcessInstance()).getKnowledgeRuntime());
    context.setNodeInstance( instance );
    value = this.evaluator.evaluate( context );
  } catch ( Exception e ) {
    throw new RuntimeException( "unable to execute ReturnValueEvaluator: ",
                  e );
  }
  if ( !(value instanceof Boolean) ) {
    throw new RuntimeException( "Constraints must return boolean values: " + value + " for expression " + constraint);
  }
  return ((Boolean) value).booleanValue();
}
origin: kiegroup/jbpm

public boolean evaluate(NodeInstance instance,
            Connection connection,
            Constraint constraint) {
  WorkflowProcessInstance processInstance = instance.getProcessInstance();
  InternalAgenda agenda = (InternalAgenda) ((ProcessInstance) processInstance).getKnowledgeRuntime().getAgenda();
  String rule = "RuleFlow-Split-" + processInstance.getProcessId() + "-" + 
    ((Node) instance.getNode()).getUniqueId() + "-" + 
    ((Node) connection.getTo()).getUniqueId() + "-" + connection.getToType();
  return agenda.isRuleActiveInRuleFlowGroup( "DROOLS_SYSTEM", rule, processInstance.getId() );
}
origin: org.jbpm/jbpm-flow

public NodeInstanceResolverFactory(NodeInstance nodeInstance) {
  this.nodeInstance = nodeInstance;
  this.extraParameters.put("nodeInstance", nodeInstance);
  if (nodeInstance.getProcessInstance() != null) {
    this.extraParameters.put("processInstance", nodeInstance.getProcessInstance());
    this.extraParameters.put("processInstanceId", nodeInstance.getProcessInstance().getId());
    this.extraParameters.put("parentProcessInstanceId", nodeInstance.getProcessInstance().getParentProcessInstanceId());
  }
}
origin: org.jbpm/jbpm-flow

public boolean evaluate(NodeInstance instance,
            Connection connection,
            Constraint constraint) {
  Object value;
  try {
    ProcessContext context = new ProcessContext(((ProcessInstance)instance.getProcessInstance()).getKnowledgeRuntime());
    context.setNodeInstance( instance );
    value = this.evaluator.evaluate( context );
  } catch ( Exception e ) {
    throw new RuntimeException( "unable to execute ReturnValueEvaluator: ",
                  e );
  }
  if ( !(value instanceof Boolean) ) {
    throw new RuntimeException( "Constraints must return boolean values: " + value + " for expression " + constraint);
  }
  return ((Boolean) value).booleanValue();
}
origin: org.jbpm/jbpm-flow

public boolean evaluate(NodeInstance instance,
            Connection connection,
            Constraint constraint) {
  WorkflowProcessInstance processInstance = instance.getProcessInstance();
  InternalAgenda agenda = (InternalAgenda) ((ProcessInstance) processInstance).getKnowledgeRuntime().getAgenda();
  String rule = "RuleFlow-Split-" + processInstance.getProcessId() + "-" + 
    ((Node) instance.getNode()).getUniqueId() + "-" + 
    ((Node) connection.getTo()).getUniqueId() + "-" + connection.getToType();
  return agenda.isRuleActiveInRuleFlowGroup( "DROOLS_SYSTEM", rule, processInstance.getId() );
}
org.jbpm.workflow.instanceNodeInstancegetProcessInstance

Popular methods of NodeInstance

  • getId
  • getSlaCompliance
  • getNode
  • resolveContextInstance
  • trigger
  • cancel
  • getLevel
  • getNodeId
  • getNodeInstanceContainer
  • getNodeName
  • 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