Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[henshin-dev] Forbid and Require

Hi!

I'm doing some tests with the Require and Forbid actions in collections. I created 2 test rules, one called requireRule and the second one forbidRule (attachment: requireAndForbid.png).

The source model contains 3 Process objects with names: Reseller, Buyer, Credit Entity.

The problem I have is that my common sense tells me that the forbidRule would forbid the match of the Buyer process, so the result would be the list of processes excluding Buyer. But, the result is actually the opposite, it returns only the process Buyer. (attachment: forbidRuleResult.png)

Then in the required rule, my common sense tells me that I would be restricting the matches to the one process called Buyer. But, again, the result is the opposite, it shows all processes but Buyer. (attachment: requireRuleResult.png)

Is this behaviour right?

Is there any document where I can read how all actions (preserve, create, forbid, etc) works? Same for paths and Units (LoopUnits, ConditionalUnits, etc)

Thanks in advance!

Regards,
Javier

Attachment: requireAndForbid.png
Description: PNG image

Attachment: forbidRuleResult.png
Description: PNG image

Attachment: requireRuleResult.png
Description: PNG image


Back to the top