-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
121 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,42 @@ | ||
# 02-bpmn | ||
# 02-bpmn | ||
|
||
Use this to add Company specific BPMN stuff like business objects used in all projects. | ||
|
||
The following structure is generated by `../helperCompany.scala init`: | ||
|
||
```bash | ||
02-bpmn/src | ||
| main/resources | ||
| main/scala/company/bpmn | ||
| | CompanyBpmnDsl.scala | ||
| test/scala/company/bpmn | ||
``` | ||
|
||
## CompanyBpmnDsl | ||
|
||
Provide some Company specific things for the BPMN DSL, like additional Documentation, like Links to Specifications. | ||
|
||
Example: | ||
|
||
```scala mdoc | ||
import camundala.bpmn.BpmnDsl | ||
|
||
trait CompanyBpmnDsl extends BpmnDsl: | ||
|
||
def postmanRef: Option[String] = None | ||
def specPage: Option[String] = None | ||
|
||
override def companyDescr = | ||
s""" | ||
|${postmanRef.map(r => s"[Test Client (Postman)]($postmanRef)").mkString} | ||
| | ||
|${specPage.map(sp => s"**[Specification (Confluence)]($sp)**").mkString} | ||
|""".stripMargin | ||
end companyDescr | ||
|
||
end CompanyBpmnDsl | ||
``` | ||
|
||
@:callout(info) | ||
Documentation of `companyDescr` will be in every BPMN element you define by the DSL, e.g. processes or workers. | ||
@:@ |
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 +1,52 @@ | ||
# 03-api | ||
# 03-api | ||
Use this to add Company specific API stuff like the configuration of the projects within the Company. | ||
|
||
The following structure is generated by `../helperCompany.scala init`: | ||
|
||
```bash | ||
03-api/src | ||
| main/resources | ||
| main/scala/company/api | ||
| | CompanyApiCreator.scala | ||
| test/scala/company/api | ||
``` | ||
|
||
## CompanyApiCreator | ||
|
||
The Company's base class to generate the API documentation and API Clients for Postman. | ||
|
||
Example: | ||
|
||
```scala mdoc | ||
import camundala.api.* | ||
|
||
trait CompanyApiCreator extends ApiCreator, ApiDsl, CamundaPostmanApiCreator: | ||
|
||
// override the config if needed | ||
protected def apiConfig: ApiConfig = CompanyApiCreator.apiConfig | ||
|
||
lazy val companyDescr = ??? //TODO Add your Company Description! | ||
|
||
object CompanyApiCreator: | ||
lazy val apiConfig = ApiConfig(companyId = "mycompany") | ||
end CompanyApiCreator | ||
``` | ||
|
||
## ApiConfig | ||
You can define the project structure. | ||
|
||
Here an example: | ||
|
||
```scala mdoc | ||
import camundala.api.* | ||
|
||
lazy val apiConfig = | ||
ApiConfig(companyId = "mycompany") | ||
|
||
|
||
``` | ||
|
||
|
||
@:callout(info) | ||
Documentation of `companyDescr` will be in every API documentation. So ones per project. | ||
@:@ |
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
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
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