diff --git a/resources/zeebe.json b/resources/zeebe.json index 965e16f..15922b6 100644 --- a/resources/zeebe.json +++ b/resources/zeebe.json @@ -364,7 +364,7 @@ ] }, { - "name": "Priority", + "name": "PriorityDefinition", "superClass": [ "Element" ], @@ -375,7 +375,7 @@ }, "properties": [ { - "name": "value", + "name": "priority", "type": "String", "isAttr": true } diff --git a/test/fixtures/xml/userTask-zeebe-priority.part.bpmn b/test/fixtures/xml/userTask-zeebe-priority.part.bpmn index fa103ee..52a73db 100644 --- a/test/fixtures/xml/userTask-zeebe-priority.part.bpmn +++ b/test/fixtures/xml/userTask-zeebe-priority.part.bpmn @@ -4,6 +4,6 @@ xmlns:zeebe="http://camunda.org/schema/zeebe/1.0" > - + diff --git a/test/spec/xml/read.js b/test/spec/xml/read.js index 16e15da..fff2433 100644 --- a/test/spec/xml/read.js +++ b/test/spec/xml/read.js @@ -707,7 +707,7 @@ describe('read', function() { }); - describe('zeebe:Priority', function() { + describe('zeebe:PriorityDefinition', function() { it('on UserTask', async function() { @@ -727,8 +727,8 @@ describe('read', function() { $type: 'bpmn:ExtensionElements', values: [ { - $type: 'zeebe:Priority', - value: '75' + $type: 'zeebe:PriorityDefinition', + priority: '75' } ] } diff --git a/test/spec/xml/write.js b/test/spec/xml/write.js index 916b875..e89bce1 100644 --- a/test/spec/xml/write.js +++ b/test/spec/xml/write.js @@ -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 = ''; + 'priority="100" />'; // when const xml = await write(priority);