|
|
|
|
|
Re: Query PatternMatchModel from Eunit [message #1406191 is a reply to message #1405881] |
Sat, 09 August 2014 09:00 |
|
Hi Abdu,
Looking at the lines below, your EPL patterns will run until there are no matches left in the model, which could explain why your pattern-match model is empty.
epl_task.setRepeatWhileMatches(true);
epl_task.setMaxLoops(-1);
Cheers,
Dimitris
|
|
|
|
Re: Query PatternMatchModel from Eunit [message #1406519 is a reply to message #1406312] |
Sun, 10 August 2014 09:05 |
|
Hi Abdu,
I'm glad this helped. Off the top of my head, you could use a variable declared in the pre part of the EPL module to keep track of the number of matches (i.e. increment it by 1 in the onmatch part of each pattern) and then use the workflow's <exports>/<uses> nested elements to pass the value of the variable on to the next task.
Cheers,
Dimitris
|
|
|
Re: Query PatternMatchModel from Eunit [message #1408974 is a reply to message #1406519] |
Sat, 16 August 2014 17:35 |
abdush mohd Messages: 35 Registered: April 2014 |
Member |
|
|
Hi Dimitris,
Thanks for your suggestion. I used <exports> and <uses> elements before within a workflow to pass variables between modules, but I had difficulty to do so for my unit test. The EPL task is created and executed from the eunit module so I didn't know how this could be done.
As, it is a test unit, I decided simply to call and execute the EPL task as many times as I want and check and compare the pattern matches.
Thanks.
Abdu
[Updated on: Sat, 16 August 2014 17:35] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03121 seconds