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());