Package com.dotmarketing.portlets.workflows.struts

Examples of com.dotmarketing.portlets.workflows.struts.WorkflowTaskForm


  private void _viewWorkflowTask(ActionRequest req, ActionResponse res,
      PortletConfig config, ActionForm form, User user) throws Exception {

    WorkflowTask task = (WorkflowTask) req.getAttribute(WebKeys.WORKFLOW_TASK_EDIT);
    WorkflowTaskForm taskform = (WorkflowTaskForm) form;
    BeanUtils.copyProperties(taskform, task);
    if (task.getDueDate() != null) {
      Calendar cal = GregorianCalendar.getInstance();
      cal.setTime(task.getDueDate());
      taskform.setDueDateDay(String.valueOf(cal.get(Calendar.DATE)));
      taskform.setDueDateMonth(String.valueOf(cal.get(Calendar.MONTH)));
      taskform.setDueDateYear(String.valueOf(cal.get(Calendar.YEAR)));
    }
  }
View Full Code Here

TOP

Related Classes of com.dotmarketing.portlets.workflows.struts.WorkflowTaskForm

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.