closes or marks the alert as read based on the received event . concode_field_sep AlertService alertService concode_field_sep Object getValue concode_elem_sep void setAlertService concode_elem_sep void create concode_elem_sep T getValueAsEnum concode_elem_sep String getValueAsString
void function ( MotechEvent arg0 ) { Long loc0 = Long . valueOf ( getValueAsString ( arg0 , ALERT_ID ) ) ; UpdateCriteria loc1 = new UpdateCriteria ( ) ; if ( arg0 . getSubject ( ) . equals ( CLOSE_ALERT_SUBJECT ) ) { loc1 . status ( AlertStatus . CLOSED ) ; } else { loc1 . status ( AlertStatus . READ ) ; } alertService . update ( loc0 , loc1 ) ; }