Exception Processing

birvin's picture

I'm a little foggy on handling Exceptions.  So, if I want to catch the "Disconnect" Exception, I have to right-click on an empty space and select "Application Properties".  From there I click on the "Exceptions" tab, right-click on the grid and select "Add" and select "UserDisconnect" in the Type drop down.  How do I get the flow to then go to one of my hang up routines? 

wwang's picture

 Specify exception handling

 Specify exception handling process.

On the form that you select "UserDisconnect" exception, there is an input box on the bottom "Application Name". You can enter the name of your exception handling process in the form of <org>:<grpname1>.<grpname2>.<procname> 

Where <org> is the organization name. You don't have to specify it if the handling process is deployed  in the same org. In which case the name should be <grpname1>.<grpname2>.<procname>

You can also model the exception handling as part of the flow by drag and drop an exception shape on top of Sub-process task. Edit the sub-process task properties and specify type of exception to handle. You should be able to connect the exception flow from the exception shape to other task in the model.

birvin's picture

 I like the drag and dropping

 I like the drag and dropping of the exception shape on top of the Sub-process Task because I can put my cleanup processing inside the subprocess along with the "Hang UP" node.  My next question is what is the incoming flow to the Exception Sub-process?  I can't have it without any incoming flow because that will generate a compile error.  Is there a way I can anchor it so that it can stand by itself?

epetrova's picture

can you show the picture of

can you show the picture of your model?

Thanks,
Evgenia

birvin's picture

 Attached is a screenshot of

 Attached is a screenshot of my model with a disconnected UseDisconnect Exception User Task.  The UserDisconnect Node will handle the UserDisconnect Exception.  

Sorry for the delay.  I had to get a demo setup for upper management.

epetrova's picture

sorry, but can't see any

sorry, but can't see any screen :)

Thanks,
Evgenia

birvin's picture

Screenshot attached.

Screenshot attached.

epetrova's picture

Try to place  your Init Vars

Try to place  your Init Vars task, Interface Flow task, Hang Up task , Exeption into EmbeddedSub Process (ESP). So you main application wil be Star task -> ESP-> End task

Thanks,
Evgenia

birvin's picture

 OK.  I'll give it a

 OK.  I'll give it a try.

 

Thanks