/**
* 初始化处理命令类型
* @param rootNode
*/
private void initTaskCommandType(JsonNode rootNode){
ArrayNode baseNodeArray = (ArrayNode)rootNode.get("propertyPackages");
JsonNode commandInfoBase = JsonConverterUtil.getChildElementByProperty("commandinfobase", "name", baseNodeArray);
commandInfoBase = commandInfoBase.get("properties").get(0);
ArrayNode complexItemsNode =(ArrayNode)commandInfoBase.get("complexItems");
JsonNode commandType = JsonConverterUtil.getChildElementByProperty("commandtype", "id", complexItemsNode);
ArrayNode arrayNode = objectMapper.createArrayNode();
TaskCommandConfig taskCommandConfig = ProcessEngineManagement.getDefaultProcessEngine().getProcessEngineConfiguration().getTaskCommandConfig();
List<TaskCommandDef> commandDefs = taskCommandConfig.getTaskCommandDef();
for(TaskCommandDef taskCommandDef :commandDefs){
ObjectNode typeNode = objectMapper.createObjectNode();
if(StringUtil.getBoolean(taskCommandDef.getIsEnabled())&& !"system".equals(taskCommandDef.getType())){
typeNode.put("id",taskCommandDef.getId());
typeNode.put("title", taskCommandDef.getName());
typeNode.put("value", taskCommandDef.getId());
typeNode.put("refToView", "");
arrayNode.add(typeNode);
}
}
((ObjectNode)commandType).put("items", arrayNode);
}