I m with a list of custom activities(written in code behind, C#) where each is derived from NativeActivity, now I’m adding all these activities to a sequence with the help of a foreach loop.
now the question is, how I should proceed if I need to get some value from an activity and to pass it on to another activity.
Say, activity1 sets a string property value to “some file name”(lets an image file path) and based on that the activity next to it which so ever is added into the sequence with the help of for loop, takes it as input to flip that image.
Logic for getting the file is thre in Execute method of activity1 and the same to flip the image in Execute method of activity2.
thanks in advance
This is what i Did for the actual implementation, there is no need of any inargument/outargument, The variable “Shared Data” is capable enough to hold the data across activities.
Now at each activity level in overridden code activity “Execute” method, you must use this excerpt of code to fetch input/fetch the value of this workflow variable, “SharedData”.
Hope this might help others..
Thanks everyone else out there for their help n support.