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

Update sample model 0004

parent 70e09045
No related branches found
No related tags found
1 merge request!118Merging develop into main
Pipeline #1407026 passed
---
title: ECA Library - Switch Case Default
version: v1
version: v2
tags:
- bpmn
- library
......@@ -12,7 +12,7 @@ tags:
---
# Switch Case Default
Version v1
Version v2
<script>url='bpmn_io-eca_lib_0004.xml';archive='bpmn_io-eca_lib_0004.tar.gz'</script>
{!include/library/viewer.html!}
......@@ -50,11 +50,14 @@ switch ($field_select) {
}
```
Important note: after the action &quot;Set default Status to 2&quot;, ECA first checks the conditions of ALL successors; only then does it execute the actions that follow for those conditions that return TRUE. That&#039;s why the &quot;no condition&quot; link has no condition, as we want to execute that path in any case, but not before the top two paths had a chance to change the status. Therefore the condition, if the status is still 2, happens with a delay, i.e. really after everything else has been completed.
## Dependencies
- config
- node.type.article
- module
- eca_base
- eca_content
## Used plugins
......@@ -66,15 +69,21 @@ switch ($field_select) {
### Conditions
- [Entity: compare field value](/plugins/eca/content/conditions/eca_entity_field_value.md)
- [Compare two scalar values](/plugins/eca/base/conditions/eca_scalar.md)
### Actions
- [Set Status to 3](/plugins/eca/content/actions/eca_set_field_value.md)
- [Set Status to 4](/plugins/eca/content/actions/eca_set_field_value.md)
- [Set default Status](/plugins/eca/content/actions/eca_set_field_value.md)
- [Set default Status to 2](/plugins/eca/content/actions/eca_set_field_value.md)
- [Message containing status value](/plugins/core/actions/action_message_action.md)
## Changelog
`v1`
: Initial version
`v2`
: Add the &quot;no condition&quot; for the default value
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