if(taskInstanceImpl!=null){
taskInstanceImpl.setAssignee(Authentication.getAuthenticatedUserId());
taskInstanceImpl.end();
taskInstanceImpl.setDueDate(new Date());
taskInstanceImpl.setDraft(false);
taskInstanceImpl.setCommandId(commandId);
taskInstanceImpl.setCommandType(StringUtil.getString(taskCommandInst.getTaskCommandType()));
taskInstanceImpl.setCommandMessage(taskCommandInst.getName());