How can I terminate a workflow?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ednt
    Member
    • May 2022
    • 52

    #1

    How can I terminate a workflow?

    Hi,

    in a workflow I extract a variable from a json
    If this variable is 0 I don't want to execute the rest of the workflow (a Send HTTP Request follows)
    Ok, I can use an illegal line in an if, then the workflow terminates, but this is not nice.
    Is there a way to terminate a workflow correct?

    I don't find something like workflow\stop() or break()

    Or do I really need to split the workflow and trigger the next one by the script?

    Best regards
  • yuri
    Member
    • Mar 2014
    • 9101

    #2
    Hi,

    It's better to use BPM for such cases. There's no any intended ability to terminate a Workflow rule.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • Ednt
      Member
      • May 2022
      • 52

      #3
      Ok, then I switch to a Flowchart.

      Comment

      Working...