[jboss-dev-forums] [Design of JBoss jBPM] - Re: Process/task search based on variables

frantisek.kocun@gmail.com do-not-reply at jboss.com
Wed Oct 1 09:15:26 EDT 2008


Btw. Is somewhere example of using OO application with process engine. I am not interested in technologies but in principles. Only interesting articel I found is this http://devhawk.net/2004/01/30/SOA+Vs+OO+In+Business+Process.aspx . When I look for SOA everyone is describing integration and WS:( When I look on jBPM.. tutorials I find only not OO examples. Application knows only tasks and processes..

I like this form the article. Think programming without processes all logic in business object is horrible. But I have no experience with proper use of business objects with the process engine.
This is what I like form article:

Typically, the developer sees these processes as methods: Order.Place(), Order.Fulfill(), Order.ProcessPayment(). However, these business processes don't represent things the business object is doing, rather things being done to the business object. It's a subtle difference, but it's very important.

In Ivar Jacobson's Object-Oriented Software Engineering, he talks about how over time objects tend to evolve to have methods that are only used in a single use case. He separated the concepts of the "entity" object - which represents a business object that has persistent state - and the "control" object  - which represents a process that modifies the state of one or more entities. In my experience, mapping use cases to control objects is a good first order approximation of your final system design. 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179789#4179789

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179789



More information about the jboss-dev-forums mailing list