Send parameter from ActivityFlow into Activity

Vote:
 

Hi,

Is there anyway from a ActivityFlow send parameters into the different activities?

For example, from CartValidateVNextActivityFlow send parameters into the different Activities. Se example below.

        public override ActivityFlowRunner Configure(ActivityFlowRunner activityFlow)
        {
            return
                activityFlow
                    .Do(SEND_IN_PARAMETERS??)
                    .Do()
                    .If(ShouldCheckInstoreInventory)
                        .Do()
                    .Else()
                        .Do()
                    .EndIf()
                    .Do()
                    .Do()
                    .Do();
        }
    }
#151904
Aug 10, 2016 9:26
Vote:
 

Hi,

Which kind of parameter do you want to send, and why would you want to do that? 

#151908
Aug 10, 2016 10:07
Vote:
 

Because we want to reuse a activity but we don't want all the functionality to be executed. And instead of duplicating the activity send a parameter that we can check on. I think I solved it.

In my activity add a property and decorate it with the attribute [ActivityFlowContextProperty]. Then I can send it into my workflow and use it in the activity.

#151913
Aug 10, 2016 10:42
Vote:
 

Yes, that's the way to do it.  

#151915
Aug 10, 2016 11:00
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.