BPMNFlowchart – Only first enrichment task executes, others are skipped

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • noob
    Junior Member
    • Jul 2025
    • 19

    #1

    BPMNFlowchart – Only first enrichment task executes, others are skipped

    Hello everyone,

    I’m having an issue with a BPMNFlowchart process in EspoCRM.
    The process is meant to automatically enrich Cases upon creation (e.g., via email) by updating several fields:
    • " Date d’ouverture " (works)
    • " Priority " (does not work)
    • " Origine du ticket " (does not work)
    • " Catégorie du ticket " (does not work)

    The process starts correctly with a Start Event “Case Created”. The first task (“Set Date d’ouverture to Created At”) executes without any problem.
    However, the following tasks : “Set Priority from Urgent Keyword”, “Set Origine du ticket” and “Set Ticket Category” are never executed( I see no update for them in the case logs).
    Important notes
    • I have checked the internal field names in the Entity Manager (the labels).
    • Enum values used in formulas (Normal, None, Incident, Demande, etc.) exactly match what is defined in the field settings.
    • BPMN is active and published.
    • This happens both when creating a Case via email and when creating one manually.

    Question


    Has anyone else experienced this issue where the first BPMN task runs, but subsequent tasks in the same process are skipped without error? Could this be related to how BPMN handles multiple consecutive update tasks on the same record?

    I’m attaching:
    1. Full BPMNFlowchart view
    2. Details of the “working” task (Init Date d’ouverture)
    3. Details of the “non-working” tasks with their formulas

    Any help would be greatly appreciated!
    Click image for larger version

Name:	image.png
Views:	4
Size:	27.8 KB
ID:	120373
    Click image for larger version

Name:	image.png
Views:	4
Size:	48.7 KB
ID:	120374
    Click image for larger version

Name:	image.png
Views:	4
Size:	37.5 KB
ID:	120375
    Click image for larger version

Name:	image.png
Views:	3
Size:	65.0 KB
ID:	120376​​

  • yuri
    EspoCRM product developer
    • Mar 2014
    • 9248

    #2
    Hi,

    Checking Espo logs usually clarify the problem.

    I discourage writing formula script with random syntax. Please do no write random syntax, it won't work. I recommend not writing formula script unless you know the syntax, try to implement the same without formula first.
    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

    Working...