question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The source of the output is not editable when using element template

See original GitHub issue

Describe the bug

When trying to create a service task template with outputs, the output doesn’t appear correctly. The target is editable instead of the source.

The element template:

{
  "$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json",
  "name": "Example",
  "id": "Example",
  "description": "The output is not correct",
  "appliesTo": [
    "bpmn:ServiceTask"
  ],
  "groups": [
    {
      "id": "inputs",
      "label": "Inputs"
    },
    {
      "id": "outputs",
      "label": "Outputs"
    }
  ],
  "properties": [
    {
      "value": "example-v1",
      "binding": {
        "type": "zeebe:taskDefinition:type"
      },
      "editable": false
    },
    {
      "description": "Output value",
      "group": "outputs",
      "label": "myTarget",
      "value": "myTarget",
      "type": "String",
      "binding": {
        "type": "zeebe:output",
        "source": "=\"mySource\""
      },
      "constraints": {
        "notEmpty": true
      }
    }
  ]
}

When the element template is linked: In the XML: <zeebe:output source="=&#34;mySource&#34;" target="myTarget" />

Screenshot from 2022-11-08 11-32-13

When the element template is unlinked: In the XML: <zeebe:output source="=&#34;mySource&#34;" target="myTarget" />

Screenshot from 2022-11-08 11-46-31

Steps to reproduce

  1. Create a task using the element template
  2. Check that the source is not editable
  3. Unlink the element template using the camunda modeler
  4. Check that without the element template, the source is editable

Expected behavior

The output source is editable when the element template is linked

Environment

Environent:

  • OS: Ubuntu 20.04.3 LTS
  • Camunda Modeler Version: 5.5.0
  • Execution Platform: Camunda 8 Platform Self Managed
  • Installed plug-ins: None

Additional context

Summarized here.

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tkuycommented, Nov 25, 2022

Thank you for your advice @nikku This solution is good to me, it solves our problem! I’m closing the issue.

0reactions
nikkucommented, Nov 25, 2022

Moving to backlog.

The essential requested feature is to be able to not only assign an output variable, but rather incorporate the output into the process context (add to a list) using an expression.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Content Template element - HTML - MDN Web Docs
The HTML element is a mechanism for holding HTML that is not to be rendered immediately when a page is loaded but may...
Read more >
Modify X-editable templates on a per element basis (not ...
With the features currently offered by the X-editable library, I'm not seeing a way to do what you want to do just by...
Read more >
Noneditable plugin | Docs - TinyMCE
Select the desired editor content. From the menu bar, select View > Source code .
Read more >
Element Template - Bentley - Product Documentation
An element template is a named set of element properties that can be applied to existing elements or can be used to set...
Read more >
Tips and tricks in Rational Publishing Engine - IBM
The data applied to the elements is also copied. If the data comes from a source that does not exist in the template...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found