-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support receive and send task templating
Related to camunda/camunda-modeler#3573
- Loading branch information
Showing
6 changed files
with
153 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 41 additions & 19 deletions
60
packages/zeebe-element-templates-json-schema/test/fixtures/message-property-valid.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,45 @@ | ||
export const template = { | ||
'name': 'MissingBindingName', | ||
'id': 'com.camunda.example.MissingBindingName', | ||
'appliesTo': [ | ||
'bpmn:IntermediateCatchEvent' | ||
], | ||
'elementType': { | ||
value: 'bpmn:IntermediateCatchEvent', | ||
eventDefinition: 'bpmn:MessageEventDefinition' | ||
export const template = [ | ||
{ | ||
'name': 'ValidTemplateEvent', | ||
'id': 'com.camunda.example.ValidTemplateEvent', | ||
'appliesTo': [ | ||
'bpmn:IntermediateCatchEvent' | ||
], | ||
'elementType': { | ||
value: 'bpmn:IntermediateCatchEvent', | ||
eventDefinition: 'bpmn:MessageEventDefinition' | ||
}, | ||
'properties': [ | ||
{ | ||
'label': 'foo', | ||
'type': 'String', | ||
'binding': { | ||
'type': 'bpmn:Message#property', | ||
'name': 'name' | ||
} | ||
} | ||
] | ||
}, | ||
'properties': [ | ||
{ | ||
'label': 'foo', | ||
'type': 'String', | ||
'binding': { | ||
'type': 'bpmn:Message#property', | ||
'name': 'name' | ||
{ | ||
'name': 'ValidTemplateReceiveTask', | ||
'id': 'com.camunda.example.ValidTemplateReceiveTask', | ||
'appliesTo': [ | ||
'bpmn:Task' | ||
], | ||
'elementType': { | ||
value: 'bpmn:ReceiveTask' | ||
}, | ||
'properties': [ | ||
{ | ||
'label': 'foo', | ||
'type': 'String', | ||
'binding': { | ||
'type': 'bpmn:Message#property', | ||
'name': 'name' | ||
} | ||
} | ||
} | ||
] | ||
}; | ||
] | ||
} | ||
]; | ||
|
||
export const errors = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 41 additions & 19 deletions
60
.../zeebe-element-templates-json-schema/test/fixtures/message-subscription-property-valid.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,45 @@ | ||
export const template = { | ||
'name': 'MissingBindingName', | ||
'id': 'com.camunda.example.MissingBindingName', | ||
'appliesTo': [ | ||
'bpmn:IntermediateCatchEvent' | ||
], | ||
'elementType': { | ||
value: 'bpmn:IntermediateCatchEvent', | ||
eventDefinition: 'bpmn:MessageEventDefinition' | ||
export const template = [ | ||
{ | ||
'name': 'ValidTemplateEvent', | ||
'id': 'com.camunda.example.ValidTemplateEvent', | ||
'appliesTo': [ | ||
'bpmn:IntermediateCatchEvent' | ||
], | ||
'elementType': { | ||
value: 'bpmn:IntermediateCatchEvent', | ||
eventDefinition: 'bpmn:MessageEventDefinition' | ||
}, | ||
'properties': [ | ||
{ | ||
'label': 'foo', | ||
'type': 'String', | ||
'binding': { | ||
'type': 'bpmn:Message#zeebe:subscription#property', | ||
'name': 'correlationKey' | ||
} | ||
} | ||
] | ||
}, | ||
'properties': [ | ||
{ | ||
'label': 'foo', | ||
'type': 'String', | ||
'binding': { | ||
'type': 'bpmn:Message#zeebe:subscription#property', | ||
'name': 'correlationKey' | ||
{ | ||
'name': 'ValidTemplateReceiveTask', | ||
'id': 'com.camunda.example.ValidTemplateReceiveTask', | ||
'appliesTo': [ | ||
'bpmn:Task' | ||
], | ||
'elementType': { | ||
value: 'bpmn:ReceiveTask' | ||
}, | ||
'properties': [ | ||
{ | ||
'label': 'foo', | ||
'type': 'String', | ||
'binding': { | ||
'type': 'bpmn:Message#zeebe:subscription#property', | ||
'name': 'correlationKey' | ||
} | ||
} | ||
} | ||
] | ||
}; | ||
] | ||
} | ||
]; | ||
|
||
export const errors = null; |