Counter is never incremented in a matched rule [message #1760906] |
Thu, 04 May 2017 08:59 |
im hello world Messages: 44 Registered: February 2017 |
Member |
|
|
Hi ,
i created a counter (next to several other counters)
helper def: counter2: Integer =0;
and i tried to increment it in a rule
Location: upp!Location (
id <- 'id' + thisModule.counter2 ,
)
(..........)
do { thisModule.counter2<- thisModule.counter2 + 1 ;
}
}
the problem is that other counters are incremented, but this one no!
i don't see where is the error.
any help please.
Thank you.
[Updated on: Thu, 04 May 2017 09:01] Report message to a moderator
|
|
|
|
|
|
Re: Counter is never incremented in a matched rule [message #1760971 is a reply to message #1760929] |
Thu, 04 May 2017 18:37 |
im hello world Messages: 44 Registered: February 2017 |
Member |
|
|
Thank you.
i have in my transformation many rules and lazy rules, so , do i increment the counter in each matched rule? and for the lazy rule, is it the same case? because i have a counter incremented in a lazy rule , but this counter is still incremented in a matched rule when i call that lazy Rule, when,in the matched rule i just need a reference to the id created in that lazy rule.
[Updated on: Thu, 04 May 2017 18:39] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04449 seconds