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

Lint zeebe:TaskSchedule Extension Elements #86

Merged
merged 4 commits into from
Mar 17, 2023
Merged

Lint zeebe:TaskSchedule Extension Elements #86

merged 4 commits into from
Mar 17, 2023

Conversation

philippfromme
Copy link
Collaborator

@philippfromme philippfromme commented Mar 15, 2023

zeebe:TaskSchedule extension elements supported by Camunda 8.2 will be validated by the engine. Both dueDate and followUpDate will be validated to be either valid FEEL expressions or valid ISO 8601 DateTime strings. zeebe:TaskSchedule extension elements are only allowed by Camunda 8.2 and newer.

<userTask id="UserTask_1">
    <extensionElements>
        <zeebe:taskSchedule dueDate="2023-04-20T04:20:00Z" followUpDate="=followUpDate" />
    </extensionElements>
</userTask>

Related to camunda/camunda-modeler#3484

@philippfromme philippfromme changed the title Task schedule Lint zeebe:TaskSchedule Extension Elements Mar 15, 2023
@philippfromme philippfromme marked this pull request as ready for review March 15, 2023 10:36
@bpmn-io-tasks bpmn-io-tasks bot added needs review Review pending and removed in progress Currently worked on labels Mar 15, 2023
Comment on lines -11 to -14
if (!is(node, 'zeebe:PropertiesHolder')) {
return;
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you give me a little more context to this here? Why are we removing it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We removed this type from the Zeebe model extension (cf. camunda/zeebe-bpmn-moddle#44 and bpmn-io/bpmn-js-properties-panel#861) because any element can have these extension properties. So there's no need for zeebe:PropertiesHolder. Same in Camunda 7.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, thanks! Was trying to understand the relation to this PR. Will have another look at the PR

Copy link
Contributor

@smbea smbea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@merge-me merge-me bot merged commit 51ad00d into main Mar 17, 2023
@merge-me merge-me bot deleted the task-schedule branch March 17, 2023 08:59
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants