Hi All,
Thanks Guys for all the help . I am able to get the XOR gateway work with result coming from backend code. Just to mention it so that it helps others
1. Define the process variable in the variable definition in Oryx for the process.
2. Click on the task where the result variable is to be mapped to the process variable.
3. Click on the DataOutputSet in the properties and enter "Result"
4. Click on the Assigments in the properties and enter "Result-> <the process variable you have defined> "
and thats it. the result returned as ContentData from the Task Client will be mapped to the process variable.
Prashanth Karnam