cancel
Showing results for 
Search instead for 
Did you mean: 

Transferring of Data between Enhancements using Singleton Class

Jegadeesan
Newcomer
0 Kudos

Hi Experts 

I'm facing a strange issue while using Singleton class object with a static data attribute to transfer data between two enhancements in the update task. 

In the Enhancement 1, I'm creating an instance of the class and using a Put method to set certain data to a static attribute of the class which I want to pass on to the second enhancement. 

In the Enhancement 2, I'm using the instance of the singleton class and retrieving the data passed in Enhancement 1 using a GET method.  

Both the enhancements are called in the Update Task.

Now the issue. When I place a break point in both the enhancement and execute the process, things work fine. In the Enhancement 2, the class's object is already available and I'm able to get the data transferred from Enhancement 1 using the GET method. 

But when I don't use the debugging, when the background process executes Enhancement 2, somehow the class object is not instantiated, and the data passed from Enhancement 1 is lost. 

Any pointers on why this is happening and how to resolve this would be much helpful. 

Thanks

Accepted Solutions (0)

Answers (0)