Provide and use an intermediary parameter during the execution process

Created on 30 April 2023, over 1 year ago
Updated 3 August 2023, over 1 year ago

Problem/Motivation

The Rules module had an option to provide a parameter value during the rule execution process (on the fly). I am unable to figure out whether and how this is possible with ECA.

Steps to reproduce

I would like to be able to interact with the executed event dynamically. A simple use case would be this:

  1. Retrieve an existing numerical field value from an entity (via ECA get field value action).
  2. Provide a number on the fly (through a temporary form?) as a parameter / token - this is where the help is needed.
  3. which - after validation - will be added to the retrieved field value (via ECA tamper)
  4. Set the new field value according to the calculation result.

Proposed resolution

Thank you for any support.

💬 Support request
Status

Closed: outdated

Version

1.1

Component

Documentation

Created by

🇮🇪Ireland marksmith

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

Comments & Activities

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

    There is an action Token: set value which can be used to set a token to any value, either scalar or even complex objects or lists/arrays, etc.

    In step 2 or your use case, you would actually use that to set a token with a name you chose to any convenient value and from that on you can use that token for e.g. math tamper, or any other subsequent condition/action.

    Hope, this is what you meant. I'm a bit uncertain due to the phrase "through a temporary form?" as there isn't a form for interaction during execution of an ECA model. But during setup of the model, the aforementioned action to set a token value is hopefully what you need. If not, let us know, please.

  • 🇮🇪Ireland marksmith

    Thank you for bearing with me. Not quite there yet. I describe a simple use case.:

    1. Entity has a numeric field, say field_date.
    2. Via ECA I would like to interact with that field as a user during the execution process. One example: rewrite the value of field_date by adding to it a value that I will provide. Say add +30 days to all dates that I selected (via ECA VBO, and ECA Tamper).

    The point is that the value which should be added to the existing field_date field value is provided on the fly, during the execution, for instance through a modal dialog form. (There is such an option to interact within the Flag module (Form behavior - Modal dialog)).

  • 🇩🇪Germany jurgenhaas Gottmadingen

    So, you need a form in the first place to provide "the value". You can either use the eca_form sub-module to build a form and then react upon form submission. Or you write an eca_vbo event, which would then allow you to provide some value upon execution.

    Not sure, if a generic eca_vbo event to provide an arbitrary value - i.e. without knowing anything about the value's purpose - might be valuable. That could be a possible feature request for the ECA VBO module.

  • Status changed to Postponed: needs info over 1 year ago
  • 🇩🇪Germany jurgenhaas Gottmadingen
  • Status changed to Closed: outdated over 1 year ago
  • 🇩🇪Germany jurgenhaas Gottmadingen
Production build 0.71.5 2024