Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package org.hospitals.hospitalapp.rules
- unit HospitalRuleService
- //import org.hospitals.hospitalsapp.data.Hospital;
- rule "org.hospitals.hospitalapp.rules.HospitalRuleService.IncomingEvent" when
- $h : / hospitaInStream
- then
- System.out.println("\n\n************* RULES incoming hospital: "+ $h.toString());
- $h.setZip(30040);
- hospitaOutStream.append( $h );
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement