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.

Support Binding to Form Files

See original GitHub issue

Similar to how I can configure the binding of a DMN file through the properties panel I want to be able to configure a binding of a form file. This involves both changes in the Camunda Modeler and in the form-js library.

Sketch

image

Bindings

  • deployment
  • latest
  • version
  • versionTag is out of scope for now

New Start Event / User Task Properties

  • camunda:formRef (maps to id property of the form)
  • camunda:formRefBinding (deployment, latest or version)
  • camunda:formRefVersion (maps to an internal version property set by the engine)

New Form Properties

  • id (maps to camunda:formRef property of a start event / user task)

Example

Form

{
  id: 'formId',
  type: 'default',
  components: [
    ...
  ]
}

id will be set on the root of the form JSON.

BPMN

<bpmn:userTask
  id="Activity_1"
  camunda:formRef="formId"
  camunda:formRefBinding="version"
  camunda:formRefVersion="7">
</bpmn:userTask>

or

<bpmn:userTask
  id="Activity_1"
  camunda:formRef="formId"
  camunda:formRefBinding="latest">
</bpmn:userTask>

or

<bpmn:userTask
  id="Activity_1"
  camunda:formRef="formId"
  camunda:formRefBinding="deployment">
</bpmn:userTask>

These properties will be set through the properties panel. Therefore, the root must be selectable/form fields must be deselectable.

Steps


Related to https://github.com/bpmn-io/form-js/issues/80 Related to https://github.com/camunda/camunda-bpmn-moddle/issues/73

Related to CAM-13264.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
MaxTrucommented, Aug 24, 2021

FYI: the specification and backend implementation on platform side is done, so this is ready for implementation

1reaction
philippfrommecommented, Sep 13, 2021

Feature is merged and waiting to be released and integrated into Camunda Modeler.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upload files in ASP.NET Core - Microsoft Learn
ASP.NET Core supports uploading one or more files using buffered model binding for smaller files and unbuffered streaming for larger files.
Read more >
ASP.NET Core file upload form binding problems
I try to bind my view's form to upload ...
Read more >
Binding the Form and Components to Code | IntelliJ IDEA ...
There are two basic ways you can approach explicit binding depending on your situation: Bind a form to an existing class, and its...
Read more >
Add Metadata Form Binding s
The image below shows example metadata forms, sorted by name with associated bindings. Metadata forms can be bound to more than one object...
Read more >
Binding data to form fields - Adobe Support
To bind to a form field, the controlName value must be the value of the id or name attribute of the form control...
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