Skip to content

Commit

Permalink
107258:Wfid was missing in WfNotification object
Browse files Browse the repository at this point in the history
  • Loading branch information
ravisaurav-tarento authored and saipradeep_ravipati committed Nov 3, 2023
1 parent 345522a commit 6f5c7ca
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ public Response enrolBPWorkFlow(String rootOrg, String org, WfRequest wfRequest)
response.put(Constants.STATUS, HttpStatus.BAD_REQUEST);
return response;
}
wfRequest.setServiceName(Constants.BLENDED_PROGRAM_SERVICE_NAME);
WfNotification wfNotification = getWorkFlowNotificationRequest(wfRequest);
wfNotification.setBatchName((String) courseBatchDetails.get(Constants.BATCH_NAME));
wfNotification.setBatchStartDate((Date) courseBatchDetails.get(Constants.START_DATE));
Response response = saveEnrollUserIntoWfStatus(rootOrg, org, wfRequest);
wfRequest.setServiceName(Constants.BLENDED_PROGRAM_SERVICE_NAME);
Response response = saveEnrollUserIntoWfStatus(rootOrg, org, wfNotification);
producer.push(configuration.getWorkflowApplicationTopic(), wfNotification);
return response;
}
Expand All @@ -125,10 +125,10 @@ public Response updateBPWorkFlow(String rootOrg, String org, WfRequest wfRequest
response.put(Constants.STATUS, HttpStatus.BAD_REQUEST);
return response;
}
if (scheduleConflictCheck(wfRequest)) {
wfRequest.setAction(Constants.REJECT);
wfRequest.setComment(configuration.getConflictRejectReason());
workflowService.workflowTransition(rootOrg, org, wfRequest);
if (scheduleConflictCheck(wfNotification)) {
wfNotification.setAction(Constants.REJECT);
wfNotification.setComment(configuration.getConflictRejectReason());
workflowService.workflowTransition(rootOrg, org, wfNotification);
response.put(Constants.ERROR_MESSAGE, configuration.getConflictRejectReason());
response.put(Constants.STATUS, HttpStatus.BAD_REQUEST);
return response;
Expand Down Expand Up @@ -511,13 +511,13 @@ public Response adminEnrolBPWorkFlow(String rootOrg, String org, WfRequest wfReq
response.put(Constants.MESSAGE, "Not allowed to enroll the user to the Blended Program");
response.put(Constants.STATUS, HttpStatus.OK);
} else {
wfRequest.setAction(Constants.INITIATE);
WfNotification wfNotification = getWorkFlowNotificationRequest(wfRequest);
wfNotification.setBatchName((String) courseBatchDetails.get(Constants.BATCH_NAME));
wfNotification.setBatchStartDate((Date) courseBatchDetails.get(Constants.START_DATE));
response = saveAdminEnrollUserIntoWfStatus(rootOrg, org, wfRequest);
response = saveAdminEnrollUserIntoWfStatus(rootOrg, org, wfNotification);
// producer.push(configuration.getWorkFlowNotificationTopic(), wfRequest);
wfRequest.setAction(Constants.INITIATE);
producer.push(configuration.getWorkflowApplicationTopic(), wfRequest);
producer.push(configuration.getWorkflowApplicationTopic(), wfNotification);
}
} else {
response = new Response();
Expand Down

0 comments on commit 6f5c7ca

Please sign in to comment.