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

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

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

origin: kiegroup/jbpm

protected Map<String, Object> evaluateParameters(RuleSetNode ruleSetNode) {
  Map<String, Object> replacements = new HashMap<String, Object>();
  for (Iterator<DataAssociation> iterator = ruleSetNode.getInAssociations().iterator(); iterator.hasNext(); ) {
    DataAssociation association = iterator.next();
    if (association.getTransformation() != null) {
origin: kiegroup/jbpm

assertThat(decisionTask.getDecision()).isEqualTo("Total Vacation Days");
assertThat(decisionTask.getInAssociations()).hasSize(0);        
assertThat(decisionTask.getOutAssociations()).hasSize(0);        
origin: kiegroup/jbpm

assertThat(decisionTask.getRuleFlowGroup()).isEqualTo("decisionName");
assertThat(decisionTask.getInAssociations()).hasSize(1);
assertThat(decisionTask.getInAssociations().get(0).getSources()).hasSize(1);
assertThat(decisionTask.getInAssociations().get(0).getSources().get(0)).isEqualTo("caseFile_invoice");
assertThat(decisionTask.getInAssociations().get(0).getTarget()).isEqualTo("toApprove");   
origin: kiegroup/jbpm

@Override
public void build(Process process, ProcessDescr processDescr, ProcessBuildContext context, Node node) {
  super.build(process, processDescr, context, node);
  WorkflowProcess wfProcess = (WorkflowProcess) process;
  Map<String, Object> parameters = new HashMap<String, Object>();
  parameters.put("imports", wfProcess.getImports());
  parameters.put("classloader", context.getConfiguration().getClassLoader());
  
  for (DataAssociation dataAssociation: ((RuleSetNode) node).getInAssociations()) {
    Transformation transformation = dataAssociation.getTransformation();
    if (transformation != null) {				
      
      DataTransformer transformer = DataTransformerRegistry.get().find(transformation.getLanguage());
      transformation.setCompiledExpression(transformer.compile(transformation.getExpression(), parameters));
      
    }
  }
  
  for (DataAssociation dataAssociation: ((RuleSetNode) node).getOutAssociations()) {
    Transformation transformation = dataAssociation.getTransformation();
    if (transformation != null) {
      
      DataTransformer transformer = DataTransformerRegistry.get().find(transformation.getLanguage());
      transformation.setCompiledExpression(transformer.compile(transformation.getExpression(), parameters));
      
    }
  }
}
origin: org.jbpm/jbpm-flow

protected Map<String, Object> evaluateParameters(RuleSetNode ruleSetNode) {
  Map<String, Object> replacements = new HashMap<String, Object>();
  for (Iterator<DataAssociation> iterator = ruleSetNode.getInAssociations().iterator(); iterator.hasNext(); ) {
    DataAssociation association = iterator.next();
    if (association.getTransformation() != null) {
origin: org.jbpm/jbpm-case-mgmt-cmmn

assertThat(decisionTask.getDecision()).isEqualTo("Total Vacation Days");
assertThat(decisionTask.getInAssociations()).hasSize(0);        
assertThat(decisionTask.getOutAssociations()).hasSize(0);        
origin: org.jbpm/jbpm-case-mgmt-cmmn

assertThat(decisionTask.getRuleFlowGroup()).isEqualTo("decisionName");
assertThat(decisionTask.getInAssociations()).hasSize(1);
assertThat(decisionTask.getInAssociations().get(0).getSources()).hasSize(1);
assertThat(decisionTask.getInAssociations().get(0).getSources().get(0)).isEqualTo("caseFile_invoice");
assertThat(decisionTask.getInAssociations().get(0).getTarget()).isEqualTo("toApprove");   
origin: org.jbpm/jbpm-flow-builder

@Override
public void build(Process process, ProcessDescr processDescr, ProcessBuildContext context, Node node) {
  super.build(process, processDescr, context, node);
  WorkflowProcess wfProcess = (WorkflowProcess) process;
  Map<String, Object> parameters = new HashMap<String, Object>();
  parameters.put("imports", wfProcess.getImports());
  parameters.put("classloader", context.getConfiguration().getClassLoader());
  
  for (DataAssociation dataAssociation: ((RuleSetNode) node).getInAssociations()) {
    Transformation transformation = dataAssociation.getTransformation();
    if (transformation != null) {				
      
      DataTransformer transformer = DataTransformerRegistry.get().find(transformation.getLanguage());
      transformation.setCompiledExpression(transformer.compile(transformation.getExpression(), parameters));
      
    }
  }
  
  for (DataAssociation dataAssociation: ((RuleSetNode) node).getOutAssociations()) {
    Transformation transformation = dataAssociation.getTransformation();
    if (transformation != null) {
      
      DataTransformer transformer = DataTransformerRegistry.get().find(transformation.getLanguage());
      transformation.setCompiledExpression(transformer.compile(transformation.getExpression(), parameters));
      
    }
  }
}
org.jbpm.workflow.core.nodeRuleSetNodegetInAssociations

Popular methods of RuleSetNode

  • getRuleFlowGroup
  • <init>
  • setRuleFlowGroup
  • 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
  • getApplicationContext (Context)
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (Timer)
  • Menu (java.awt)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Path (java.nio.file)
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JLabel (javax.swing)
  • 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