diff --git a/docs/modeller/bpmn/bpmn_io/index.md b/docs/modeller/bpmn/bpmn_io/index.md index b31d849a036b0175243eccf0f45205a29d8722b7..3ecfb11c7ade36a0e2c634c558630993f34e41fe 100644 --- a/docs/modeller/bpmn/bpmn_io/index.md +++ b/docs/modeller/bpmn/bpmn_io/index.md @@ -25,14 +25,15 @@ standard. | Library | Version | |-------------------------------------------------------------------------------------------------------------------------|---------| | [@bpmn-io/element-template-chooser](https://github.com/bpmn-io/element-template-chooser/blob/master/CHANGELOG.md) | 1.0.0 | -| [@bpmn-io/element-templates-validator](https://github.com/bpmn-io/element-templates-validator/blob/master/CHANGELOG.md) | 0.14.0 | -| [@bpmn-io/properties-panel](https://github.com/bpmn-io/properties-panel/blob/master/CHANGELOG.md) | 3.18.1 | +| [@bpmn-io/element-templates-validator](https://github.com/bpmn-io/element-templates-validator/blob/master/CHANGELOG.md) | 2.3.0 | +| [@bpmn-io/properties-panel](https://github.com/bpmn-io/properties-panel/blob/master/CHANGELOG.md) | 3.25.1 | | [@camunda/element-templates-json-schema](https://github.com/camunda/element-templates-json-schema) | 0.12.1 | -| [bpmn-js](https://github.com/bpmn-io/bpmn-js/blob/master/CHANGELOG.md) | 13.2.2 | -| [bpmn-js-element-templates](https://github.com/bpmn-io/bpmn-js-element-templates/blob/master/CHANGELOG.md) | 1.14.0 | -| [bpmn-js-properties-panel](https://github.com/bpmn-io/bpmn-js-properties-panel/blob/master/CHANGELOG.md) | 4.0.2 | -| [bpmn-moddle](https://github.com/bpmn-io/bpmn-moddle/blob/master/CHANGELOG.md) | 8.1.0 | +| [bpmn-auto-layout](https://github.com/bpmn-io/bpmn-auto-layout/blob/main/CHANGELOG.md) | 1.0.0 | +| [bpmn-js](https://github.com/bpmn-io/bpmn-js/blob/master/CHANGELOG.md) | 18.1.2 | +| [bpmn-js-element-templates](https://github.com/bpmn-io/bpmn-js-element-templates/blob/master/CHANGELOG.md) | 2.5.0 | +| [bpmn-js-properties-panel](https://github.com/bpmn-io/bpmn-js-properties-panel/blob/master/CHANGELOG.md) | 5.30.1 | +| [bpmn-moddle](https://github.com/bpmn-io/bpmn-moddle/blob/master/CHANGELOG.md) | 9.0.1 | | [camunda-bpmn-moddle](https://github.com/camunda/camunda-bpmn-moddle/blob/master/CHANGELOG.md) | 7.0.1 | -| [diagram-js](https://github.com/bpmn-io/diagram-js/blob/master/CHANGELOG.md) | 12.8.1 | +| [diagram-js](https://github.com/bpmn-io/diagram-js/blob/master/CHANGELOG.md) | 15.2.4 | | [jquery](https://github.com/jquery/jquery) | 3.7.1 | -| [min-dash](https://github.com/bpmn-io/min-dash) | 4.2.1 | +| [min-dash](https://github.com/bpmn-io/min-dash) | 4.2.2 | diff --git a/docs/resources/tutorials/outcastcreatures-1.md b/docs/resources/tutorials/outcastcreatures-1.md new file mode 100644 index 0000000000000000000000000000000000000000..be85bb8b4d73fa76d57827c77673a5400e3b0cef --- /dev/null +++ b/docs/resources/tutorials/outcastcreatures-1.md @@ -0,0 +1,81 @@ +--- +title: Taxonomy url alias with an anchor +tags: +- tutorial +- outcast creatures +--- +# Taxonomy url alias with an anchor + +This will walk you through how to re-write a taxonomy's url alias with an anchor ('#') (on creation or save). +For this example we will use movie "gCinema (genre)" taxonomy. + +We need to add two fields to our taxonomy term at "/admin/structure/taxonomy/manage/cinema_genre/overview/fields" +All fields will be "plain text" "simeple text". Name the fields: +field_cinema_g_name_html, and field_cinema_g_name_node_view. + +Now go to `/admin/config/workflow/eca` and create a "New Model", this will be our canvas to work with. + +- First things first, lets give our model a name, so on the right side of your screen, you will find your details palate, (which we will refer later also). +- General --> Name: Cinema (genre) +Now click the "Save" button at the top of your screen" + +- Drag and drop "Create StartEvent" (the circle from the palate on the left), This will be our "Event to fire on" That will tell eca when to activate our code. +- Template: Pre-save content entity + +Next we will add create a task for our code to do. +Click on our circle on our canvas, and you will see a small pop-up palete that contains a few items. Drag and drop the square or "Append Task" on to your canvas. + +This task we are going to fill the "field_cinema_g_name_node_view" field that we created in our taxonomy term. +- Genreal --> Name: set field value +- Template: Entity: set field value +- Custom properties --> Field name: field_cinema_g_name_node_view +- Custom properties --> Field value: [term:name] +(the reason we move the term name directly to the text field because in drupal using the term name in views and other systems is a bit tough, but a text field all system support) + +Click on the circle again and add another task. This task chain will fill the "field_cinema_g_name_html" field we created on our taxonomy term. +(the first event in this chain is to replace the spaces with dashes) +- General --> Name: replace +- Template: Tamper: find replace regex +- Custom properties --> Data to be tampered: [term:name] +- Custom properties --> Regex to find: /[\s]/ +- Custom properties --> Replacement pattern: - +- Custom properties --> Result token name: [cinema_g_name_html_replace] + +While clicked on the square, use the small pop-up and add a task. +(now we need to take our resulting string from the above task and turn it all lowercase) +- General --> Name: lowercase +- Template: Tamper convert case +- Custom properties -- > Data to be tampered: `[cinema_g_name_html_replace]` +- Custom properties -- > How to convert case: Convert to lowercase +- Custom properties -- > Result token name: `[cinema_g_name_html_lower]` + +While clicked on the square, use the small pop-up and add a task. +(we now need to set the value of "field_cinema_g_name_html) +- General --> Name: set field value +- Template: Entity: set field value +- Custom properties --> Field name: field_cinema_g_name_html +- Custom properties --> Field value: [cinema_g_name_html_lower] +----- +Now click on the circle again and add another task. +(we need to set the value of the url alias of our taxonomy term) +- General --> Name: replace +- Template: Tamper: find replace regex +- Custom properties --> Data to be tampered: [term:name] +- Custom properties --> Regex to find: /[\s]/ +- Custom properties --> Replacement pattern: - +- Custom properties --> Result token name: [cinema_g_path_replace] + +While clicked on the square, use the small pop-up and add a task. +(now we need to take our resulting string from the above task and turn it all lowercase) +- General --> Name: lowercase +- Template: Tamper convert case +- Custom properties -- > Data to be tampered: `[cinema_g_path_replace]` +- Custom properties -- > How to convert case: Convert to lowercase +- Custom properties -- > Result token name: `[cinema_g_path_lower]` + +While clicked on the square, use the small pop-up and add a task. +(we now need to set the value of "field_cinema_g_name_html) +- General --> Name: set field value +- Template: Entity: set field value +- Custom properties --> Field name: path +- Custom properties --> Field value: [cinema_g_path_lower] \ No newline at end of file diff --git a/toc/resources.yml b/toc/resources.yml index 7c55e2bbf00d90f48b72dd89f46b7ad7ce893867..35ddd1bbf603a98aa5f574883247a0090fc32528 100644 --- a/toc/resources.yml +++ b/toc/resources.yml @@ -6,5 +6,6 @@ - ECA and emails - part 1: resources/tutorials/mherchel-1.md - ECA and emails - part 2: resources/tutorials/mherchel-2.md - Looping through user networks and take action on changes: resources/tutorials/btown-1.md + - Taxonomy url alias with an anchor: resources/tutorials/outcastcreatures-1.md - Videos: - resources/videos/index.md