protected DataType getDataType(String itemSubjectRef, Map<String, ItemDefinition> itemDefinitions, ClassLoader cl) { DataType dataType = new ObjectDataType(); if (itemDefinitions == null) { return dataType; } ItemDefinition itemDefinition = itemDefinitions.get(itemSubjectRef); if (itemDefinition != null) { String structureRef = itemDefinition.getStructureRef(); if ("java.lang.Boolean".equals(structureRef) || "Boolean".equals(structureRef)) { dataType = new BooleanDataType(); } else if ("java.lang.Integer".equals(structureRef) || "Integer".equals(structureRef)) { dataType = new IntegerDataType(); } else if ("java.lang.Float".equals(structureRef) || "Float".equals(structureRef)) { dataType = new FloatDataType(); } else if ("java.lang.String".equals(structureRef) || "String".equals(structureRef)) { dataType = new StringDataType(); } else if ("java.lang.Object".equals(structureRef) || "Object".equals(structureRef)) { dataType = new ObjectDataType(structureRef); } else { dataType = new ObjectDataType(structureRef, cl); } } return dataType; }
dataType = new IntegerDataType();
dataType = new IntegerDataType();
dataType = new IntegerDataType();
variable = new Variable(); variable.setName( "Number" ); variable.setType( new IntegerDataType() ); variables.add( variable ); process.getVariableScope().setVariables( variables );
variable = new Variable(); variable.setName( "Number" ); variable.setType( new IntegerDataType() ); variables.add( variable ); process.getVariableScope().setVariables( variables );
variable = new Variable(); variable.setName("variable2"); variable.setType(new IntegerDataType()); variable.setValue(2); variables.add(variable); ParameterDefinition parameterDefinition = new ParameterDefinitionImpl("param1", new StringDataType()); parameterDefinitions.add(parameterDefinition); parameterDefinition = new ParameterDefinitionImpl("param2", new IntegerDataType()); parameterDefinitions.add(parameterDefinition); work.setParameterDefinitions(parameterDefinitions);
protected DataType getDataType(String itemSubjectRef, Map<String, ItemDefinition> itemDefinitions, ClassLoader cl) { DataType dataType = new ObjectDataType(); if (itemDefinitions == null) { return dataType; } ItemDefinition itemDefinition = itemDefinitions.get(itemSubjectRef); if (itemDefinition != null) { String structureRef = itemDefinition.getStructureRef(); if ("java.lang.Boolean".equals(structureRef) || "Boolean".equals(structureRef)) { dataType = new BooleanDataType(); } else if ("java.lang.Integer".equals(structureRef) || "Integer".equals(structureRef)) { dataType = new IntegerDataType(); } else if ("java.lang.Float".equals(structureRef) || "Float".equals(structureRef)) { dataType = new FloatDataType(); } else if ("java.lang.String".equals(structureRef) || "String".equals(structureRef)) { dataType = new StringDataType(); } else if ("java.lang.Object".equals(structureRef) || "Object".equals(structureRef)) { dataType = new ObjectDataType(structureRef); } else { dataType = new ObjectDataType(structureRef, cl); } } return dataType; }
dataType = new IntegerDataType();
dataType = new IntegerDataType();
dataType = new IntegerDataType();