How can I pass a boolean parameter input to a flow to a boolean parameter in an activity within that flow?
I have an activity that has a boolean (true/false) parameter - let's call it SkipCalculation for the sake of argument - and I have a flow that has an identical parameter (i.e. also named SkipCalculation, also boolean) that needs to call the activity and pass the value of the flow's SkipCalculation parameter to the activity's SkipCalculation parameter. The trouble is, on the properties form for the activity in the flow I only get a drop-down listing "yes" and "no" for the SkipCalculation parameter of the activity - there is no option but to select yes or no. How can I set the SkipCalculation parameter of the activity to be taken from the SkipCalculation parameter of the flow ... or will it happen automatically because the parameters are identically named?
Flow parameters and activity parameters are different. You cannot refer a flow parameter in the activity using param.paramname syntax. In your case, SkipCalculation in flow cannot be referred in the activity as param.SkipCalculation .
Different ways of handling this problem :
a) flow parameters are stored in the pxflow(flowname).pyFlowParameters. So technically in the activity you can check the value of your parameter by saying Primary.pxflow(flowname).pyFlowParameters where flowname being your name of the flow where you are calling the utility from. For reusability, you need not hard code your flow name. There is an activity parameter "flowName" which holds the flow name for the same.
b) The checkbox or drop down box coming in the flow utility parameters is generated by this control "TFDropBox". So if you are an UI expert, you can customize it to be an inpur instead of a checkbox or drop down. But this might impact all the existing flows as well. so be careful with this approach.