- ๐ฉ๐ชGermany jurgenhaas Gottmadingen
I've attempted to add an ECA Action that collects our mergevars. You can see it here.
Amazing, well done.
Using that, and the config file attached here, I thought I could initialize those in the configurations. Any feedback on those elements would be welcome, I'm not having great success getting a good configuration created.
There are 3 problems I found:
- You've change the ID of the entity to
signup_form_[item:id]
but the config name remained unchanged asmailchimp_signup.mailchimp_signup.[item:id]
. That causes a problem that the config name doesn't match the entity ID and that makes it invalid. Please keep that consistent. - In the condition where you check if the list of mergevars equals zero, there is a missing "s", you check against the list
mergevar
, but that needs to bemergevars
. - And the last one took me a while to see what going wrong. If you run the ECA model twice, then the config entity is correct, but not for the first time. The reason for that is that you call
mailchimp_get_mergevars
in your new action plugin before the signup entity has been created. That seems to be causing an issue.
Hope this helps you going the next steps. Please let me know if I should have another look when you addressed those issues.
- You've change the ID of the entity to
- ๐บ๐ธUnited States gcb
Exciting stuff! Some thoughts here
I've attempted to add an ECA Action that collects our mergevars. You can see it here.
Using that, and the config file attached here, I thought I could initialize those in the configurations. Any feedback on those elements would be welcome, I'm not having great success getting a good configuration created.
- ๐ฉ๐ชGermany jurgenhaas Gottmadingen
This is now ready for review. Here are the steps to take:
- Checkout the MR above
- Unpack the attached recipe
- Add the requirements in composer.json of the recipe to the requirement of the Drupal project
- Update composer to install all the dependencies
- Apply the recipe
The ECA model currently responds to a changed
api_timeout
config value. This can later be changed when oauth is being sorted out.This model reads the lists from the MC account and then creates (or updates) basic signup entities and blocks. There are still some details that need to be sorted, especially the merge field information that's in the signup entity. I'm not sure where they're coming from or how they get generated.
If you want to review or modify the ECA model, you need to install the bpmn_io module and then go to
/admin/config/workflow/eca
where you can view or edit the model. - ๐ฉ๐ชGermany jurgenhaas Gottmadingen
The action plugin appeared to be straightforward, already available in the MR above. I'm now building the ECA model that creates the entities and blocks.
- @jurgenhaas opened merge request.