Can we discard or reject message in solace streaming?

ajinkyasagar
ajinkyasagar Member Posts: 24
edited May 2022 in General Discussions #1

this is our declaration

spring:
  cloud: 
    function: 
      definition: inTechVal|inFuncVal|map|persist|report
    stream:
      function:
        bindings:
          inTechVal|inFuncVal|map|persist|report-in-0: input
          inTechVal|inFuncVal|map|persist|report-out-0: output




here solace streaming is sending message out to solace as per out mapping

e.g.  after executing all these function(inTechVal,inFuncVal,map,persist,report) it is putting on out queue  


Here i want to exit flow after persist function and message should not go to next function i.e report and message should get discarded and not go to another solace topic.