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 93 additions and 33 deletions
......@@ -15,9 +15,16 @@ Version v1
<script>url='bpmn_io-eca_test_0010.xml';archive='bpmn_io-eca_test_0010.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/forward_tokens_to_custom_event
cd web && php core/scripts/drupal recipe ../vendor/drupal-eca-recipe/forward_tokens_to_custom_event
```
## Purpose
Demonstrates how tokens can be forwarded to triggered custom events.
Demonstrates how okens can be forwarded to triggered custom events.
## Dependencies
......@@ -40,7 +47,6 @@ Demonstrates how tokens can be forwarded to triggered custom events.
- [Trigger custom event without tokens](/plugins/eca/base/actions/eca_trigger_custom_event.md)
- [Trigger custom event with tokens](/plugins/eca/base/actions/eca_trigger_custom_event.md)
- [Msg](/plugins/core/actions/action_message_action.md)
- [Msg](/plugins/core/actions/action_message_action.md)
## Changelog
......
No preview for this file type
......@@ -15,6 +15,13 @@ Version v1
<script>url='bpmn_io-eca_test_0007.xml';archive='bpmn_io-eca_test_0007.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/redirects_for_deleted_entities
cd web && php core/scripts/drupal recipe ../vendor/drupal-eca-recipe/redirects_for_deleted_entities
```
## Purpose
When a node gets deleted, this model creates an automatic redirect config entity to redirect visitors who want to go to the deleted node to the contact form instead.
......
No preview for this file type
......@@ -14,6 +14,13 @@ Version v1
<script>url='bpmn_io-eca_test_0008.xml';archive='bpmn_io-eca_test_0008.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/save_new_entity
cd web && php core/scripts/drupal recipe ../vendor/drupal-eca-recipe/save_new_entity
```
## Purpose
Create new tag with the same label as the triggering node.
......
No preview for this file type
......@@ -14,6 +14,13 @@ Version v1
<script>url='bpmn_io-eca_test_0009.xml';archive='bpmn_io-eca_test_0009.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/set_field_values
cd web && php core/scripts/drupal recipe ../vendor/drupal-eca-recipe/set_field_values
```
## Purpose
Set single and multi value fields with values, testing different variations.
......@@ -40,7 +47,6 @@ Set single and multi value fields with values, testing different variations.
- [Entity: compare field value](/plugins/eca/content/conditions/eca_entity_field_value.md)
- [Entity: is new](/plugins/eca/content/conditions/eca_entity_is_new.md)
- [Entity: compare field value](/plugins/eca/content/conditions/eca_entity_field_value.md)
### Actions
......@@ -49,8 +55,6 @@ Set single and multi value fields with values, testing different variations.
- [Overwrite text line](/plugins/eca/content/actions/eca_set_field_value.md)
- [Append line](/plugins/eca/content/actions/eca_set_field_value.md)
- [Append another line](/plugins/eca/content/actions/eca_set_field_value.md)
- [Append another line](/plugins/eca/content/actions/eca_set_field_value.md)
- [Append line](/plugins/eca/content/actions/eca_set_field_value.md)
- [Reset lines](/plugins/eca/content/actions/eca_set_field_value.md)
- [Prepend line](/plugins/eca/content/actions/eca_set_field_value.md)
......
No preview for this file type
......@@ -18,6 +18,13 @@ Version v1
<script>url='bpmn_io-eca_test_0005.xml';archive='bpmn_io-eca_test_0005.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/views
cd web && php core/scripts/drupal recipe ../vendor/drupal-eca-recipe/views
```
## Purpose
During cron, this model switches the user context, queries a view to receive all user accounts and loops over all those users triggering a custom event for each of them to print their names in messages.
......
No preview for this file type
......@@ -14,6 +14,13 @@ Version v1
<script>url='bpmn_io-eca_test_0006.xml';archive='bpmn_io-eca_test_0006.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/write_log_message
cd web && php core/scripts/drupal recipe ../vendor/drupal-eca-recipe/write_log_message
```
## Purpose
Write log messages.
......
No preview for this file type
No preview for this file type
......@@ -15,6 +15,13 @@ Version v1
<script>url='bpmn_io-eca_lib_0006.xml';archive='bpmn_io-eca_lib_0006.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/multi_value_field_loop
cd web && php core/scripts/drupal recipe ../vendor/drupal-eca-recipe/multi_value_field_loop
```
## Purpose
This model demonstrates how to loop over all values of a multi value field without using custom events.
......
No preview for this file type
......@@ -15,9 +15,16 @@ Version v1
<script>url='bpmn_io-eca_lib_0008.xml';archive='bpmn_io-eca_lib_0008.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/redirect_403_to_login_page
cd web && php core/scripts/drupal recipe ../vendor/drupal-eca-recipe/redirect_403_to_login_page
```
## Purpose
This module redirects page requests, that would normally respond with a &quot;403 Access denied&quot; page, to the login form. Very much like the module &quot;Redirect 403 To Login Page&quot; which can be replaced with this model.
This module redirects page requests, that would normaly respond with a &quot;403 Access denied&quot; page, to the login form. Very much like the module &quot;Redirect 403 To Login Page&quot; which can be replaced with this model.
Note: this model requires ECA 1.2, or you need to apply the patch from https://www.drupal.org/project/eca/issues/3332859 if you want to use it on ECA 1.1
......
No preview for this file type
......@@ -14,6 +14,13 @@ Version v1
<script>url='bpmn_io-eca_lib_0003.xml';archive='bpmn_io-eca_lib_0003.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/redirect_unpublished
cd web && php core/scripts/drupal recipe ../vendor/drupal-eca-recipe/redirect_unpublished
```
## Purpose
If a user requests an unpublished article node, but doesn&#039;t have the permission to view unpublished nodes, then the request gets redirected to the contact form.
......
No preview for this file type
......@@ -15,11 +15,18 @@ Version v1
<script>url='bpmn_io-eca_lib_0005.xml';archive='bpmn_io-eca_lib_0005.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/user_network_changes
cd web && php core/scripts/drupal recipe ../vendor/drupal-eca-recipe/user_network_changes
```
## Purpose
Users have references to a number of networks and when one gets added or deleted, this model recognizes the exact change and displays different messages about it.
For further reading, please [go to this tutorial](/resources/tutorials/btown-1.md).
For further reading, please [go to this tutorial](/resources/tutorials/btown-1/).
## Dependencies
......@@ -44,11 +51,6 @@ For further reading, please [go to this tutorial](/resources/tutorials/btown-1.m
### Conditions
- [Compare two scalar values](/plugins/eca/base/conditions/eca_scalar.md)
- [Compare two scalar values](/plugins/eca/base/conditions/eca_scalar.md)
- [Compare two scalar values](/plugins/eca/base/conditions/eca_scalar.md)
- [Compare two scalar values](/plugins/eca/base/conditions/eca_scalar.md)
- [Compare two scalar values](/plugins/eca/base/conditions/eca_scalar.md)
- [Compare two scalar values](/plugins/eca/base/conditions/eca_scalar.md)
### Actions
......@@ -64,7 +66,6 @@ For further reading, please [go to this tutorial](/resources/tutorials/btown-1.m
new item](/plugins/core/actions/action_message_action.md)
- [Message:
item exists](/plugins/core/actions/action_message_action.md)
- [Load item provided by custom event](/plugins/eca/content/actions/eca_token_load_entity.md)
- [Message:
deleted item](/plugins/core/actions/action_message_action.md)
- [Message:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment