congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
MilestoneNode.getUniqueId
Code IndexAdd Tabnine to your IDE (free)

How to use
getUniqueId
method
in
org.jbpm.workflow.core.node.MilestoneNode

Best Java code snippets using org.jbpm.workflow.core.node.MilestoneNode.getUniqueId (Showing top 8 results out of 315)

origin: kiegroup/jbpm

private String createMilestoneRule(Process process,
                  MilestoneNode milestone) {
  return
    "rule \"RuleFlow-Milestone-" + process.getId() + "-" + milestone.getUniqueId() + "\" @Propagation(EAGER) \n" +
    "      ruleflow-group \"DROOLS_SYSTEM\" \n" +
    "    when \n" +
    "      " + milestone.getConstraint() + "\n" +
    "    then \n" +
    "end \n\n";
}
origin: kiegroup/jbpm

private String getActivationEventType() {
  return "RuleFlow-Milestone-" + getProcessInstance().getProcessId()
    + "-" + getMilestoneNode().getUniqueId();
}
origin: kiegroup/jbpm

public void internalTrigger(final NodeInstance from, String type) {
  super.internalTrigger(from, type);
  // if node instance was cancelled, abort
  if (getNodeInstanceContainer().getNodeInstance(getId()) == null) {
    return;
  }
  if (!org.jbpm.workflow.core.Node.CONNECTION_DEFAULT_TYPE.equals(type)) {
    throw new IllegalArgumentException(
      "A MilestoneNode only accepts default incoming connections!");
  }
  String rule = "RuleFlow-Milestone-" + getProcessInstance().getProcessId()
    + "-" + getMilestoneNode().getUniqueId();
  boolean isActive = ((InternalAgenda) getProcessInstance().getKnowledgeRuntime().getAgenda())
    .isRuleActiveInRuleFlowGroup("DROOLS_SYSTEM", rule, getProcessInstance().getId());
  if (isActive) {
    triggerCompleted();
  } else {
    addActivationListener();
  }
}

origin: kiegroup/jbpm

public void matchCreated(MatchCreatedEvent event) {
  // check whether this activation is from the DROOLS_SYSTEM agenda group
  String ruleFlowGroup = ((RuleImpl) event.getMatch().getRule()).getRuleFlowGroup();
  if ("DROOLS_SYSTEM".equals(ruleFlowGroup)) {
    // new activations of the rule associate with a milestone node
    // trigger node instances of that milestone node
    String ruleName = event.getMatch().getRule().getName();
    String milestoneName = "RuleFlow-Milestone-" + getProcessInstance().getProcessId() + "-" + getMilestoneNode().getUniqueId();
    if (milestoneName.equals(ruleName) && checkProcessInstance((Activation) event.getMatch()) && checkDeclarationMatch(event.getMatch(), getMilestoneNode().getMatchVariable())) {
      
        synchronized(getProcessInstance()) {
          removeEventListeners();
          triggerCompleted();
        }
      
    }
  }
}
origin: org.jbpm/jbpm-flow-builder

private String createMilestoneRule(Process process,
                  MilestoneNode milestone) {
  return
    "rule \"RuleFlow-Milestone-" + process.getId() + "-" + milestone.getUniqueId() + "\" @Propagation(EAGER) \n" +
    "      ruleflow-group \"DROOLS_SYSTEM\" \n" +
    "    when \n" +
    "      " + milestone.getConstraint() + "\n" +
    "    then \n" +
    "end \n\n";
}
origin: org.jbpm/jbpm-flow

private String getActivationEventType() {
  return "RuleFlow-Milestone-" + getProcessInstance().getProcessId()
    + "-" + getMilestoneNode().getUniqueId();
}
origin: org.jbpm/jbpm-flow

public void internalTrigger(final NodeInstance from, String type) {
  super.internalTrigger(from, type);
  // if node instance was cancelled, abort
  if (getNodeInstanceContainer().getNodeInstance(getId()) == null) {
    return;
  }
  if (!org.jbpm.workflow.core.Node.CONNECTION_DEFAULT_TYPE.equals(type)) {
    throw new IllegalArgumentException(
      "A MilestoneNode only accepts default incoming connections!");
  }
  String rule = "RuleFlow-Milestone-" + getProcessInstance().getProcessId()
    + "-" + getMilestoneNode().getUniqueId();
  boolean isActive = ((InternalAgenda) getProcessInstance().getKnowledgeRuntime().getAgenda())
    .isRuleActiveInRuleFlowGroup("DROOLS_SYSTEM", rule, getProcessInstance().getId());
  if (isActive) {
    triggerCompleted();
  } else {
    addActivationListener();
  }
}

origin: org.jbpm/jbpm-flow

public void matchCreated(MatchCreatedEvent event) {
  // check whether this activation is from the DROOLS_SYSTEM agenda group
  String ruleFlowGroup = ((RuleImpl) event.getMatch().getRule()).getRuleFlowGroup();
  if ("DROOLS_SYSTEM".equals(ruleFlowGroup)) {
    // new activations of the rule associate with a milestone node
    // trigger node instances of that milestone node
    String ruleName = event.getMatch().getRule().getName();
    String milestoneName = "RuleFlow-Milestone-" + getProcessInstance().getProcessId() + "-" + getMilestoneNode().getUniqueId();
    if (milestoneName.equals(ruleName) && checkProcessInstance((Activation) event.getMatch()) && checkDeclarationMatch(event.getMatch(), getMilestoneNode().getMatchVariable())) {
      
        synchronized(getProcessInstance()) {
          removeEventListeners();
          triggerCompleted();
        }
      
    }
  }
}
org.jbpm.workflow.core.nodeMilestoneNodegetUniqueId

Popular methods of MilestoneNode

  • <init>
  • setConstraint
  • getConstraint
  • setName
  • addTimer
  • getActions
  • getMetaData
  • getTimers
  • setActions
  • setId
  • setMetaData
  • containsActions
  • setMetaData,
  • containsActions,
  • getActionTypes,
  • getFrom,
  • getId,
  • getMatchVariable,
  • getName,
  • getTo,
  • setMatchVariable

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSystemService (Context)
  • getContentResolver (Context)
  • addToBackStack (FragmentTransaction)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Collectors (java.util.stream)
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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