If I want to code the cloning (copy) of a record, what is the best place according to the OERA?
A B(usiness)E(ntity) or a B(usiness)T(ask)?
Let me rephrase the question.
Assume I have a business entity for appointments and I want to perform an action to create a new appointment based on a existing appointment. Where should I code the creation of the new appointment, in the business entity or in a business task?
Flag this post as spam/abuse.
The problem with the statement of the question is that "record", per se, should only be a concept in the Data Access layer so, actually, the answer is neither when expressed in terms of "a record". What you should be thinking is that you have a business entity and, for some reason, you want to clone that. How you accomplish this task is likely to depend on other aspects of your architecture. For example, if you use a Factory pattern to create business entity objects, then it would be a likely job of the Factory to do the actual cloning. A task enters into the picture because presumably the need to clone enters into some business process and the cloning is one step in that process.
Let me rephrase the question.
Assume I have a business entity for appointments and I want to perform an action to create a new appointment based on a existing appointment. Where should I code the creation of the new appointment, in the business entity or in a business task?
My answer still stands. The question is, in your implementation, what is responsible for creating BE objects. That does the clone.
Let me rephrase the question.
Assume I have a business entity for appointments and I want to perform an action to create a new appointment based on a existing appointment. Where should I code the creation of the new appointment, in the business entity or in a business task?
Flag this post as spam/abuse.
My answer still stands. The question is, in your implementation, what is responsible for creating BE objects. That does the clone.
Flag this post as spam/abuse.
To answer your first question: Yes, we implement BE's around PDS's.
To answer your first question: Yes, we implement BE's around PDS's.
Flag this post as spam/abuse.
I would do it in the be to (in your case oera.base.businessentity.cls). But do you have special reasons to doubt Roger?