Is there a way to Drupal ECA model 'open' in Camuda?

Created on 20 May 2023, over 1 year ago
Updated 22 May 2023, over 1 year ago

Motivation

Myself and my daughter ( MissClickalot ) spend a lot of time working on creating educational tutorial material and we want to give a something concrete to the ECA project by producing a detailed, illustrated step-by-step tutorial on how to design and build a Drupal ECA model to do something and concrete.

When it come to describing flow modelling we routinely produce things like this...

A flowing journey

...and we'd like to do the same with an ECA model as part of the tutorial.

The snag is that we need our Drupal ECA model as a vector, specifically an SVG vector.

We can see that the local desktop version of Camunda does indeed provide the facility for SVG export but the questions is how do we get our Drupal ECA model in there in order to export it?

We're not concerned by, and completely understand that the model won't 'work' in the desktop app, we just want an SVG representation of it

OR, might it even be possible to somehow employ BPMN.iOs SVG export in the Drupal UI - that would be sensational!

Look forward to dialogue on this.

💬 Support request
Status

Active

Version

1.0

Component

Documentation

Created by

🇬🇧United Kingdom SirClickALot Somerset

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @SirClickALot
  • 🇩🇪Germany jurgenhaas Gottmadingen

    This is very nice, thanks @SirClickALot and @MissClickalot for working on this. Really looking forward to what you're coming up with, sounds very interesting!

    WRT the Camunda desktop client, we haven't spent much time on it recently, as it doesn't seem to be used by anyone. However, it should be working and from your other issues you posted recently, it sounds like it's working OK. But the format of the bpmn_io modeller and the Camunda modeller are slightly different and therefore, each model knows about its creating modeller and will only be editable in just that and not any other one. Side note: that might be some work for the future, to migrate models from one modeller to another, eventually.

    Building SVG export into the bpmn_io modeller should be possible, but we haven't looked into that yet.

    What we're doing for the ECA Guide is to utilize a javascript snippet, to render a model as SVG in the browser. Maybe that would help you getting what you need? The snippet of the ECA Guide library for that task can be found at https://gitlab.lakedrops.com/drupal/documentation/eca/-/blob/main/includ...

  • 🇬🇧United Kingdom SirClickALot Somerset

    Thanks @jurgenhaas ,
    Sorry if I'm a bit thick on this one but when you say

    What we're doing for the ECA Guide is to utilize a javascript snippet, to render a model as SVG in the browser.

    That sounds very interesting and if we can indeed view our model as an SVG using the snippet you pointed us to then sure, that'll do us for now but I don't understand to use it.

    Inspecting the rendered model on a documentation page (for example, https://ecaguide.org/library/simple/calculated_entity_field/) I can clearly see that it is an SVG and it'll work perfectly for us but how do I pass a model I've built via the Drupal UI to that snippet in order to render it?

  • 🇩🇪Germany jurgenhaas Gottmadingen

    You could either use that html snippet to see, how that included javascript code renders the model and do something like that locally. Or this could be used to start working on SVG export feature in bpmn_io. I'd be happy to help there, but I'm too busy this week and can't do that short term.

Production build 0.71.5 2024