private void populateCompletedActivitiSteps(Job job,List<HistoricActivityInstance> historicActivitiTasks){
  List<WorkflowStep> completedWorkflowSteps=new ArrayList<>();
  for (  HistoricActivityInstance historicActivityInstance : historicActivitiTasks) {
    completedWorkflowSteps.add(new WorkflowStep(historicActivityInstance.getActivityId(),historicActivityInstance.getActivityName(),HerdDateUtils.getXMLGregorianCalendarValue(historicActivityInstance.getStartTime()),HerdDateUtils.getXMLGregorianCalendarValue(historicActivityInstance.getEndTime())));
  }
  job.setCompletedWorkflowSteps(completedWorkflowSteps);
}

private void populateCompletedActivitiSteps ( Job job , List < HistoricActivityInstance > historicActivitiTasks ) { List < WorkflowStep > completedWorkflowSteps = new ArrayList < > ( ) ; for ( HistoricActivityInstance historicActivityInstance : historicActivitiTasks ) { completedWorkflowSteps . add ( new WorkflowStep ( historicActivityInstance . getActivityId ( ) , historicActivityInstance . getActivityName ( ) , HerdDateUtils . getXMLGregorianCalendarValue ( historicActivityInstance . getStartTime ( ) ) , HerdDateUtils . getXMLGregorianCalendarValue ( historicActivityInstance . getEndTime ( ) ) ) ) ; } job . setCompletedWorkflowSteps ( completedWorkflowSteps ) ; }
populates the job object with completed workflow steps .
