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.
* example-integration refactor streaming response * unit-test lib init new hexagonal ArchUnit test * example integration add hex ArchUnit test * unit-test lib init hex ArchUnit adapters not depending on each other * address-integration refactor for ArchUnit * alw-integration refactor for ArchUnit * cosys-integration refactor for ArchUnit * dms-integration refactor for ArchUnit * email-integration refactor for ArchUnit * cosys-integration refactor for ArchUnit * okewo-integration refactor for ArchUnit * ticket-integration refactor for ArchUnit * openai-integration refactor for ArchUnit * connector refactor for ArchUnit * integrations unit test lib as parent dependency * connector refactor for ArchUnit * integration fix naming from refactoring for ArchUnit * integration fix test packages after ArchUnit refactoring * integration fix test packages after ArchUnit refactoring * integration fix test packages after ArchUnit refactoring
- Loading branch information
Showing
201 changed files
with
1,399 additions
and
2,170 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
...da-connector-service/src/test/java/de/muenchen/oss/digiwf/connector/ArchitectureTest.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,12 @@ | ||
package de.muenchen.oss.digiwf.connector; | ||
|
||
import com.tngtech.archunit.junit.AnalyzeClasses; | ||
import com.tngtech.archunit.junit.ArchTest; | ||
import com.tngtech.archunit.junit.ArchTests; | ||
import de.muenchen.oss.digiwf.archunit.HexagonalArchitectureTest; | ||
|
||
@AnalyzeClasses | ||
public class ArchitectureTest { | ||
@ArchTest | ||
static final ArchTests hexagonalArchitecture = ArchTests.in(HexagonalArchitectureTest.class); | ||
} |
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
2 changes: 1 addition & 1 deletion
2
...a/rest/in/CamundaClientConfiguration.java → ...unda/rest/CamundaClientConfiguration.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
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
2 changes: 1 addition & 1 deletion
2
...ter/camunda/rest/out/IncidentAdapter.java → ...ter/out/camunda/rest/IncidentAdapter.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
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
36 changes: 36 additions & 0 deletions
36
...in/java/de/muenchen/oss/digiwf/connector/adapter/out/camunda/rest/ToEngineDataMapper.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,36 @@ | ||
package de.muenchen.oss.digiwf.connector.adapter.out.camunda.rest; | ||
|
||
import org.camunda.community.rest.client.model.VariableValueDto; | ||
import org.json.JSONArray; | ||
import org.json.JSONObject; | ||
import org.springframework.stereotype.Component; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
|
||
@Component | ||
public class ToEngineDataMapper { | ||
|
||
public Map<String, VariableValueDto> toEngineData(final Map<String, Object> data) { | ||
final JSONObject jsonData = new JSONObject(data); | ||
final Map<String, VariableValueDto> variables = new HashMap<>(); | ||
jsonData.keySet().forEach(key -> { | ||
final Object value = jsonData.get(key); | ||
variables.put(key, this.toEngineData(value)); | ||
} | ||
); | ||
return variables; | ||
} | ||
|
||
public VariableValueDto toEngineData(final Object value) { | ||
final VariableValueDto variableValueDto = new VariableValueDto(); | ||
if (value instanceof JSONObject || value instanceof JSONArray) { | ||
variableValueDto.setValue(value.toString()); | ||
variableValueDto.setType("json"); | ||
} else { | ||
variableValueDto.setValue(value); | ||
} | ||
return variableValueDto; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...sdefinition/ProcessDefinitionAdapter.java → ...sdefinition/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
2 changes: 1 addition & 1 deletion
2
...cessdefinition/ProcessInstanceClient.java → ...cessdefinition/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
2 changes: 1 addition & 1 deletion
2
.../processdefinition/ServiceInstanceTO.java → .../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
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
2 changes: 1 addition & 1 deletion
2
...est/DigiWFCamundaConnectorProperties.java → ...est/DigiWFCamundaConnectorProperties.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
2 changes: 1 addition & 1 deletion
2
...esources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
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 @@ | ||
de.muenchen.oss.digiwf.connector.adapter.camunda.rest.DigiWFCamundaConnectorAutoConfiguration | ||
de.muenchen.oss.digiwf.connector.camunda.rest.DigiWFCamundaConnectorAutoConfiguration |
24 changes: 0 additions & 24 deletions
24
...ctor-starter/src/test/java/de/muenchen/oss/digiwf/connector/adapter/ArchitectureTest.java
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...st/in/CamundaClientConfigurationTest.java → .../rest/CamundaClientConfigurationTest.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
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
2 changes: 1 addition & 1 deletion
2
...camunda/rest/out/IncidentAdapterTest.java → ...out/camunda/rest/IncidentAdapterTest.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
Oops, something went wrong.