Re: AR Create instance for AR
"EDGAR CORREA" <[email protected]>
| Newsgroups | gmane.comp.programming.domain-driven-design |
|---|---|
| Message-ID | <[email protected]> |
--- In [email protected], Jose Fernandez <ppcuban@...> wrote:>> The way i see it, and someone correct me please if i am mistaken, i like to think of aggregates in terms of INSTANCES, and domain services more like STATIC CLASS... if you know what i mean.> Sorry, but i misunderstood of the comparison among Instances X aggregates and domain services X static class, please enlighten me. > Once you instantiate a AR of type Task, all of its operation should be concerned only on the instance.> > The way you put it sounds to me more like a DOMAIN Service sort of speaking.> "Domain Service sort of speaking"?> What are you trying to achieve with your DispatchFor method? Why do you modify the State enum of your instance and return a new instance of Task that has automatically a PENDING value?> Chatting with users, i hear the following phrases:1 - I dispatch to directorship2 - The task is pending to diretorship ok, so i chose create task to every step, as well becomes possible know who performed the task. the problem lies in the fact wich after to perform the task (DispatchFor) to responsible area/department, i need to create a new task to choosed area/department. Regarding PENDING value to new task, it's necessary to identify whether task is complete or not. > I thing you got things mixed.>