Skip to content

Commit

Permalink
fix: rename zeebe:priority to zeebe:priorityDefinition
Browse files Browse the repository at this point in the history
Closes #62
  • Loading branch information
Skaiir authored and barmac committed Aug 8, 2024
1 parent 1ab5e71 commit 17cb0f0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions resources/zeebe.json
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@
]
},
{
"name": "Priority",
"name": "PriorityDefinition",
"superClass": [
"Element"
],
Expand All @@ -375,7 +375,7 @@
},
"properties": [
{
"name": "value",
"name": "priority",
"type": "String",
"isAttr": true
}
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/xml/userTask-zeebe-priority.part.bpmn
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
xmlns:zeebe="http://camunda.org/schema/zeebe/1.0"
>
<bpmn:extensionElements>
<zeebe:priority value="75" />
<zeebe:priorityDefinition priority="75" />
</bpmn:extensionElements>
</bpmn:userTask>
6 changes: 3 additions & 3 deletions test/spec/xml/read.js
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ describe('read', function() {
});


describe('zeebe:Priority', function() {
describe('zeebe:PriorityDefinition', function() {

it('on UserTask', async function() {

Expand All @@ -727,8 +727,8 @@ describe('read', function() {
$type: 'bpmn:ExtensionElements',
values: [
{
$type: 'zeebe:Priority',
value: '75'
$type: 'zeebe:PriorityDefinition',
priority: '75'
}
]
}
Expand Down
10 changes: 5 additions & 5 deletions test/spec/xml/write.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,16 +372,16 @@ describe('write', function() {
});


it('zeebe:Priority', async function() {
it('zeebe:PriorityDefinition', async function() {

// given
var priority = moddle.create('zeebe:Priority', {
value: '100'
var priority = moddle.create('zeebe:PriorityDefinition', {
priority: '100'
});

var expectedXML = '<zeebe:priority ' +
var expectedXML = '<zeebe:priorityDefinition ' +
'xmlns:zeebe="http://camunda.org/schema/zeebe/1.0" ' +
'value="100" />';
'priority="100" />';

// when
const xml = await write(priority);
Expand Down

0 comments on commit 17cb0f0

Please sign in to comment.