TSK-758 - Rename property type from TaskanaHistoryEvent to eventType
This commit is contained in:
parent
4bfb55cc20
commit
f6f50d70b3
|
@ -13,7 +13,7 @@ public class TaskanaHistoryEvent {
|
|||
protected String businessProcessId;
|
||||
protected String parentBusinessProcessId;
|
||||
protected String taskId;
|
||||
protected String type;
|
||||
protected String eventType;
|
||||
protected Instant created;
|
||||
protected String userId;
|
||||
protected String domain;
|
||||
|
@ -40,6 +40,10 @@ public class TaskanaHistoryEvent {
|
|||
userId = CurrentUserContext.getUserid();
|
||||
}
|
||||
|
||||
public long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public String getBusinessProcessId() {
|
||||
return businessProcessId;
|
||||
}
|
||||
|
@ -65,11 +69,11 @@ public class TaskanaHistoryEvent {
|
|||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
return eventType;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
this.eventType = type;
|
||||
}
|
||||
|
||||
public Instant getCreated() {
|
||||
|
|
|
@ -9,7 +9,7 @@ public class ClaimCancelledEvent extends TaskEvent {
|
|||
|
||||
public ClaimCancelledEvent(Task task) {
|
||||
super(task);
|
||||
type = "TASK_CLAIM_CANCELLED";
|
||||
eventType = "TASK_CLAIM_CANCELLED";
|
||||
created = task.getModified();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,13 +10,13 @@ public class CompletedEvent extends TaskEvent {
|
|||
|
||||
public CompletedEvent(Task completedTask) {
|
||||
super(completedTask);
|
||||
type = "TASK_COMPLETED";
|
||||
eventType = "TASK_COMPLETED";
|
||||
created = completedTask.getCompleted();
|
||||
}
|
||||
|
||||
public CompletedEvent(TaskSummary completedTask) {
|
||||
super(completedTask);
|
||||
type = "TASK_COMPLETED";
|
||||
eventType = "TASK_COMPLETED";
|
||||
created = completedTask.getCompleted();
|
||||
}
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ public class CreatedEvent extends TaskEvent {
|
|||
|
||||
public CreatedEvent(Task task) {
|
||||
super(task);
|
||||
type = "TASK_CREATED";
|
||||
eventType = "TASK_CREATED";
|
||||
created = task.getCreated();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ public class TransferredEvent extends TaskEvent {
|
|||
|
||||
public TransferredEvent(Task task, WorkbasketSummary oldWorkbasket, WorkbasketSummary newWorkbasket) {
|
||||
super(task);
|
||||
type = "TASK_TRANSFERRED";
|
||||
eventType = "TASK_TRANSFERRED";
|
||||
created = task.getModified();
|
||||
this.oldValue = oldWorkbasket.getId();
|
||||
this.newValue = newWorkbasket.getId();
|
||||
|
|
Loading…
Reference in New Issue