Sunday, July 31, 2011

How to execute Java code before and after Task flow


Its been a while i posted some video tutorials so finally i have recorded couple of videos which i will be posting regularly from now.

If you want to execute some logic when entering or exiting (or on exceptions) on bounded task flow (yes for only bounded task flows) you can call some manage bean method on Initializer and finalizer properties of the task flow.

Common use cases for these properties are as follows:


1. Validate some task flow inputs

2. default values setup


1. Releasing resources

2. Perform some cleanup of data

Download the sample code 

Watch this video on how to use these properties.

Happy Jdeveloping,
Zeeshan Baig

No comments:

Post a Comment