/**
* 初始化数据变量类型
* @param rootNode
*/
private void initDataVaribaleType(JsonNode rootNode){
DataVariableConfig dataVariableConfig = ProcessEngineManagement.getDefaultProcessEngine().getProcessEngineConfiguration().getDataVariableConfig();
ArrayNode baseNodeArray = (ArrayNode)rootNode.get("propertyPackages");
JsonNode flowBase = JsonConverterUtil.getChildElementByProperty("flowbase", "name", baseNodeArray);
flowBase = flowBase.get("properties");
JsonNode dataVariableNode = JsonConverterUtil.getChildElementByProperty("process_datavariable", "id", (ArrayNode)flowBase);
JsonNode complexItemsNode = dataVariableNode.get("complexItems");
//加载数据类型
JsonNode dataTypeNode = JsonConverterUtil.getChildElementByProperty("datatype", "id",(ArrayNode)complexItemsNode);
DataVariableDataType dataVariableDataType = dataVariableConfig.getDataVariableDataType();
List<DataTypeDef> dataTypeDefs = dataVariableDataType.getDataTypeDef();
ArrayNode dataTypeArrayNode = objectMapper.createArrayNode();
for(DataTypeDef dataTypeDef :dataTypeDefs){
ObjectNode objectNode = objectMapper.createObjectNode();
objectNode.put("id",dataTypeDef.getId());
objectNode.put("title", dataTypeDef.getName());
objectNode.put("value", dataTypeDef.getId());
dataTypeArrayNode.add(objectNode);
}
((ObjectNode)dataTypeNode).put("items", dataTypeArrayNode);
//加载业务类型
JsonNode bizTypeNode = JsonConverterUtil.getChildElementByProperty("biztype", "id", (ArrayNode)complexItemsNode);
DataVariableBizTypeConfig dataVariableBizTypeConfig = dataVariableConfig.getDataVariableBizTypeConfig();
List<DataVariableBizType> bizTypes = dataVariableBizTypeConfig.getDataVariableBizType();
ArrayNode bizTypeArrayNode = objectMapper.createArrayNode();
for(DataVariableBizType dataVariableBizType : bizTypes){
ObjectNode objectNode = objectMapper.createObjectNode();
objectNode.put("id",dataVariableBizType.getTypeId());