Search in sources :

Example 21 with TaskEntity

use of org.activiti.engine.impl.persistence.entity.TaskEntity in project Activiti by Activiti.

the class TestActivitiEntityEventTaskListener method copy.

private Task copy(Task aTask) {
    TaskEntity ent = TaskEntity.create(aTask.getCreateTime());
    ent.setId(aTask.getId());
    ent.setName(aTask.getName());
    ent.setDescription(aTask.getDescription());
    ent.setOwner(aTask.getOwner());
    ent.setDueDateWithoutCascade(aTask.getDueDate());
    ent.setAssignee(aTask.getAssignee());
    ent.setPriority(aTask.getPriority());
    return ent;
}
Also used : TaskEntity(org.activiti.engine.impl.persistence.entity.TaskEntity)

Aggregations

TaskEntity (org.activiti.engine.impl.persistence.entity.TaskEntity)21 ActivitiException (org.activiti.engine.ActivitiException)5 ActivitiObjectNotFoundException (org.activiti.engine.ActivitiObjectNotFoundException)5 ActivitiIllegalArgumentException (org.activiti.engine.ActivitiIllegalArgumentException)4 ActivitiEntityEventImpl (org.activiti.engine.delegate.event.impl.ActivitiEntityEventImpl)4 Date (java.util.Date)3 ExecutionEntity (org.activiti.engine.impl.persistence.entity.ExecutionEntity)3 Task (org.activiti.engine.task.Task)3 ObjectNode (com.fasterxml.jackson.databind.node.ObjectNode)1 HashMap (java.util.HashMap)1 List (java.util.List)1 Expression (org.activiti.engine.delegate.Expression)1 ActivitiEntityEvent (org.activiti.engine.delegate.event.ActivitiEntityEvent)1 ActivitiEntityWithVariablesEvent (org.activiti.engine.delegate.event.ActivitiEntityWithVariablesEvent)1 TaskFormData (org.activiti.engine.form.TaskFormData)1 BusinessCalendar (org.activiti.engine.impl.calendar.BusinessCalendar)1 DueDateBusinessCalendar (org.activiti.engine.impl.calendar.DueDateBusinessCalendar)1 FormEngine (org.activiti.engine.impl.form.FormEngine)1 TaskFormHandler (org.activiti.engine.impl.form.TaskFormHandler)1 CommentEntity (org.activiti.engine.impl.persistence.entity.CommentEntity)1