@Override
 public KVMap categoryEdit_attri(final ComponentParameter cParameter) {
   return new KVMap()
       .add(
           edit_url,
           ComponentUtils.getResourceHomePath(CategoryBean.class) + "/jsp/category_edit.jsp");
 }
  public static void doWorkitemComplete(
      final ComponentParameter cParameter, final WorkitemBean workitem) throws IOException {
    final KVMap kv = new KVMap();
    try {
      final WorkitemComplete workitemComplete = WorkitemComplete.get(workitem);

      // 绑定变量
      final IWorkflowForm workflowForm = (IWorkflowForm) workitemComplete.getWorkflowForm();
      if (workflowForm != null) {
        workflowForm.bindVariables(workitemComplete.getVariables());
      }

      final IWorkitemCompleteHandler hdl =
          (IWorkitemCompleteHandler) cParameter.getComponentHandler();
      if (!workitemComplete.isAllCompleted()) {
        hdl.complete(cParameter, workitemComplete);
      } else {
        // 是否有手动情况
        final ActivityComplete activityComplete = workitemComplete.getActivityComplete();
        final boolean transitionManual = activityComplete.isTransitionManual();
        final boolean participantManual = activityComplete.isParticipantManual();
        if (transitionManual || participantManual) {
          kv.add(
              "responseText",
              UrlForward.getResponseText(
                  cParameter,
                  ComponentUtils.getResourceHomePath(WorkitemCompleteBean.class)
                      + "/jsp/workitem_complete_route.jsp"));
          kv.add("transitionManual", transitionManual);
          kv.add("participantManual", participantManual);
        } else {
          hdl.complete(cParameter, workitemComplete);
        }
      }
    } catch (final Throwable ex) {
      kv.add("exception", AjaxRequestUtils.createException(ex));
    }
    final Writer out = cParameter.getResponseWriter();
    out.write(kv.toJSON());
    out.flush();
  }
 public static String getCssResourceHomePath(final PageParameter pParameter) {
   return ComponentUtils.getCssResourceHomePath(pParameter, SyntaxHighlighterBean.class);
 }