AnsweredAssumed Answered

Using Domain Objects in the Process

Question asked by j.p.ryan on Aug 12, 2011
Latest reply on Aug 13, 2011 by ronald.van.kuijk
Hi
I have an “Investigate Customer” process where flows in the business process use information from the Customer domain object to make decisions as to the path the process should follow e.g. amount owed, country region, manual or electronic etc.   
This customer object is a pre-existing and very complex object, persisted to/from an already existing database. 

What is the best practice in terms of the information that I pass around the process?  Should I pass the huge “Customer” object to the process as a variable or create another object that only contains the variables that the process needs to interrogate?

Another thought was to create the process with the “Customer Number” as the business key which would allow me to lookup and retrieve the current state of the customer, or possibly a process variable containing just the customer identifier.  Any examples on how best to do this if it is the best approach?

Thanks,
James

Outcomes