-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(elementTemplate): edit element-template-generation-plugin (#365)
* better visibility if a field is a `inputParameter` or `outputParameter` * it is now only possible to give one `targetPlatform` * interrupt generation and log error when no `targetPlatform` is given * set `version` type to `int` and make it optional * remove `targetPlatform` as output directory * add configuration for naming the input value
- Loading branch information
Showing
23 changed files
with
567 additions
and
111 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,5 +35,5 @@ | |
* | ||
* @return the version of the element template | ||
*/ | ||
String version() default "0-1"; | ||
int version() default -1; | ||
} |
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
41 changes: 41 additions & 0 deletions
41
...s/camunda7/src/test/resources/expected-test-element-template-with-named-input-values.json
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"$schema" : "https://unpkg.com/@camunda/[email protected]/resources/schema.json", | ||
"name" : "Test", | ||
"id" : "test", | ||
"appliesTo" : [ "bpmn:ServiceTask" ], | ||
"properties" : [ { | ||
"value" : "external", | ||
"label" : "Implementation Type", | ||
"type" : "String", | ||
"editable" : false, | ||
"binding" : { | ||
"type" : "property", | ||
"name" : "camunda:type" | ||
} | ||
}, { | ||
"value" : "test", | ||
"label" : "Topic", | ||
"type" : "String", | ||
"editable" : false, | ||
"binding" : { | ||
"type" : "property", | ||
"name" : "camunda:topic" | ||
} | ||
}, { | ||
"value" : "${name}", | ||
"label" : "Input: name", | ||
"type" : "String", | ||
"binding" : { | ||
"type" : "camunda:inputParameter", | ||
"name" : "name" | ||
} | ||
}, { | ||
"value" : "${id}", | ||
"label" : "Input: id", | ||
"type" : "String", | ||
"binding" : { | ||
"type" : "camunda:inputParameter", | ||
"name" : "id" | ||
} | ||
} ] | ||
} |
26 changes: 26 additions & 0 deletions
26
...ct/templates/camunda7/src/test/resources/expected-test-element-template-with-version.json
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"$schema" : "https://unpkg.com/@camunda/[email protected]/resources/schema.json", | ||
"name" : "Test", | ||
"id" : "test", | ||
"version" : 1.0, | ||
"appliesTo" : [ "bpmn:ServiceTask" ], | ||
"properties" : [ { | ||
"value" : "external", | ||
"label" : "Implementation Type", | ||
"type" : "String", | ||
"editable" : false, | ||
"binding" : { | ||
"type" : "property", | ||
"name" : "camunda:type" | ||
} | ||
}, { | ||
"value" : "test", | ||
"label" : "Topic", | ||
"type" : "String", | ||
"editable" : false, | ||
"binding" : { | ||
"type" : "property", | ||
"name" : "camunda:topic" | ||
} | ||
} ] | ||
} |
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
Oops, something went wrong.