I have an BOLReference object as follows:
private String ediTransmissionId;
private List<WorkflowExceptions> workflowExceptions;
And the inner WorkflowExceptions looks like below:
private String category;
private Map<String,String> businessKeyValues;
I want to get a particular Map<String,String> businessKeyValues from the list of WorkflowExceptions based on some filters. How can I do so?
Map<String,String> bKeyMap = bolRef.get(0).getWorkflowExceptions()
.stream().filter(wk->wk.getBusinessKeyValues().containsKey("ABC123"));