protected String getPdate ( Map result ) { HashMap management = getObjectOr ( result , "management" , new HashMap ( ) ) ; ArrayList < HashMap > events = getObjectOr ( management , "events" , new ArrayList < HashMap > ( ) ) ; for ( HashMap event : events ) { if ( getValueOr ( event , "event" , "" ) . equals ( "planting" ) ) { return getValueOr ( event , "date" , "" ) ; } } return "" ; }
Get plating date from experiment management event