Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
haiphucnguyen committed Dec 8, 2024
1 parent 2146de4 commit 2ea908e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
@AllArgsConstructor
@SuperBuilder
public class TeamDTO {

private Long id;
private String name;
private String logoUrl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,14 @@
@AllArgsConstructor
@SuperBuilder
public class WorkflowDTO {

private Long id;

private String name;

private String description;

private String requestName;

private Long ownerId; // ID of the owning team; null for global workflows

private String ownerName;
private WorkflowVisibility visibility;

private Integer level1EscalationTimeout;

private Integer level2EscalationTimeout;

private Integer level3EscalationTimeout;
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@
@AllArgsConstructor
@SuperBuilder
public class WorkflowDetailedDTO extends WorkflowDTO {

private String
ownerName; // return the team name that own this workflow, if workflow is global then
// its value is null

private List<WorkflowStateDTO> states;

private List<WorkflowTransitionDTO> transitions;
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
@Builder
public class WorkflowTransitionDTO {
private Long id;
private Long workflowId; // ID of the associated Workflow
private Long sourceStateId; // ID of the source state
private Long targetStateId; // ID of the target state
private String eventName; // Name of the triggering event
private Long slaDuration; // SLA duration for the transition (nullable)
private boolean escalateOnViolation; // Whether to escalate on SLA violation
private Long workflowId;
private Long sourceStateId;
private Long targetStateId;
private String eventName;
private Long slaDuration;
private boolean escalateOnViolation;
}

0 comments on commit 2ea908e

Please sign in to comment.