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.
Perhaps I oversimplified my problem statement. I will try to rephrase:
I have 2 web apps, each with its own adapter project. I have a 3rd project that is supposed to control the other 2. This 3rd project has a chain of 3 activities, each taking its input from the previous one:
A1=Read some values from the first web app
A2=Update web app 2 based on values harvested from the first
A3=Update web app 1 based on the result of the A2 (status of update).
I figured initially that activities are like functions: they take input and return some value as output. I was surprised that it isn't so, as far as I see. The thing that comes closest is the SetCompletionStatus for RobotActivity but I only use plain Activity.
So, is there a way to carry info from one activity to the next, w/o using the Context?