Package org.jbpm.ui.validation

Examples of org.jbpm.ui.validation.FormatMapping


                return new ArrayList<String>(variableNames.keySet());
            }
            List<String> result = new ArrayList<String>();
            for (String varName : variableNames.keySet()) {
                String varType = variableNames.get(varName);
                FormatMapping mapping = FormatMappingParser.getFormatMappings().get(varType);
                if (mapping == null || formatFilters.contains(mapping.getName())) {
                    result.add(varName);
                }
            }
            return result;
        }
View Full Code Here


              }
          } else {
            // swimlane
                varFormat = DefaultFormat.class.getName();
          }
            FormatMapping formatMapping = FormatMappingParser.getFormatMappings().get(varFormat);
            Collection<ValidatorDefinition> defs;
            if (formatMapping != null) {
                defs = ValidationUtil.getFieldValidatorDefinitions(formatMapping.getName());
            } else {
                defs = new HashSet<ValidatorDefinition>();
            }
            validatorsTableViewer.setInput(defs);
        }
View Full Code Here

      }
        }
    }
   
    protected boolean isCompatibleTypes(String processVarFormat, String subProcessVarFormat) {
        FormatMapping mapping1 = FormatMappingParser.getFormatMappings().get(processVarFormat);
        String processVarType = mapping1 != null ? mapping1.getJavaType() : Object.class.getName();
        FormatMapping mapping2 = FormatMappingParser.getFormatMappings().get(subProcessVarFormat);
        String subProcessVarType = mapping2 != null ? mapping2.getJavaType() : Object.class.getName();
        return processVarType.equals(subProcessVarType);
    }
View Full Code Here

TOP

Related Classes of org.jbpm.ui.validation.FormatMapping

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.