April 28, 2015 6:02 pm
To add custom Java code to a Drools rule in Event Analytics in the Infor Grid:
// javac thibaud\HelloWorld.java
// jar cvf HelloWorld.jar thibaud\HelloWorld.class
package thibaud;
public class HelloWorld {
public static String hello(String CUNO) {
return "Hello, " + CUNO;
}
}




Thank you.
Posted by thibaudatwork
Categories: Event Hub, Event Analytics
Tags: Event Analytics, Grid, M3
Mobile Site | Full Site
Get a free blog at WordPress.com Theme: WordPress Mobile Edition by Alex King.
UPDATE: In the section “then”, we can use event.getElementValue(“CUNO”)
LikeLike
By thibaudatwork on May 11, 2015 at 12:28 pm
Hello Thibaud. Interesting post. Trying to figure out how it works but i am confused. I set up a rule (MPLIND, create record during PPS300) in analytics to post an event if PUOS=50 only.
If i put a system.out.println(event.getElementValue(“PUOS”)) in the rule, i see the debug line only for PO receipt in MPLIND status 50.
Then i set up MEC as a suscriber in the partner admin (M3:MPLIND:C::P2).
As a result, MEC receives 100% of events, regardless the status of the line added in MPLIND. If i do a receipt for a PO with direct put-away (status 75 immediately), an xml file is sent to MEC.
Where am i wrong ? How can we setup MEC to receive only events filtered by analytics ?
Thank you!
LikeLike
By maxric on November 10, 2015 at 1:25 am
Bonjour Maxime. Supposing your Event Analytics rule does
event.postEvent ("Maxime"), then your MEC you should subscribe toEventAnalytics:Maxime(not M3:MPLIND) — ThibaudLikeLike
By thibaudatwork on November 10, 2015 at 10:39 am
Excellent it works ! Thank you.
LikeLiked by 1 person
By maxric on November 16, 2015 at 12:54 am
[…] Java code in Event Analytics rules […]
LikeLike
By Site map – M3 ideas on May 9, 2017 at 12:22 pm