Hi Markus,
Thanks a lot.. Now I am able to fire the rules dynamically by fetching
rules from Database.
I have modified the code as follows:
While filling the VO's iteself, I am concatinating the .* to the field
fileMask, and the drl code.
And the .drl is as follows:
rule Process
Hi,
I am inserting message(fileName, fromQ,toQ,transType) to WorkingMemory.
fileName as ABC-834-test-100.edi
I am inserting 3 instances of TrasactionVO's to workingmemory as follows:
TransactionVO transVO = new TransactionVO(ABC-834, ABC.834.EDI,
ABC.834.XML, 834);
TransactionVO
Hi,
your rules represent the following Java Code (the system.out are just
to see the result of matches)
public static void main(String[] args)
{
// You're rule
System.out.println(ABC-834.matches(ABC-834-test-100.edi));
//false