Dependent trigger of models

Created on 22 May 2024, 7 months ago

Problem/Motivation

Hello,

Is is possible to trigger event from one model to another one ?

Simply : I would like to update content "project" and create ECA model. However don't want to make it too complicated so I would like to split it for several small actions, hence I would like to create 5 small triggers for content "project".

Of course I can, however I found out it matters the weight/position of model and it seems it is running from top. However the second Update in most cases won't pass because it already passed through the first one, hence I will never get my ECA triggered.

First Model: Update > Project > was field updated ? > if yes continue.

Second Model : Update > Project > was field updated ? > if yes continue. - However it was not because the first model did the job, hence this one things there was not any change so won't continue.

If I reorder them - still the first one works.

In my case I do have 3 very complex models and all starts with Update of the same content type and One basically should trigger the second one, but it does not work.

Hence I would like to know if I can trigger models or runn them at the "same" time.

πŸ’¬ Support request
Status

Active

Version

2.0

Component

Documentation

Created by

πŸ‡ΈπŸ‡°Slovakia coaston

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

Comments & Activities

  • Issue created by @coaston
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    This sounds like you may consider the ECA custom event. This is like an internal ECA event for "sub-processes" that you can trigger from any other model by forwarding specific tokens. The action plugin to trigger such custom events can be found at Trigger a custom event

  • πŸ‡ΈπŸ‡°Slovakia coaston

    Thanky you

    .so if I use custom event (entity aware) in one model can i load it in second model?

  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    Yes, you can call any custom event available on your site from any of the other models or from within the same.

    Just be careful about "custom event" vs. "custom event (entity aware)". They are both valid, but both have their own trigger actions, either also entity aware or not. So, the trigger and event type need to match.

  • Status changed to Fixed 7 months ago
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    I guess, this is resolved? Please re-open otherwise.

  • Status changed to Closed: works as designed 7 months ago
  • πŸ‡ΈπŸ‡°Slovakia coaston

    Hi.

    Thank you. I tested it today and now i do have one main model which has entity updtate and it has 3 ways of triggering custom entity event so i was able to change from "update" to "eca custom event" and it seems it is working as expected.

  • Status changed to Fixed 7 months ago
  • πŸ‡ΈπŸ‡°Slovakia coaston
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    Great, and thanks for your feedback.

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

  • πŸ‡­πŸ‡ΊHungary atomi

    Coaston, Could you elaborate on the solution?

    I tried the "Trigger a custom event" and the "Trigger a custom event (entity-aware)" Action, I entered the specific Model ID, but it doesn't work.

Production build 0.71.5 2024