[Design of JBoss jBPM] - Re: how crucial are exception handlers ?
by tom.baeyens@jboss.com
"camunda" wrote : In reality I don't like the use of exception handlers in the process too much.
|
| On the other hand is fault handling quite important in BPEL, so I think something comparable should be go into jPDL 4 too. So I think exception handlers are important for the language, because they are expected by the users...
|
| Even if I agree with you that it could be solved better by abstract base classes or the like.
|
| Cheers
| BErnd
i didn't really express the value that i see in exception handlers yet. there are now 2 reasons why i think they can be valuable:
1) configurability. if you do it in a base class, there is only one, hard-coded way of handling the exception. While if you use exception handlers, you can in the process decide whether you want to send an email to an admin or start another process in case of failure.
2) transactions. we can offer the infrastructure to execute the exception handler inside the failing transaction or as a synchronization creating a separate transaction right after the failing transaction rolled back.
though both these arguments are maybe not enough to add them...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132792#4132792
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132792
16 years, 10 months
[Design of JBoss jBPM] - Re: Command facade API
by camunda
Hi!
Actually we developed a typed facade to jBPM in a former project as EJB3-SessionBean. The problem is, like Tom described, that you end up with too much methods/operations, so this facade got quite unhandy! After introducing the commands, I committed the code from that SessionBean to the Commands, and I like the code more now. Better structured, overwriting of commands possible, sending commands as JMS message possible... And in our Swing-Client-Framework we can easily use the Commands, and I think the most people build some kind of "infrastructure"-code around jBPM, so the untyped command is not the biggest problem...
But what I would vote for is that the CommandExecutor returns the Command object itself as result. Then you could include the return as attribute in the Command. The CommandExecutor can garantee to return the same Command-Class as given to him. So there is one ClassCast which cannot fail. And all the rest is typed...
There was a discussion on that in this forum: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=106234
Cheers
Bernd
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132767#4132767
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132767
16 years, 10 months