wfac.saveWorkflowTask(task);
}
public void saveWorkflowTask(WorkflowTask task, WorkflowProcessor processor) throws DotDataException {
saveWorkflowTask(task);
WorkflowHistory history = new WorkflowHistory();
history.setWorkflowtaskId(task.getId());
history.setActionId(processor.getAction().getId());
history.setCreationDate(new Date());
history.setMadeBy(processor.getUser().getUserId());
history.setStepId(processor.getNextStep().getId());
String comment = (UtilMethods.isSet(processor.getWorkflowMessage()))? processor.getWorkflowMessage() : "";
String nextAssignName = (UtilMethods.isSet(processor.getNextAssign()))? processor.getNextAssign().getName() : "";
try {
history.setChangeDescription(
LanguageUtil.format(processor.getUser().getLocale(), "workflow.history.description", new String[]{
processor.getUser().getFullName(),
processor.getAction().getName(),
processor.getNextStep().getName(),
nextAssignName,