catching "Proces does not exist" exception

This is a discussion on catching "Proces does not exist" exception within the Websphere forums in Application Servers & Tools category; Hey I have a problem, which can be explained on a simple example ... A process1 has a reference to some other process2, and "create if process does not exist" is set to false. How do I catch bpel exception, which occurs when process1 uses this interface calling process2, but no process2 instance is running? Thanks a lot, Gregor...

Go Back   Application Development Forum > Application Servers & Tools > Websphere

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-06-2008, 03:56 PM
dwforums@us.ibm.com
Guest
 
Default catching "Proces does not exist" exception

Hey

I have a problem, which can be explained on a simple example ... A process1 has a reference to some other process2, and "create if process does not exist" is set to false. How do I catch bpel exception, which occurs when process1 uses this interface calling process2, but no process2 instance is running?

Thanks a lot,
Gregor
Reply With Quote
  #2  
Old 09-06-2008, 03:58 PM
dwforums@us.ibm.com
Guest
 
Default Re: catching "Proces does not exist" exception

i tried adding Fault handler on the corresponding Invoke of process2 interface, but it doesn't help
Reply With Quote
  #3  
Old 09-08-2008, 04:37 AM
dwforums@us.ibm.com
Guest
 
Default Re: catching "Proces does not exist" exception

Are you using one way Async invokes? If so the message should be found in the Failed Event manager. This will allow you to fix the problem and then re-submit the request (via Failed Event manager).

In case you've not used it, you can find it in the Integration Applications in the WebSphere Admin Console.
Reply With Quote
  #4  
Old 09-08-2008, 05:23 AM
dwforums@us.ibm.com
Guest
 
Default Re: catching "Proces does not exist" exception

Yes, I am using async invocation, but I would like to capture this exception/fault inside proces itself ... so, I could let's say remind user who started this proces, that his call did not have the desired effect
Reply With Quote
  #5  
Old 09-08-2008, 05:50 AM
dwforums@us.ibm.com
Guest
 
Default Re: catching "Proces does not exist" exception

Is the fault caught in the catch all?
Reply With Quote
  #6  
Old 09-08-2008, 06:15 AM
dwforums@us.ibm.com
Guest
 
Default Re: catching "Proces does not exist" exception

no, it is not, and that is the problem :S
I would like to know if there is any way to cathc it there
Reply With Quote
  #7  
Old 09-08-2008, 07:46 AM
dwforums@us.ibm.com
Guest
 
Default Re: catching "Proces does not exist" exception

I don't believe you'll be able to do this. This is the purpose of the failed event manager. What will the client do if they know it has failed. They will either have to resubmit the request and tell the WPS operator to delete the failed event or tell the operator to investigate the problem, fix it and re-submit the failed event.

If you think that the problem can fail for a multitude of reasons, it is unlikely that the client is going to be able to do anything about it.

This sort of issue usually arises they systems try and impose synchronous patterns on top of asynchronous technologies. It seems difficult to accept the fact that a client can "just trust" the system to get the message delivered. This is usually the case when there is a client UI waiting for some confirmation and requires systems to be designed with this in mind.

This is typically a design issue. If the call fails, how long does the system have before the message is deemed useless? If it is a long time then put processes in place to flag when there are failed events and these should be investigated by the appropriate person. Once resolved the message can be replayed and all is good.

If the request must be processed in a particular time frame then maybe you need to use a different type of interface or solution where if you haven't received an acknowledgement of some sort within a certain time, you raise an error to the client.
Reply With Quote
  #8  
Old 09-08-2008, 08:22 AM
dwforums@us.ibm.com
Guest
 
Default Re: catching "Proces does not exist" exception

yes, I looks like to me that what I want is actually not possible :S

here is may actual situation:

i have a process that starts an activity and then waits either for reply or outside invoke from other process
- if outside invoke comes first, there is an error when called activity ends and process is no longer in state of waitnig for it's reply - I can solve this by notifying this activity that it should terminate because outside message was received (I don't like this solution though, because it complicates activity a lot)
- if activity ends first then i can't do anything if the outside process is started too late ... how will this user know if his action was successfull or not?!

sorry for bad english and thanks for all your answers
Reply With Quote
  #9  
Old 09-09-2008, 04:01 AM
dwforums@us.ibm.com
Guest
 
Default Re: catching "Proces does not exist" exception

Hey, don't worry about the English but could you try and describe the process for me again as I don't think I quite understand the timing of who calls who and what are the implications of who replies when.

If you can just describe the flow of execution when it all works and also when it doesn't, maybe I can get a better understanding.

Marvin
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 02:50 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.