@Override
  public void getTask(Integer idAppUser, Integer idWorkflowInstance) {

    GetTaskParameter param = new GetTaskParameter();
    param.idAppUser = idAppUser;
    param.idWorkflowInstance = idWorkflowInstance;
    param.showCompleted = true;
    param.getSubtasks = true;

    param.getProjectPhases = false;

    taskDetailsInteraction.getTask(param, this);
  }
  @Override
  public void changeState(Integer idAppUser, UserTaskBean userTaskBean) {
    SubmitActionParam submitParams = new SubmitActionParam();
    submitParams.idWorkflowInstance = userTaskBean.idWorkflowInstance;
    if (userTaskBean.isOpen) submitParams.actionName = "_action1";
    else {
      submitParams.actionName = "_action0";
    }
    submitParams.idWorkflowForm = userTaskBean.idTask;
    submitParams.idAppUser = idAppUser;
    submitParams.returnWorkflowBean = false;

    taskDetailsInteraction.changeState(submitParams, this);
  }
 @Override
 public void updateDueDate(Integer idAppUser, Integer idTask, Date date) {
   taskDetailsInteraction.updateDueDate(idTask, date, idAppUser, this);
 }
 @Override
 public void removeDueDate(Integer idAppUser, Integer idTask) {
   taskDetailsInteraction.removeDueDate(idTask, idAppUser, this);
 }
 @Override
 public void updateImportance(Integer idAppUser, Integer idUserTask, Integer importance) {
   taskDetailsInteraction.updateImportance(idAppUser, idUserTask, importance, this);
 }
 @Override
 public void deleteTask(int userId, int idWorkflowInstance) {
   taskDetailsInteraction.deleteTask(userId, idWorkflowInstance, this);
 }
 @Override
 public void getWorkflowForm(Integer idAppUser, Integer idWorkflowInstance) {
   taskDetailsInteraction.getWorkflowForm(idAppUser, idWorkflowInstance, this);
 }
 @Override
 public void publishTaskComment(GenericCommentBean genericCommentBean) {
   taskDetailsInteraction.publishTaskComment(genericCommentBean, this);
 }
 @Override
 public void postTaskComment(PostCommentParam postCommentParam) {
   taskDetailsInteraction.postTaskComment(postCommentParam, this);
 }