Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template support for UserTask definitions #4582

Open
ftreede opened this issue Oct 4, 2024 · 0 comments
Open

Template support for UserTask definitions #4582

ftreede opened this issue Oct 4, 2024 · 0 comments
Labels
backlog Queued in backlog Camunda 8 Flags an issue as related to Camunda 8 element templates enhancement New feature or request

Comments

@ftreede
Copy link

ftreede commented Oct 4, 2024

Problem you would like to solve

I want to create element templates for User Tasks with external task forms (served by a custom task application)

Right now, this is not possible since I cannot specify properties for zeebe:formDefinition or zeebe:assignmentDefinition via the template.

Also, setting a template on a user task right now has it default to the Job Worker implementation; there is no way to force it to use the new Zeebe User Tasks.

Proposed solution

A functionality to map to the zeebe:userTask, zeebe:formDefinition, zeebe:assignmentDefinition and zeebe:taskSchedule in the same way we can currently control zeebe:taskDefinition.

It would then be used in the template like this:

{
    "type": "Hidden",
    "binding": {
        "type": "zeebe:userTask",
    }
},
{
    "type": "Hidden",
    "value": "MyExternalForm",
    "binding": {
        "type": "zeebe:formDefinition",
        "property": "externalReference"
    }
},
{
    "label": "Assignee",
    "description": "Assignee for user task",
    "type": "String",
    "binding": {
        "type": "zeebe:assignmentDefinition",
        "property": "assignee"
    }
}

Alternatives considered

It is possible to show the default assignment attributes by setting "entriesVisible": true in the template. However, this will also result in showing other properties we do not want to expose. Also, it requires users to input settings like the form key manually, which is what we want to avoid by providing a template.

Additional context

No response

@ftreede ftreede added the enhancement New feature or request label Oct 4, 2024
@nikku nikku added element templates Camunda 8 Flags an issue as related to Camunda 8 labels Oct 7, 2024
@nikku nikku added the backlog Queued in backlog label Oct 7, 2024 — with bpmn-io-tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Queued in backlog Camunda 8 Flags an issue as related to Camunda 8 element templates enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants