Skip to content
Snippets Groups Projects
Commit ae8e1403 authored by jurgenhaas's avatar jurgenhaas
Browse files

Update all models to remove uuid and _core and also add the link to recipes

parent bdbf3e12
No related branches found
No related tags found
1 merge request!103Merging develop into main
Pipeline #1240832 passed
Showing
with 80 additions and 39 deletions
No preview for this file type
......@@ -16,6 +16,13 @@ Version v1
<script>url='bpmn_io-eca_lib_0023.xml';archive='bpmn_io-eca_lib_0023.tar.gz'</script>
{!include/library/viewer.html!}
Instead of downloading the archive, you can download and apply this model as a recipe (Drupal 10.3 or later):
```shell
composer require drupal-eca-recipe/scheduled_publishing
cd web && php core/scripts/drupal recipe ../vendor/drupal-eca-recipe/scheduled_publishing
```
## Purpose
This model demonstrates how to automatically publish and unpublish nodes by scheduled dates and times.
......@@ -54,7 +61,6 @@ The creation of this module was recorded and the video with additional explanati
- [View: get due nodes for unpublishing](/plugins/eca/views/actions/eca_views_query.md)
- [Trigger unpublish event](/plugins/eca/content/actions/eca_trigger_content_entity_custom_event.md)
- [Unpublish node](/plugins/core/actions/entity_unpublish_action_node.md)
- [Message](/plugins/core/actions/action_message_action.md)
## Changelog
......
No preview for this file type
......@@ -17,6 +17,13 @@ Version v1
<script>url='bpmn_io-eca_lib_0025.xml';archive='bpmn_io-eca_lib_0025.tar.gz'</script>
{!include/library/viewer.html!}
Instead of downloading the archive, you can download and apply this model as a recipe (Drupal 10.3 or later):
```shell
composer require drupal-eca-recipe/send_email_on_user_registration_with_field_values
cd web && php core/scripts/drupal recipe ../vendor/drupal-eca-recipe/send_email_on_user_registration_with_field_values
```
## Purpose
This model sends an email to a user that has just registered on the site. That email contains field values, that the user just provided in the registration form, where one of the fields is mandatory and the other one is optional. The email message is different, depending upon the optional field being filled or not.
......@@ -43,7 +50,6 @@ The creation of this model was recorded and [can be watched here](https://tube.t
### Conditions
- [Entity: field value is empty](/plugins/eca/content/conditions/eca_entity_field_value_empty.md)
- [Entity: field value is empty](/plugins/eca/content/conditions/eca_entity_field_value_empty.md)
### Actions
......
No preview for this file type
......@@ -18,6 +18,13 @@ Version v1
<script>url='bpmn_io-eca_lib_0024.xml';archive='bpmn_io-eca_lib_0024.tar.gz'</script>
{!include/library/viewer.html!}
Instead of downloading the archive, you can download and apply this model as a recipe (Drupal 10.3 or later):
```shell
composer require drupal-eca-recipe/send_email_to_users_of_a_given_role
cd web && php core/scripts/drupal recipe ../vendor/drupal-eca-recipe/send_email_to_users_of_a_given_role
```
## Purpose
This model sends an email to all users of a certain role. It contains a view with a contextual filter to limit the list of users to those of the given role.
......
No preview for this file type
......@@ -18,6 +18,13 @@ Version v2
<script>url='bpmn_io-eca_lib_0017.xml';archive='bpmn_io-eca_lib_0017.tar.gz'</script>
{!include/library/viewer.html!}
Instead of downloading the archive, you can download and apply this model as a recipe (Drupal 10.3 or later):
```shell
composer require drupal-eca-recipe/send_notification_including_revision_log_message_for_node_changes
cd web && php core/scripts/drupal recipe ../vendor/drupal-eca-recipe/send_notification_including_revision_log_message_for_node_changes
```
## Purpose
This model sends an email when any node got updated. That email contains a couple of tokens, e.g. the name of the user who edited the node and the link to the node. It also contains the the revision log message that the user has left in the edit form.
......@@ -50,12 +57,6 @@ The creation of this model&#039;s enhancement has also been recorded: [Watch the
### Conditions
- [Entity: compare field value](/plugins/eca/content/conditions/eca_entity_field_value.md)
- [Entity: compare field value](/plugins/eca/content/conditions/eca_entity_field_value.md)
- [Entity: compare field value](/plugins/eca/content/conditions/eca_entity_field_value.md)
- [Entity: compare field value](/plugins/eca/content/conditions/eca_entity_field_value.md)
- [Entity: compare field value](/plugins/eca/content/conditions/eca_entity_field_value.md)
- [Entity: compare field value](/plugins/eca/content/conditions/eca_entity_field_value.md)
- [Entity: compare field value](/plugins/eca/content/conditions/eca_entity_field_value.md)
### Actions
......
......@@ -17,6 +17,13 @@ Version v1
<script>url='bpmn_io-eca_lib_0004.xml';archive='bpmn_io-eca_lib_0004.tar.gz'</script>
{!include/library/viewer.html!}
Instead of downloading the archive, you can download and apply this model as a recipe (Drupal 10.3 or later):
```shell
composer require drupal-eca-recipe/switch_case_default
cd web && php core/scripts/drupal recipe ../vendor/drupal-eca-recipe/switch_case_default
```
## Purpose
Demonstrate how typical switch-case PHP constructors could be simulated in ECA models - similar to if-elsif-else statements.
......
No preview for this file type
......@@ -15,6 +15,13 @@ Version v1
<script>url='bpmn_io-eca_lib_0027.xml';archive='bpmn_io-eca_lib_0027.tar.gz'</script>
{!include/library/viewer.html!}
Instead of downloading the archive, you can download and apply this model as a recipe (Drupal 10.3 or later):
```shell
composer require drupal-eca-recipe/update_user_entity_when_they_save_an_article_node
cd web && php core/scripts/drupal recipe ../vendor/drupal-eca-recipe/update_user_entity_when_they_save_an_article_node
```
## Purpose
This model appends a comment to the author of a node when they create a new one or update an existing one.
......
No preview for this file type
......@@ -16,6 +16,13 @@ Version v1
<script>url='bpmn_io-eca_lib_0031.xml';archive='bpmn_io-eca_lib_0031.tar.gz'</script>
{!include/library/viewer.html!}
Instead of downloading the archive, you can download and apply this model as a recipe (Drupal 10.3 or later):
```shell
composer require drupal-eca-recipe/working_with_dates_and_time
cd web && php core/scripts/drupal recipe ../vendor/drupal-eca-recipe/working_with_dates_and_time
```
## Purpose
This model works with a date and time value from a node field and does various things to it: outputting in different formats, adding some time range, changing timezone, etc.
......
No preview for this file type
No preview for this file type
......@@ -15,6 +15,13 @@ Version v1
<script>url='bpmn_io-eca_test_0001.xml';archive='bpmn_io-eca_test_0001.tar.gz'</script>
{!include/library/viewer.html!}
Instead of downloading the archive, you can download and apply this model as a recipe (Drupal 10.3 or later):
```shell
composer require drupal-eca-recipe/cross_references
cd web && php core/scripts/drupal recipe ../vendor/drupal-eca-recipe/cross_references
```
## Purpose
Two different node types are referring each other. If one node gets saved with a reference to another node, the other node gets automatically updated to link back to the first node.
......@@ -41,12 +48,9 @@ Two different node types are referring each other. If one node gets saved with a
### Conditions
- [Entity type and bundle](/plugins/eca/content/conditions/eca_entity_type_bundle.md)
- [Entity type and bundle](/plugins/eca/content/conditions/eca_entity_type_bundle.md)
- [Entity: compare field value](/plugins/eca/content/conditions/eca_entity_field_value.md)
- [Entity: field value is empty](/plugins/eca/content/conditions/eca_entity_field_value_empty.md)
- [Entity: field value is empty](/plugins/eca/content/conditions/eca_entity_field_value_empty.md)
- [Entity: field value is empty](/plugins/eca/content/conditions/eca_entity_field_value_empty.md)
### Actions
......@@ -55,11 +59,7 @@ Two different node types are referring each other. If one node gets saved with a
- [Set Cross Ref](/plugins/eca/content/actions/eca_set_field_value.md)
- [void](/plugins/eca/base/actions/eca_void_and_condition.md)
- [Msg](/plugins/core/actions/action_message_action.md)
- [Msg](/plugins/core/actions/action_message_action.md)
- [Load referenced node](/plugins/eca/content/actions/eca_token_load_entity_ref.md)
- [void](/plugins/eca/base/actions/eca_void_and_condition.md)
- [Empty Cross Ref](/plugins/eca/content/actions/eca_set_field_value.md)
- [Msg](/plugins/core/actions/action_message_action.md)
## Changelog
......
No preview for this file type
No preview for this file type
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment