generated from it-at-m/oss-repository-en-template
-
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.
Browse files
Browse the repository at this point in the history
* refactoring: rename application.properties to application.yml * feature: introduce default destinations for integrations * refactoring: remove digiwf-message-name from integration calls * feature: adjust element templates, forms and bpmn process to default kafka topics * chore: fix invalid element templates * chore: remove app_message_name * chore: remove app_message_name * chore: remove app_message_name * Revert "chore: remove app_message_name" This reverts commit ecf9b68. * Revert "chore: remove app_message_name" This reverts commit c081f40. * chore: replace app_message_name with app_integration_name * chore: refactor configs * fix: compiling error * bugfix: fix incorrect function call * chore: fix tests * feature: use type for message correlation to avoid breaking changes * feature: send digiwf.processdefinition header to integrations * tmp: feature(#734): get processdefinition for integration call * feature(#734): query root process instance id * feature(#734): add feign error handling * feature(#734): add tests * feature(#734): add tests * feature(#734): add tests * feature(#734): add integration name to StreamingTemplateV01 and mark it as deprecated * feature(#734): add integration name to StreamingTemplateV01 and mark it as deprecated * feature(#734): add integration name to StreamingTemplateV01 and mark it as deprecated * docs(#958): adjust documentation, element-templates and add connector documentation * fix: address integration * fix: processes * Update EmailIntegration.json * update element templates --------- Co-authored-by: Lukas Mösle <[email protected]>
- Loading branch information
Showing
185 changed files
with
1,481 additions
and
2,146 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
15 changes: 0 additions & 15 deletions
15
...onnector/digiwf-camunda-connector-service/src/main/resources/application-local.properties
This file was deleted.
Oops, something went wrong.
38 changes: 38 additions & 0 deletions
38
digiwf-connector/digiwf-camunda-connector-service/src/main/resources/application-local.yml
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,38 @@ | ||
digiwf: | ||
streaming: | ||
connector: | ||
topics: | ||
bpmnerror: dwf-connector-bpmnerror-local-01 | ||
incident: dwf-connector-incident-local-01 | ||
message: dwf-connector-local-01 | ||
dlq: dwf-connector-local-01-dlq | ||
group: dwf-connector-local-01 | ||
security: | ||
client-id: ${SSO_TASK_CLIENT_ID} | ||
client-secret: ${SSO_TASK_CLIENT_SECRET} | ||
spring: | ||
cloud: | ||
stream: | ||
kafka: | ||
binder: | ||
consumerProperties: | ||
auto: | ||
offset: | ||
reset: latest | ||
brokers: ${KAFKA_BOOTSTRAP_SERVER:localhost}:${KAFKA_BOOTSTRAP_SERVER_PORT:29092} | ||
logging: | ||
level: | ||
org: | ||
springframework: info | ||
io: | ||
muenchendigital: info | ||
server: | ||
port: '8090' | ||
de: | ||
muenchen: | ||
oss: | ||
digiwf: | ||
connector: | ||
core: | ||
integrations: | ||
exampleIntegration: "dwf-example-integration-${DIGIWF_ENV}" |
21 changes: 0 additions & 21 deletions
21
...ctor/digiwf-camunda-connector-service/src/main/resources/application-streaming.properties
This file was deleted.
Oops, something went wrong.
46 changes: 46 additions & 0 deletions
46
...f-connector/digiwf-camunda-connector-service/src/main/resources/application-streaming.yml
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,46 @@ | ||
spring: | ||
cloud: | ||
stream: | ||
kafka: | ||
binder: | ||
producerProperties: | ||
value: | ||
serializer: org.springframework.kafka.support.serializer.JsonSerializer | ||
key: | ||
serializer: org.springframework.kafka.support.serializer.JsonSerializer | ||
consumerProperties: | ||
key: | ||
deserializer: org.springframework.kafka.support.serializer.JsonDeserializer | ||
value: | ||
deserializer: org.springframework.kafka.support.serializer.JsonDeserializer | ||
default: | ||
consumer: | ||
dlqName: ${digiwf.streaming.connector.topics.dlq} | ||
enableDlq: 'true' | ||
bindings: | ||
dynamicProducer-out-0: | ||
destination: ${digiwf.streaming.connector.topics.message} | ||
producer: | ||
auto-startup: 'true' | ||
createBpmnError-in-0: | ||
group: ${digiwf.streaming.connector.group} | ||
destination: ${digiwf.streaming.connector.topics.bpmnerror} | ||
createIncident-in-0: | ||
destination: ${digiwf.streaming.connector.topics.incident} | ||
group: ${digiwf.streaming.connector.group} | ||
correlateMessage-in-0: | ||
group: ${digiwf.streaming.connector.group} | ||
destination: ${digiwf.streaming.connector.topics.message} | ||
default-binder: kafka | ||
default: | ||
consumer: | ||
maxAttempts: '1' | ||
function: | ||
definition: createIncident;createBpmnError;correlateMessage;dynamicProducer; | ||
kafka: | ||
consumer: | ||
properties: | ||
spring: | ||
json: | ||
trusted: | ||
packages: '*' |
5 changes: 0 additions & 5 deletions
5
digiwf-connector/digiwf-camunda-connector-service/src/main/resources/application.properties
This file was deleted.
Oops, something went wrong.
33 changes: 33 additions & 0 deletions
33
digiwf-connector/digiwf-camunda-connector-service/src/main/resources/application.yml
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,33 @@ | ||
spring: | ||
application: | ||
name: '@project.artifactId@' | ||
server: | ||
port: '8080' | ||
feign: | ||
client: | ||
config: | ||
default: | ||
url: ${ENGINE_CAMUNDA_REST_ENDPOINT_URL} | ||
digiwf-process-instance: | ||
name: digiwf-process-instance | ||
url: ${ENGINE_REST_ENDPOINT_URL} | ||
camunda: | ||
bpm: | ||
client: | ||
base-url: ${ENGINE_CAMUNDA_REST_ENDPOINT_URL} | ||
date-format: yyyy-MM-dd'T'HH:mm:ss.SSSX | ||
de: | ||
muenchen: | ||
oss: | ||
digiwf: | ||
connector: | ||
core: | ||
integrations: | ||
addressIntegration: "dwf-address-${DIGIWF_ENV}" | ||
alwIntegration: "dwf-alw-${DIGIWF_ENV}" | ||
cosysIntegration: "dwf-cosys-${DIGIWF_ENV}" | ||
dmsIntegration: "dwf-dms-${DIGIWF_ENV}" | ||
emailIntegration: "dwf-email-${DIGIWF_ENV}" | ||
s3Integration: "dwf-s3-${DIGIWF_ENV}" | ||
# TODO: Remove this fallback after all processes are migrated to the new version. It's a legacy feature to avoid breaking changes. | ||
deprecatedLegacyFeature: ${digiwf.streaming.connector.topics.dlq} |
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
23 changes: 23 additions & 0 deletions
23
...digiwf/connector/adapter/camunda/rest/out/processdefinition/ProcessDefinitionAdapter.java
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,23 @@ | ||
package de.muenchen.oss.digiwf.connector.adapter.camunda.rest.out.processdefinition; | ||
|
||
import de.muenchen.oss.digiwf.connector.core.application.port.out.ProcessOutPort; | ||
import de.muenchen.oss.digiwf.connector.core.domain.ProcessDefinitionLoadingException; | ||
import feign.FeignException; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
@RequiredArgsConstructor | ||
public class ProcessDefinitionAdapter implements ProcessOutPort { | ||
|
||
private final ProcessInstanceClient processInstanceClient; | ||
|
||
@Override | ||
public String loadProcessDefinition(final String processInstanceId) throws ProcessDefinitionLoadingException { | ||
try { | ||
return processInstanceClient.getRootProcessInstanceDetail(processInstanceId).getDefinitionName(); | ||
} catch (final FeignException e) { | ||
throw new ProcessDefinitionLoadingException("Could not load process definition for process instance with id " + processInstanceId, e.getMessage()); | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...ss/digiwf/connector/adapter/camunda/rest/out/processdefinition/ProcessInstanceClient.java
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,19 @@ | ||
package de.muenchen.oss.digiwf.connector.adapter.camunda.rest.out.processdefinition; | ||
|
||
import de.muenchen.oss.digiwf.spring.security.client.DigiwfFeignOauthClientConfig; | ||
import org.springframework.cloud.openfeign.FeignClient; | ||
import org.springframework.web.bind.annotation.PathVariable; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RequestMethod; | ||
|
||
@FeignClient( | ||
name = "${feign.client.config.digiwf-process-instance.name:digiwf-process-instance}", | ||
url = "${feign.client.config.digiwf-process-instance.url}rest/service/instance", | ||
configuration = DigiwfFeignOauthClientConfig.class | ||
) | ||
public interface ProcessInstanceClient { | ||
|
||
@RequestMapping(method = RequestMethod.GET, value = "/root/{id}") | ||
ServiceInstanceTO getRootProcessInstanceDetail(@PathVariable("id") final String id); | ||
|
||
} |
22 changes: 22 additions & 0 deletions
22
...en/oss/digiwf/connector/adapter/camunda/rest/out/processdefinition/ServiceInstanceTO.java
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,22 @@ | ||
package de.muenchen.oss.digiwf.connector.adapter.camunda.rest.out.processdefinition; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.util.Date; | ||
|
||
@Data | ||
@Builder | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class ServiceInstanceTO { | ||
private String id; | ||
private String definitionName; | ||
private Date startTime; | ||
private Date endTime; | ||
private String status; | ||
private String description; | ||
|
||
} |
Oops, something went wrong.