Tabnine Logo
RuleSetNode.removeParameter
Code IndexAdd Tabnine to your IDE (free)

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

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

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

ruleSetNode.setNamespace((String) ruleSetNode.removeParameter(NAMESPACE_PROP));
ruleSetNode.setModel((String) ruleSetNode.removeParameter(MODEL_PROP));
ruleSetNode.setDecision((String) ruleSetNode.removeParameter(DECISION_PROP));
origin: org.jbpm/jbpm-bpmn2

ruleSetNode.setNamespace((String) ruleSetNode.removeParameter(NAMESPACE_PROP));
ruleSetNode.setModel((String) ruleSetNode.removeParameter(MODEL_PROP));
ruleSetNode.setDecision((String) ruleSetNode.removeParameter(DECISION_PROP));
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));
  }
}
org.jbpm.workflow.core.nodeRuleSetNoderemoveParameter

Popular methods of RuleSetNode

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • getContentResolver (Context)
  • onCreateOptionsMenu (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JLabel (javax.swing)
  • 21 Best IntelliJ Plugins
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