add to_param method to FlowTask class