public Map<String, String> getInMappings() { Map<String,String> in = new HashMap<String, String>(); for(DataAssociation a : inMapping) { if(a.getSources().size() ==1 && (a.getAssignments() == null || a.getAssignments().size()==0) && a.getTransformation() == null) { in.put(a.getSources().get(0), a.getTarget()); } } return in; }
public Map<String, String> getOutMappings() { Map<String,String> out = new HashMap<String, String>(); for(DataAssociation a : outMapping) { if(a.getSources().size() ==1 && (a.getAssignments() == null || a.getAssignments().size()==0) && a.getTransformation() == null) { out.put(a.getSources().get(0), a.getTarget()); } } return out; }
public Map<String, String> getInMappings() { Map<String,String> in = new HashMap<String, String>(); for(DataAssociation a : inMapping) { if(a.getSources().size() ==1 && (a.getAssignments() == null || a.getAssignments().size()==0) && a.getTransformation() == null) { in.put(a.getTarget(), a.getSources().get(0)); } } return in; }
public Map<String, String> getOutMappings() { Map<String,String> out = new HashMap<String, String>(); for(DataAssociation a : outMapping) { if(a.getSources().size() ==1 && (a.getAssignments() == null || a.getAssignments().size()==0) && a.getTransformation() == null) { out.put(a.getSources().get(0), a.getTarget()); } } return out; }
public Map<String, String> getInMappings() { Map<String,String> in = new HashMap<String, String>(); for(DataAssociation a : inMapping) { if(a.getSources().size() ==1 && (a.getAssignments() == null || a.getAssignments().size()==0) && a.getTransformation() == null) { in.put(a.getTarget(), a.getSources().get(0)); } } return in; }
public Map<String, String> getInMappings() { Map<String,String> in = new HashMap<String, String>(); for(DataAssociation a : inMapping) { if(a.getSources().size() ==1 && (a.getAssignments() == null || a.getAssignments().size()==0) && a.getTransformation() == null) { in.put(a.getTarget(), a.getSources().get(0)); } } return in; }
public Map<String, String> getOutMappings() { Map<String,String> out = new HashMap<String, String>(); for(DataAssociation a : outMapping) { if(a.getSources().size() ==1 && (a.getAssignments() == null || a.getAssignments().size()==0) && a.getTransformation() == null) { out.put(a.getSources().get(0), a.getTarget()); } } return out; }
public Map<String, String> getOutMappings() { Map<String,String> out = new HashMap<String, String>(); for(DataAssociation assoc : outMapping) { if( assoc.getSources().size() == 1 && (assoc.getAssignments() == null || assoc.getAssignments().size() == 0) && assoc.getTransformation() == null ) { out.put(assoc.getSources().get(0), assoc.getTarget()); } } return out; }
public void validateWorkItemResultVariable(String processName, List<DataAssociation> outputs, WorkItem workItem) { // in case work item results are skip validation as there is no notion of mandatory data outputs if (!variableStrictEnabled || workItem.getResults().isEmpty()) { return; } List<String> outputNames = new ArrayList<String>(); for (DataAssociation association : outputs) { if (association.getSources() != null) { outputNames.add(association.getSources().get(0)); } if (association.getAssignments() != null) { for (Iterator<Assignment> it = association.getAssignments().iterator(); it.hasNext();) { outputNames.add(it.next().getFrom()); } } } for (String outputName : workItem.getResults().keySet()) { if (!outputNames.contains(outputName) && !defaultOutputVariables.contains(outputName)) { throw new IllegalArgumentException("Data output '" + outputName + "' is not defined in process '" + processName + "' for task '" + workItem.getParameter("NodeName") + "'"); } } }
} else if (association.getAssignments() == null || association.getAssignments().isEmpty()) { Object parameterValue = null; VariableScopeInstance variableScopeInstance = (VariableScopeInstance)
} else if (association.getAssignments() == null || association.getAssignments().isEmpty()) { Object parameterValue = null; VariableScopeInstance variableScopeInstance = (VariableScopeInstance) resolveContextInstance(VariableScope.VARIABLE_SCOPE, association.getSources().get(0)); for (Iterator<Assignment> it = association.getAssignments().iterator(); it.hasNext();) { handleAssignment(it.next());
} else if (association.getAssignments() == null || association.getAssignments().isEmpty()) { VariableScopeInstance variableScopeInstance = (VariableScopeInstance) resolveContextInstance(VariableScope.VARIABLE_SCOPE, association.getTarget());
} else if (association.getAssignments() == null || association.getAssignments().isEmpty()) { VariableScopeInstance variableScopeInstance = (VariableScopeInstance) resolveContextInstance(VariableScope.VARIABLE_SCOPE, association.getTarget()); if (variableScopeInstance != null) { for (Iterator<Assignment> it = association.getAssignments().iterator(); it.hasNext();) { handleAssignment(it.next());
List<Assignment> assignments = dataAssociation.getAssignments(); if (assignments != null) { for (Assignment assignment: assignments) { List<Assignment> assignments = dataAssociation.getAssignments(); if (assignments != null) { for (Assignment assignment: assignments) {
public Map<String, String> getInMappings() { Map<String,String> in = new HashMap<String, String>(); for(DataAssociation a : inMapping) { if(a.getSources().size() ==1 && (a.getAssignments() == null || a.getAssignments().size()==0) && a.getTransformation() == null) { in.put(a.getSources().get(0), a.getTarget()); } } return in; }
public Map<String, String> getInMappings() { Map<String,String> in = new HashMap<String, String>(); for(DataAssociation a : inMapping) { if(a.getSources().size() ==1 && (a.getAssignments() == null || a.getAssignments().size()==0) && a.getTransformation() == null) { in.put(a.getTarget(), a.getSources().get(0)); } } return in; }
public Map<String, String> getInMappings() { Map<String,String> in = new HashMap<String, String>(); for(DataAssociation a : inMapping) { if(a.getSources().size() ==1 && (a.getAssignments() == null || a.getAssignments().size()==0) && a.getTransformation() == null) { in.put(a.getTarget(), a.getSources().get(0)); } } return in; }
public Map<String, String> getOutMappings() { Map<String,String> out = new HashMap<String, String>(); for(DataAssociation a : outMapping) { if(a.getSources().size() ==1 && (a.getAssignments() == null || a.getAssignments().size()==0) && a.getTransformation() == null) { out.put(a.getSources().get(0), a.getTarget()); } } return out; }
public Map<String, String> getOutMappings() { Map<String,String> out = new HashMap<String, String>(); for(DataAssociation assoc : outMapping) { if( assoc.getSources().size() == 1 && (assoc.getAssignments() == null || assoc.getAssignments().size() == 0) && assoc.getTransformation() == null ) { out.put(assoc.getSources().get(0), assoc.getTarget()); } } return out; }
public Map<String, String> getOutMappings() { Map<String,String> out = new HashMap<String, String>(); for(DataAssociation a : outMapping) { if(a.getSources().size() ==1 && (a.getAssignments() == null || a.getAssignments().size()==0) && a.getTransformation() == null) { out.put(a.getSources().get(0), a.getTarget()); } } return out; }