add function publish_flow_resolve::deal_with_flow  useage:dealwith flow rule