Return results from activity
How can you return results from an activity?
Let's say I have an activity named Sum taking param1 and param2, both integers. I have An ActivityStarted event and need to return the sum of the param1+param2. I know that one can define the parameters of the Sum in the interaction.xml but I see no place to define the output of any activity.
I think I could use the Context and have the activity set the result in there and thus return anything that way but that feels like using global variables. Wanted to make sure there is no way of returning a result before using the Context.
Thanks!
***Moderator Edit-Vidyaranjan: Updated Platform Capability***