On 2010-01-06 15.17, Philippe Van Dyck wrote:
Hi Rickard,
I probably did something wrong, but my structure (passive) currently
links to interactions (active).
One 'contract' is made of 'terms' (passive). Some terms are 'billable'
(active behavior).
When I choose to bill a client, I collect all the 'billable' terms
into another passive structure, let's call it an invoice template.
This invoice template points to a list of 'billable' terms of a couple
of contracts.
So my passive structure points to a list of behaviors, and I plan to
add other 'billables' later, and they may not be terms of a contract
(like exchange rates commissions).
Is this a complete nonsense ? How should I handle this polymorphism ?
It sounds to me like the invoice template, while passive, is still part
of the interactions, things-you-do with the structure that you've built
up. So I think it's fine because of that, i.e. your invoice is part of
interactions not structure.
But it's not clearcut and will take some experimenting to find out what
is what. We have the same issue with forms and labels in our model. It
depends on whether the thing uses structural types (what-things-are) or
roles (what-things-do) for the associations. It sounds like your invoice
uses roles (like Billable), so that would make it part of the
interaction side of things.
/Rickard
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev