I have a workflow from many custom activities, all these activities need to reach workflow's start-out arguments. I can define the inference in all these custom activities and force the workflow argument for the arguments of the custom activity but I am not comfortable with this solution. What is the best way to use workflow level logic and variable announcements from custom activities, can I get them from ActivityContext?
Thank you.
One of the activities seen on this activity with our custom activities are property properties available in properties using properties We have an activity with an InArgument that adds the Execution property to the method executed, so you end up with:
Public Inarmatam & lt; Custom & gt; MyObject {get; Set;}
...
context. Properties Add ("contact", myobact.t (reference));
Then in your other activities you can see whether it is set or not
context.properties.find ("contact") < / Code>
Obviously, if you are doing a lot of this then I recommend using a continuous elsewhere instead of magic string, but if you design it you should add the same logic .
Comments
Post a Comment