BPMN: Conditional with trigger type => After record save

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rabii
    Active Community Member
    • Jun 2016
    • 1250

    BPMN: Conditional with trigger type => After record save

    Hi all,

    This is just to share with you something i discover about how the bpmn works.

    When using a conditional start event with Trigger Type => After record save if you want to check in the next gateway if the entity is new Or if entity is Not new, the flow will always go to !entity\isNew() no matter what the conditions are and the reason why is that It's how it works / designed. Once the first node is processed, the entity already is not new. So instead you can use two separate entries as shown in the attached image.

    Hope this helps someone and thanks to Yuri who explained how it works.

    Cheerio
    Attached Files
    Rabii
    Web Dev
  • item
    Active Community Member
    • Mar 2017
    • 1476

    #2
    Thanks for the tip Rabii.
    If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

    Comment

    • macistda
      Member
      • Jul 2022
      • 76

      #3
      Hi,

      entity\isNew() can be used in Before Safe Scripts. In BPM the Entity must already exist that the workflow can be triggered. If the entity would not exist, the workflow would not know to trigger on what data.

      Comment

      Working...