ECA does not recognize workflow state changes

Created on 1 May 2023, over 1 year ago
Updated 10 July 2024, 4 months ago

Problem/Motivation

The ECA module does not recognize workflow state changes

Steps to reproduce

Create an eca model for workflow. and use the template workflow all registrations with a state change from pending to complete
Create an action to send an email.
Go through the registration process and change a registration from pending to complete
You will notice in the logs and you will see the process id never fires. I have raised this issue with the eca developers and it looks like the issue might be with the entity registration module. I am also using the commerce registration module.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Fixed

Version

3.0

Component

Registration Workflow

Created by

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

Comments & Activities

  • Issue created by @jeffgtr
  • πŸ‡ΊπŸ‡ΈUnited States john.oltman

    Thanks @jeffgtr, which ECA sub-modules do you have enabled? I assume ECA Workflow? Can you provide any more details about your environment and which ECA modules you are using to capture this transition. I am not an ECA expert, but my assumption is that at a minimum you would need ECA Workflow enabled.

  • Yes I have ECA Workflow enabled. I'm uploading one of the models I have tried. It works when creating or deleting a registration it just doesn't work with workflow, like a transition from pending to complete. It would be great of entity registration would work with ECA as it looks like it's a better option than Rules

  • πŸ‡ΊπŸ‡ΈUnited States john.oltman

    Thanks much, I will take a look later this week. I will get this working, and yes, agree on ECA vs. Rules.

  • Just wondering if there has been any progress on this.

  • πŸ‡ΊπŸ‡ΈUnited States john.oltman

    Hey @jeffgtr, no progress yet, haven't started, but will have something for you by Monday morning.

  • Status changed to Fixed over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States john.oltman

    @jeffgtr I pushed the ECA Workflow support to the Dev branch. You need to do the following to get your trigger to fire:

    * Install the latest Dev branch of the Registration module to your site
    * Enable the registration_workflow module (included with the Registration module)
    * Most likely, change the "to state" in your model from "completed" to "complete", as "completed" is not a valid state ID in the default registration workflow (disregard if you created your own state)

    Would like to hear back if this worked for you. This will be included in the next release candidate which should be out in a week or so.

  • πŸ‡ΊπŸ‡ΈUnited States john.oltman

    Included in rc2 release

  • Just letting you know that I just tested it and it worked! Thank you!

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

  • πŸ‡΅πŸ‡ΉPortugal sazevedo@ua.pt

    Hello,

    I'm using drupal 10.0.0 with ECA workflow 1.1.6 and registration workflow 3.1.4 and when I create a rule with:
    Event: content_entity_view type registration
    action: Set the Registration State

    the state of the registration doesn't change. can you help me with the change of state?

    thank you
    Susana Caixinha

  • Status changed to Fixed 4 months ago
  • πŸ‡ΊπŸ‡ΈUnited States john.oltman

    Hi Susana, this is a new issue since the other issue was dealing with sending an email when state changed, and your issue seems to revolve around wanting to change the state yourself from ECA. Can you create a new issue within the issue queue for Registration and I can follow up to that new issue. Thanks!

Production build 0.71.5 2024