Hi All,
The scenario:
- I have a GUI Component XML called 'testPage.xml'
- It calls a method called init() onAfterDeserialize
- init() method calls method1 and method2
- method1 executes a rule, i.r. receives an xml on service call ans sets the xml doc in cache
- Requirement: - method2 should be executed only after full execution of method 1, i.e. a synchronous method call because method 2 reads the xml from cache which was set by Method 1
- Note: If I put an alert in between calling of 2 methods, I am successfully able to execute the methods with proper data, i.e. by the time the user clicks OK in the alert, the data is populated in the cache, but when I remove the alert, the methods are called asynchronously which returns a null in method 2 when it tries to read the data from cache.
Please guide me how do I achieve synchronous method call. I tried to look into the APIs onAfterAssemble(), onBeforeAssemble(). But I am not aware as how to use the APIs.
I am using TIBCO GI 3.6.1
Thanks in advance
Regards
Jayant