TSK-758 - Rename property type from TaskanaHistoryEvent to eventType

This commit is contained in:
Jose Ignacio Recuerda Cambil 2018-12-11 12:30:22 +01:00 committed by Martin Rojas Miguel Angel
parent 4bfb55cc20
commit f6f50d70b3
5 changed files with 12 additions and 8 deletions

View File

@ -13,7 +13,7 @@ public class TaskanaHistoryEvent {
protected String businessProcessId; protected String businessProcessId;
protected String parentBusinessProcessId; protected String parentBusinessProcessId;
protected String taskId; protected String taskId;
protected String type; protected String eventType;
protected Instant created; protected Instant created;
protected String userId; protected String userId;
protected String domain; protected String domain;
@ -40,6 +40,10 @@ public class TaskanaHistoryEvent {
userId = CurrentUserContext.getUserid(); userId = CurrentUserContext.getUserid();
} }
public long getId() {
return id;
}
public String getBusinessProcessId() { public String getBusinessProcessId() {
return businessProcessId; return businessProcessId;
} }
@ -65,11 +69,11 @@ public class TaskanaHistoryEvent {
} }
public String getType() { public String getType() {
return type; return eventType;
} }
public void setType(String type) { public void setType(String type) {
this.type = type; this.eventType = type;
} }
public Instant getCreated() { public Instant getCreated() {

View File

@ -9,7 +9,7 @@ public class ClaimCancelledEvent extends TaskEvent {
public ClaimCancelledEvent(Task task) { public ClaimCancelledEvent(Task task) {
super(task); super(task);
type = "TASK_CLAIM_CANCELLED"; eventType = "TASK_CLAIM_CANCELLED";
created = task.getModified(); created = task.getModified();
} }
} }

View File

@ -10,13 +10,13 @@ public class CompletedEvent extends TaskEvent {
public CompletedEvent(Task completedTask) { public CompletedEvent(Task completedTask) {
super(completedTask); super(completedTask);
type = "TASK_COMPLETED"; eventType = "TASK_COMPLETED";
created = completedTask.getCompleted(); created = completedTask.getCompleted();
} }
public CompletedEvent(TaskSummary completedTask) { public CompletedEvent(TaskSummary completedTask) {
super(completedTask); super(completedTask);
type = "TASK_COMPLETED"; eventType = "TASK_COMPLETED";
created = completedTask.getCompleted(); created = completedTask.getCompleted();
} }

View File

@ -8,7 +8,7 @@ public class CreatedEvent extends TaskEvent {
public CreatedEvent(Task task) { public CreatedEvent(Task task) {
super(task); super(task);
type = "TASK_CREATED"; eventType = "TASK_CREATED";
created = task.getCreated(); created = task.getCreated();
} }
} }

View File

@ -15,7 +15,7 @@ public class TransferredEvent extends TaskEvent {
public TransferredEvent(Task task, WorkbasketSummary oldWorkbasket, WorkbasketSummary newWorkbasket) { public TransferredEvent(Task task, WorkbasketSummary oldWorkbasket, WorkbasketSummary newWorkbasket) {
super(task); super(task);
type = "TASK_TRANSFERRED"; eventType = "TASK_TRANSFERRED";
created = task.getModified(); created = task.getModified();
this.oldValue = oldWorkbasket.getId(); this.oldValue = oldWorkbasket.getId();
this.newValue = newWorkbasket.getId(); this.newValue = newWorkbasket.getId();