Question: ublic EditCompleteResultDto editComplete ( String model, String version, String process, Long rev, UUID allocId, String revDescription, List jobEditRequest, String userName, String employeeId, String completeFlag )
ublic EditCompleteResultDto editCompleteString model, String version, String process, Long rev, UUID allocId, String revDescription, List jobEditRequest, String userName, String employeeId, String completeFlag List validationList new ArrayList; Set completedPositions new HashSet; saveJobmodel version, process, rev, allocId, revDescription, jobEditRequest, userName, employeeId, completeFlag; Optional allocRevision allocPlanRevisionRepository findByIdAllocPlanRevisionKeybuilderallocIdallocIdrevNumberrevbuild; ifallocRevisionisPresent AllocPlan allocPlan allocRevision.getgetAllocPlan; List distinctAlocPlans allocPositionRepository findAllDistinctByAllocPlanAndRevNumberOrderByPositionAscallocPlan allocRevision.get; for AllocPosition ap : distinctAlocPlans loginfoEdit Complete started for Position: apgetPosition; if apgetPositionL loginfoEdit Complete skipped for Position: apgetPosition; continue; List positionValidationList new ArrayList; List jobInfoList customJobInfoRepo.searchJobWithAllocIdAndRevAndPositionrev apgetPosition allocId; for JobInfo jobInfo : jobInfoList Job job jobInfo.getJob; loginfoStarted Processing Job num: job.getJobNumber; String jobNumber jobInfo.getJobgetJobNumber; if CommonConstantsMIO.equalsjobgetJobType CommonConstants.OAequalsjobgetJobType && null jobInfo.getRepJob RepJobKey repJobKey new RepJobKey; repJobKey.setAllocIdjobInfogetAllocPlangetAllocId; repJobKey.setRepresentativeJobNumberjobNumber; repJobKey.setRevNumberjobInfogetRevNumbergetRevNumber; Optional repJobOptional repJobRepository.findByIdrepJobKey; ifrepJobOptional.isPresent repJobOptional Optional.ofRepJobbuilderallocPlanallocPlanrepJobKeyrepJobKeyrepresentativeJobjobrepresentativeJobBlockjobInfogetJobBlockrepresentativeJobCategoryjobInfogetJobCategoryrevNumberallocRevisiongetbuild; repJobRepository.saverepJobOptionalget; RepJob repJob repJobOptional.get; loginfoRepJob created with repJobNumber: repJob.getRepJobKeygetRepresentativeJobNumber; repJob.setRepresentativeJobClassAN; jobInfo.setRepJobrepJob; if jobInfogetKitSupply null jobInfo.setKitSupplyCommonConstantsFALSE; if jobInfogetNeighborCheck null jobInfo.setNeighborCheckCommonConstantsFALSE; if jobInfogetPairJob null jobInfo.setPairJobCommonConstantsFALSE; jobInfoRepository.savejobInfo; RepJob repJob jobInfo.getRepJob; String postionName jobInfo.getPositiongetPositionName; Long subOrderNumber jobInfo.getAllocSubOrder; String errorMessage CommonConstants.EDITCOMPLETEERRORMESSAGE; boolean doRepJobExist null repJob; if doRepJobExist null repJob.getRepresentativeJob repJob.getRepresentativeJobgetJobNumber null positionValidationList.addnew EditCompleteValidationDtopostionName subOrderNumber, CommonConstants.REPRESENTATIVEOPERATIONNUMBER, errorMessage, jobNumber; if jobInfogetJobBlock null positionValidationList.addnew EditCompleteValidationDtopostionName subOrderNumber, CommonConstants.JOBBLOCKNUMBER, errorMessage, jobNumber; if doRepJobExist repJob.getRepresentativeJobBlock null positionValidationList.addnew EditCompleteValidationDtopostionName subOrderNumber, CommonConstants.REPRESENTATIVEJOBBLOCK, errorMessage, jobNumber; if jobInfogetJobCategory null positionValidationList.addnew EditCompleteValidationDtopostionName subOrderNumber, CommonConstants.JOBCATEGORY, errorMessage, jobNumber; if doRepJobExist repJob.getRepresentativeJobCategory null positionValidationList.addnew EditCompleteValidationDtopostionName subOrderNumber, CommonConstants.REPRESENTATIVEJOBCATEGORY, errorMessage, jobNumber; if doRepJobExist repJob.getRepresentativeJobClass null positionValidationList.addnew EditCompleteValidationDtopostionName subOrderNumber, CommonConstants.REPRESENTATIVEJOBCLASS, errorMessage, jobNumber; completedPositions.addapgetPositionName; validationList.add i want to convert this implementation as webflex
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
