コード例 #1
0
 private String myInstanceByType(Long typeId, boolean isEnd) {
   StringBuilder subNodes = new StringBuilder();
   List<WorkflowDefinition> definitions =
       workflowDefinitionManager.getWfDefinitionsByType(getCompanyId(), typeId);
   for (WorkflowDefinition wfd : definitions) {
     if (isEnd) {
       subNodes
           .append(
               JsTreeUtils.generateJsTreeNodeDefault(
                   "END_WFD_" + wfd.getId(),
                   "",
                   wfd.getName() + "(" + getInstanceNumByDefinition(wfd, isEnd) + ")"))
           .append(",");
     } else {
       subNodes
           .append(
               JsTreeUtils.generateJsTreeNodeDefault(
                   "ING_WFD_" + wfd.getId(),
                   "",
                   wfd.getName() + "(" + getInstanceNumByDefinition(wfd, isEnd) + ")"))
           .append(",");
     }
   }
   JsTreeUtils.removeLastComma(subNodes);
   return subNodes.toString();
 }
コード例 #2
0
 public String processDefs(Long typeId) {
   StringBuilder subNodes = new StringBuilder();
   List<WorkflowDefinition> definitions =
       workflowDefinitionManager.getWfDefinitionsByType(getCompanyId(), typeId);
   for (WorkflowDefinition wfd : definitions) {
     subNodes
         .append(JsTreeUtils.generateJsTreeNodeDefault("WFDID_" + wfd.getId(), "", wfd.getName()))
         .append(",");
   }
   JsTreeUtils.removeLastComma(subNodes);
   return subNodes.toString();
 }