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

Support Due and Follow-Up Date Properties in Camunda 8 User Tasks #3484

Closed
koevskinikola opened this issue Mar 1, 2023 · 4 comments · Fixed by #3527
Closed

Support Due and Follow-Up Date Properties in Camunda 8 User Tasks #3484

koevskinikola opened this issue Mar 1, 2023 · 4 comments · Fixed by #3527
Assignees
Labels
BPMN Camunda 7 Flags an issue as related to Camunda Automation Platform 7 enhancement New feature or request
Milestone

Comments

@koevskinikola
Copy link
Member

koevskinikola commented Mar 1, 2023

Problem you would like to solve

Currently, due and follow-up dates are a missing piece for user tasks in Camunda Platform 8. They will be supported with https://github.com/camunda/product-hub/issues/215.

Proposed solution

The dueDate and followUpDate attributes are added through a new user task extension element called taskSchedule. The BPMN XML should look like the following example:

<userTask id="userTaskWithDates" name="userTaskWithDates">
    <extensionElements>
        <zeebe:taskSchedule dueDate="2023-02-24T14:29:00Z" followUpDate="=followUpDateVar"/>
    </extensionElements>
</userTask>

The dueDate and followUpDate attributes support static values and FEEL expressions. The expected output should be a valid ISO 8601 combined date and time representation (as with time date timer events). For static values, it might be a good UX to validate the DateTime string in the modeler.

Additional context

The Zeebe workflow engine will perform the following validations on the dueDate and followUpDate values:

  • During BPMN resource deployment - if an expression is provided, assert that it is a valid FEEL expression.
  • (ZPA stretch goal) During BPMN resource deployment - if a static value or static expression is provided, assert that a valid ISO 8601 DateTime string is provided.
  • During user task activation - assert that a valid ISO 8601 DateTime string is provided.

The target release for this epic is Camunda Platform 8 8.2.0.

@koevskinikola koevskinikola added Camunda 7 Flags an issue as related to Camunda Automation Platform 7 BPMN enhancement New feature or request labels Mar 1, 2023
@nikku nikku added this to the 8.2 milestone Mar 1, 2023
@marstamm
Copy link
Member

marstamm commented Mar 1, 2023

Moving to ready to be picked up in the next planning as this has the target version 8.2

@marstamm marstamm added the ready Ready to be worked on label Mar 1, 2023
@philippfromme philippfromme changed the title Support due and follow-up date attributes in C8 user tasks Support Due and Follow-Up Date Properties in Camunda 8 User Tasks Mar 2, 2023
@philippfromme philippfromme added the in progress Currently worked on label Mar 13, 2023 — with bpmn-io-tasks
@philippfromme philippfromme removed the ready Ready to be worked on label Mar 13, 2023
philippfromme added a commit to camunda/zeebe-bpmn-moddle that referenced this issue Mar 13, 2023
philippfromme added a commit to camunda/zeebe-bpmn-moddle that referenced this issue Mar 13, 2023
@philippfromme
Copy link
Contributor

@koevskinikola I assume, the linter should disallow using due and follow-up date before version 8.2?

@koevskinikola
Copy link
Member Author

Hey @philippfromme, yes, user task due and follow-up dates will be supported from Zeebe 8.2.0 so we should disallow them in earlier versions.

@philippfromme philippfromme added fixed upstream Requires integration of upstream change and removed in progress Currently worked on labels Mar 26, 2023
@bpmn-io-tasks bpmn-io-tasks bot added needs review Review pending and removed fixed upstream Requires integration of upstream change labels Mar 30, 2023
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BPMN Camunda 7 Flags an issue as related to Camunda Automation Platform 7 enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants