Add event for checkIfEmpty check

Created on 25 October 2024, 3 months ago

Problem/Motivation

Currently each automator rule decides if the field you are trying to fill out is empty and only runs when its empty.

There might be programatical reasons why you want to rerun a specific automator instruction even if its filled out, like other rules that evaluates the response and wants to redo it.

Or other use cases not thought of yet.

Steps to reproduce

Proposed resolution

* Add an even after the isEmpty check has run where the answer can be modified before its being tested.
* Give the whole automatorConfig and the entity as context, so its easy to just trigger the event on a specific automator instruction.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.0

Component

AI Automators

Created by

🇩🇪Germany marcus_johansson

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

Merge Requests

Comments & Activities

  • Issue created by @marcus_johansson
  • First commit to issue fork.
  • Merge request !429Resolve #3483462 "Add event for" → (Open) created by Unnamed author
  • Pipeline finished with Success
    5 days ago
    Total: 270s
    #405536
  • 🇩🇪Germany marcus_johansson

    Sorry, the issue itself might not have been clear - what we are looking for is to make it possible to manipulate this value from the outside.

    Right now and Automator is only ever running if the value is empty, but there might be use cases where you want to decide yourself and control it via code (you can do it via ECA already).

    So the solution is to either take the value that comes out of the funciton and add it in an event or take the value that comes out of the function and run it through a hook. That way any listener/hook user could manipulate the value on the fly so they can force the Automator to run/not run.

    Hope that make it more clear. Will set it back to Needs Work and if you will be working on it today, you can ping me on Drupal Slack if you want - user Marcus Johansson.

    Good luck in Tbilisi!

Production build 0.71.5 2024