Tabnine Logo
MilestoneNode.getConstraint
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.jbpm.workflow.core.node.MilestoneNode.getConstraint (Showing top 10 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

assertThat(milestone.getConstraint()).isEqualTo("org.kie.api.runtime.process.CaseData(data.get(\"shipped\") !=null)");
assertThat(milestone.getMetaData("customAutoStart")).isEqualTo("true");
origin: kiegroup/jbpm

public void writeNode(Node node, StringBuilder xmlDump, boolean includeMeta) {
  MilestoneNode milestoneNode = (MilestoneNode) node;
  writeNode("milestone", milestoneNode, xmlDump, includeMeta);
  String constraint = milestoneNode.getConstraint();
  if (constraint != null || milestoneNode.getTimers() != null || milestoneNode.containsActions()) {
    xmlDump.append(">\n");
    if (includeMeta) {
      writeMetaData(milestoneNode, xmlDump);
    }
    if (constraint != null) {
      xmlDump.append("      <constraint type=\"rule\" dialect=\"mvel\" >"
          + XmlDumper.replaceIllegalChars(constraint.trim()) + "</constraint>" + EOL);
    }
    for (String eventType: milestoneNode.getActionTypes()) {
      writeActions(eventType, milestoneNode.getActions(eventType), xmlDump);
    }
    writeTimers(milestoneNode.getTimers(), xmlDump);
    endNode("milestone", xmlDump);
  } else {
    endNode(xmlDump);
  }
}
origin: kiegroup/jbpm

assertThat(humanTaskTwo.getConstraint()).isEqualTo("org.kie.api.runtime.process.CaseData(data.get(\"shipped\") !=null)");
origin: kiegroup/jbpm

          "Milestone has no outgoing connection.");
if (milestone.getConstraint() == null) {
  addErrorMessage(process,
          node,
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-builder

public void writeNode(Node node, StringBuilder xmlDump, boolean includeMeta) {
  MilestoneNode milestoneNode = (MilestoneNode) node;
  writeNode("milestone", milestoneNode, xmlDump, includeMeta);
  String constraint = milestoneNode.getConstraint();
  if (constraint != null || milestoneNode.getTimers() != null || milestoneNode.containsActions()) {
    xmlDump.append(">\n");
    if (includeMeta) {
      writeMetaData(milestoneNode, xmlDump);
    }
    if (constraint != null) {
      xmlDump.append("      <constraint type=\"rule\" dialect=\"mvel\" >"
          + XmlDumper.replaceIllegalChars(constraint.trim()) + "</constraint>" + EOL);
    }
    for (String eventType: milestoneNode.getActionTypes()) {
      writeActions(eventType, milestoneNode.getActions(eventType), xmlDump);
    }
    writeTimers(milestoneNode.getTimers(), xmlDump);
    endNode("milestone", xmlDump);
  } else {
    endNode(xmlDump);
  }
}
origin: org.jbpm/jbpm-case-mgmt-cmmn

assertThat(milestone.getConstraint()).isEqualTo("org.kie.api.runtime.process.CaseData(data.get(\"shipped\") !=null)");
assertThat(milestone.getMetaData("customAutoStart")).isEqualTo("true");
origin: org.jbpm/jbpm-case-mgmt-cmmn

assertThat(humanTaskTwo.getConstraint()).isEqualTo("org.kie.api.runtime.process.CaseData(data.get(\"shipped\") !=null)");
origin: org.jbpm/jbpm-flow

          "Milestone has no outgoing connection.");
if (milestone.getConstraint() == null) {
  addErrorMessage(process,
          node,
org.jbpm.workflow.core.nodeMilestoneNodegetConstraint

Popular methods of MilestoneNode

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

Popular in Java

  • Start an intent from android
  • findViewById (Activity)
  • compareTo (BigDecimal)
  • getSharedPreferences (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • 14 Best Plugins for Eclipse
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