[rules-users] Is it possible to leave the "then" block empty?
Aleksandar Toshovski
balex4o at gmail.com
Tue May 21 17:53:01 EDT 2013
Thanks. It works!
On May 21, 2013, at 7:20 PM, Wolfgang Laun wrote:
> On 21/05/2013, Aleksandar Toshovski <balex4o at gmail.com> wrote:
>
>> Also I get an error when I try to use something like this:
>>
>> rule "AttributeChange EAttribute id"
>> when
>> diff: IDiff( operationType == OperationType.ADD, differenceType ==
>> DiffType.ATTRIBUTE, parameter=="id", !oldValue.equals(newValue) )
>> then
>> end
>>
>>
>> Error: Rule Compilation error : [Rule name='ReferenceChange EClass add
>> Attribute/Reference']
>
> The rule name in the error message does not match the one you have posted above.
>
>
>>
>>
>> Can you give me an example?
>>
>
> rule x
> when
> then
> end
>
> -W
>
>
>> On May 21, 2013, at 7:07 PM, Wolfgang Laun wrote:
>>
>>> On 21/05/2013, Aleksandar Toshovski <balex4o at gmail.com> wrote:
>>>> Hello,
>>>>
>>>> I have many rules, which have exactly the same "then" block. Is it
>>>> possible
>>>> to leave the then cause empty?
>>>
>>> Yes.
>>> -W
>>>
>>>> I only need to know is if a rule was
>>>> activated or not and for this reason I'm using
>>>> WorkingMemoryConsoleLogger.activationCreated().
>>>>
>>>> Best Regards,
>>>> Aleksandar Toshovski
>>>>
>>>>
>>> _______________________________________________
>>> rules-users mailing list
>>> rules-users at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
More information about the rules-users
mailing list