Skip to content

Commit

Permalink
Fixed the throwing null value issue for subscription update workflow …
Browse files Browse the repository at this point in the history
…type.
  • Loading branch information
Sumudu-Sahan authored and nimsara66 committed Jan 22, 2025
1 parent 364ea98 commit b73d735
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ public static WorkflowInfoDTO fromWorkflowsToInfoDTO(Workflow workflow) {
workflowInfoDTO.setWorkflowType(WorkflowInfoDTO.WorkflowTypeEnum.API_PRODUCT_STATE);
} else if (workflow.getWorkflowType().equals("AM_REVISION_DEPLOYMENT")) {
workflowInfoDTO.setWorkflowType(WorkflowInfoDTO.WorkflowTypeEnum.REVISION_DEPLOYMENT);
} else if (workflow.getWorkflowType().equals("AM_SUBSCRIPTION_UPDATE")) {
workflowInfoDTO.setWorkflowType(WorkflowInfoDTO.WorkflowTypeEnum.SUBSCRIPTION_UPDATE);
}
workflowInfoDTO.setWorkflowStatus(WorkflowInfoDTO.WorkflowStatusEnum.valueOf(workflow.getStatus().toString()));
workflowInfoDTO.setCreatedTime(workflow.getCreatedTime());
Expand Down

0 comments on commit b73d735

Please sign in to comment.