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

How to use
setRuleFlowGroup
method
in
org.jbpm.workflow.core.node.RuleSetNode

Best Java code snippets using org.jbpm.workflow.core.node.RuleSetNode.setRuleFlowGroup (Showing top 11 results out of 315)

origin: kiegroup/jbpm

public RuleSetNodeFactory ruleFlowGroup(String ruleFlowGroup) {
  getRuleSetNode().setRuleFlowGroup(ruleFlowGroup);
  return this;
}

origin: kiegroup/jbpm

public void handleNode(final Node node, final Element element, final String uri,
    final String localName, final ExtensibleXmlParser parser)
    throws SAXException {
  super.handleNode(node, element, uri, localName, parser);
  RuleSetNode ruleSetNode = (RuleSetNode) node;
  String ruleFlowGroup = element.getAttribute("ruleFlowGroup");
  if (ruleFlowGroup != null && ruleFlowGroup.length() > 0) {
    ruleSetNode.setRuleFlowGroup(ruleFlowGroup);
  }
}
origin: kiegroup/jbpm

protected void handleNode(final Node node,
             final Element element,
             final String uri,
             final String localName,
             final ExtensibleXmlParser parser) throws SAXException {
  super.handleNode(node, element, uri, localName, parser);
  String decisionRef = element.getAttribute("decisionRef");
  if (decisionRef == null) {
    throw new IllegalArgumentException("Decision information is mandatory");
  }
  RuleSetNode ruleSetNode = (RuleSetNode) node;
  ruleSetNode.setRuleFlowGroup(decisionRef);
  ruleSetNode.setLanguage(RuleSetNode.DRL_LANG);
  ruleSetNode.setNamespace((String) ruleSetNode.removeParameter(NAMESPACE_PROP));
  ruleSetNode.setModel((String) ruleSetNode.removeParameter(MODEL_PROP));
  ruleSetNode.setDecision((String) ruleSetNode.removeParameter(DECISION_PROP));
  Map<String, String> inputs = new HashMap<>();
  Map<String, String> outputs = new HashMap<>();
  Map<String, String> inputTypes = new HashMap<>();
  Map<String, String> outputTypes = new HashMap<>();
  loadDataInputsAndOutputs(element, inputs, outputs, inputTypes, outputTypes, parser);
  ruleSetNode.setMetaData("DataInputs", inputTypes);
  ruleSetNode.setMetaData("DataOutputs", outputTypes);
  for (Entry<String, String> entry : inputs.entrySet()) {
    ruleSetNode.addInAssociation(new DataAssociation(entry.getValue(), entry.getKey(), Collections.emptyList(), null));
  }
  for (Entry<String, String> entry : outputs.entrySet()) {
    ruleSetNode.addOutAssociation(new DataAssociation(entry.getKey(), entry.getValue(), Collections.emptyList(), null));
  }
}
origin: kiegroup/jbpm

String ruleFlowGroup = element.getAttribute("ruleFlowGroup");
if (ruleFlowGroup != null) {
  ruleSetNode.setRuleFlowGroup(ruleFlowGroup);
origin: kiegroup/jbpm

private void postProcessNodes(RuleFlowProcess process, NodeContainer container, ProcessBuildData buildData, ExtensibleXmlParser parser) {
  for (Node node : container.getNodes()) {
    if (node instanceof SubProcessNode) {
      Map<String, String> processes = (Map<String, String>) buildData.getMetaData("ProcessElements");
      if (processes != null) {
        SubProcessNode subprocessNode = (SubProcessNode) node;
        subprocessNode.setProcessId(processes.getOrDefault(subprocessNode.getProcessId(), subprocessNode.getProcessId()));    
      }
    } else if (node instanceof RuleSetNode) {
      Map<String, Decision> decisions = (Map<String, Decision>) buildData.getMetaData("DecisionElements");
      RuleSetNode ruleSetNode = (RuleSetNode) node;
      if (decisions != null && decisions.containsKey(ruleSetNode.getRuleFlowGroup())) {
        Decision decision = decisions.get(ruleSetNode.getRuleFlowGroup());
        ruleSetNode.setRuleFlowGroup(null);
        ruleSetNode.setLanguage(RuleSetNode.DMN_LANG);
        ruleSetNode.setNamespace((String) parser.getNamespaceURI(decision.getNamespace()));
        ruleSetNode.setModel(decision.getModel());
        ruleSetNode.setDecision(decision.getDecision());
      }
    }
    if (node instanceof NodeContainer) {                
      postProcessNodes(process, (NodeContainer) node, buildData, parser);
    }
  }
}
origin: kiegroup/jbpm

ruleSetNode.setMetaData("width", 3);
ruleSetNode.setMetaData("height", 4);
ruleSetNode.setRuleFlowGroup("ruleFlowGroup");
Timer timer = new Timer();
timer.setDelay("100");
origin: org.jbpm/jbpm-flow-builder

public void handleNode(final Node node, final Element element, final String uri,
    final String localName, final ExtensibleXmlParser parser)
    throws SAXException {
  super.handleNode(node, element, uri, localName, parser);
  RuleSetNode ruleSetNode = (RuleSetNode) node;
  String ruleFlowGroup = element.getAttribute("ruleFlowGroup");
  if (ruleFlowGroup != null && ruleFlowGroup.length() > 0) {
    ruleSetNode.setRuleFlowGroup(ruleFlowGroup);
  }
}
origin: org.jbpm/jbpm-flow

public RuleSetNodeFactory ruleFlowGroup(String ruleFlowGroup) {
  getRuleSetNode().setRuleFlowGroup(ruleFlowGroup);
  return this;
}

origin: org.jbpm/jbpm-case-mgmt-cmmn

protected void handleNode(final Node node,
             final Element element,
             final String uri,
             final String localName,
             final ExtensibleXmlParser parser) throws SAXException {
  super.handleNode(node, element, uri, localName, parser);
  String decisionRef = element.getAttribute("decisionRef");
  if (decisionRef == null) {
    throw new IllegalArgumentException("Decision information is mandatory");
  }
  RuleSetNode ruleSetNode = (RuleSetNode) node;
  ruleSetNode.setRuleFlowGroup(decisionRef);
  ruleSetNode.setLanguage(RuleSetNode.DRL_LANG);
  ruleSetNode.setNamespace((String) ruleSetNode.removeParameter(NAMESPACE_PROP));
  ruleSetNode.setModel((String) ruleSetNode.removeParameter(MODEL_PROP));
  ruleSetNode.setDecision((String) ruleSetNode.removeParameter(DECISION_PROP));
  Map<String, String> inputs = new HashMap<>();
  Map<String, String> outputs = new HashMap<>();
  Map<String, String> inputTypes = new HashMap<>();
  Map<String, String> outputTypes = new HashMap<>();
  loadDataInputsAndOutputs(element, inputs, outputs, inputTypes, outputTypes, parser);
  ruleSetNode.setMetaData("DataInputs", inputTypes);
  ruleSetNode.setMetaData("DataOutputs", outputTypes);
  for (Entry<String, String> entry : inputs.entrySet()) {
    ruleSetNode.addInAssociation(new DataAssociation(entry.getValue(), entry.getKey(), Collections.emptyList(), null));
  }
  for (Entry<String, String> entry : outputs.entrySet()) {
    ruleSetNode.addOutAssociation(new DataAssociation(entry.getKey(), entry.getValue(), Collections.emptyList(), null));
  }
}
origin: org.jbpm/jbpm-bpmn2

String ruleFlowGroup = element.getAttribute("ruleFlowGroup");
if (ruleFlowGroup != null) {
  ruleSetNode.setRuleFlowGroup(ruleFlowGroup);
origin: org.jbpm/jbpm-case-mgmt-cmmn

private void postProcessNodes(RuleFlowProcess process, NodeContainer container, ProcessBuildData buildData, ExtensibleXmlParser parser) {
  for (Node node : container.getNodes()) {
    if (node instanceof SubProcessNode) {
      Map<String, String> processes = (Map<String, String>) buildData.getMetaData("ProcessElements");
      if (processes != null) {
        SubProcessNode subprocessNode = (SubProcessNode) node;
        subprocessNode.setProcessId(processes.getOrDefault(subprocessNode.getProcessId(), subprocessNode.getProcessId()));    
      }
    } else if (node instanceof RuleSetNode) {
      Map<String, Decision> decisions = (Map<String, Decision>) buildData.getMetaData("DecisionElements");
      RuleSetNode ruleSetNode = (RuleSetNode) node;
      if (decisions != null && decisions.containsKey(ruleSetNode.getRuleFlowGroup())) {
        Decision decision = decisions.get(ruleSetNode.getRuleFlowGroup());
        ruleSetNode.setRuleFlowGroup(null);
        ruleSetNode.setLanguage(RuleSetNode.DMN_LANG);
        ruleSetNode.setNamespace((String) parser.getNamespaceURI(decision.getNamespace()));
        ruleSetNode.setModel(decision.getModel());
        ruleSetNode.setDecision(decision.getDecision());
      }
    }
    if (node instanceof NodeContainer) {                
      postProcessNodes(process, (NodeContainer) node, buildData, parser);
    }
  }
}
org.jbpm.workflow.core.nodeRuleSetNodesetRuleFlowGroup

Popular methods of RuleSetNode

  • getRuleFlowGroup
  • <init>
  • getInAssociations
  • getLanguage
  • getOutAssociations
  • addInAssociation
  • addOutAssociation
  • addTimer
  • getDecision
  • getInMappings
  • getModel
  • getName
  • getModel,
  • getName,
  • getNamespace,
  • getOutMappings,
  • getParameters,
  • getTimers,
  • removeParameter,
  • setDecision,
  • setLanguage

Popular in Java

  • Updating database using SQL prepared statement
  • compareTo (BigDecimal)
  • getExternalFilesDir (Context)
  • getSystemService (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • 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
  • Runner (org.openjdk.jmh.runner)
  • Top 12 Jupyter Notebook extensions
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