Compare Field Value doesn't work

Created on 21 March 2024, 9 months ago
Updated 5 April 2024, 9 months ago

Problem/Motivation

I have a content type "ISPMF-PR13-001 User Creation, Modification and Deletion" which has "field_user_status", "field_status_noc", "field_manager_approval" and "field_business_unit" fields

  • In the "field_user_status", I have "awaiting_approval", "submitted_to_noc" and "submitted_to_noc"
  • In the "field_status_noc", I have "pending" and "completed"
  • In the "field_manager-approval", I have "approved" and "rejected"
  • In the "field_business_unit", I have "gsdc" and "dt"

I have ECA installed with BPMN modeler. I have created a a model as following;

Event

  • Presave content ""ISPMF-PR13-001 User Creation, Modification and Deletion"

Condition Set 1 (leading to an AND task)

  • Compare Field Value: "field_manager_approval"="approved"
  • Compare Field Value: "field_user_status"="awaiting_approval"
  • Compare Field Value: "field_business_unit"="dt"

Action Set 1

  • Set Field Value: "field_user_status"="submitted_to_noc"
  • Send Email

Condition Set 2 (leading to an AND task)

  • Compare Field Value: "field_status_noc"="completed"
  • Compare Field Value: "field_business_unit"="dt"

Action Set 2

  • Set Field Value: "field_user_status"="submitted_to_sdm"
  • Send Email

Now based on the Condition Set 1, Action Set 1 works fine. But based on the Condition Set 2, Action Set 2 doesn't work. What I've noticed is that it doesn't check Compare Field Value: "field_status_noc"="completed", It proceed to Action Set 2 even though the "field_status_noc"="pending".

Please help.

- Shiyamk

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Fixed

Version

1.1

Component

Miscellaneous

Created by

🇱🇰Sri Lanka shiyamk

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @shiyamk
  • 🇩🇪Germany jurgenhaas Gottmadingen

    Both your condition sets are interpreted as OR conditions. If at least one of them is true, the process will go to the AND block and continue from there. If you want to create AND conditions, you have to put them into a sequence.

    Here is an example that shows how AND and OR conditions can be created: Combined Conditions

  • 🇱🇰Sri Lanka shiyamk

    Hi Jurgenhaas,

    Thank you very much for your response and the module.

    I knew that I must've been doing something wrong. I will check tonight when I get to my machine later tonight and feedback.

    Again, Thank you and I love the module.

    -ShiyamK

  • 🇱🇰Sri Lanka shiyamk

    Works like a charm.

    Thanks alot.

    - ShiyamK

  • Status changed to Fixed 9 months ago
  • 🇩🇪Germany jurgenhaas Gottmadingen

    Thanks for your feedback.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024