[rules-users] permgen leak

Dean Whisnant dean at basys.com
Wed Jan 15 22:40:12 EST 2014


Hi,

This may be a very basic question, but I'm using drools 5.1.1 and when I invoke a stateful session and that session ends I receive back all of the facts that were created during that session and I translate those into an EDI transaction.  As an example I might have a few objects of types "2700*LX,2750* N1,2750* REF, and 2750*DTP".  I know my rules fired create objects like:

LX*1
N1*75*CMSEC
REF*17*A
DTP*007*D8*20140114
LX*2
N1*75*STATUS
REF*17*AFTNM
DTP*007*D8*20140114

Each of these lines is an object of the type I mentioned above.

My task is to make sure that the different object types "stick" together when I put them in the .x12 file so that they are formatted above.

What I do internally is I keep track that I have two of each of these objects, but I don't know if there is some type of timestamp that is on them that I could keep the first LX, N1, REF, DTP together or not.

In one example I have a rule that inserts them in the order you see, yes, it literally inserts 8 objects/facts into memory. And I need to know the order they were inserted so that I can properly form a file out of them on the backend.

Any thoughts?

Thanks,

Dean



More information about the rules-users mailing list