-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue/200 API v2 Maven Module #223
Conversation
* new process plugin api v2 module with dependency to HAPI FHIR 7.4.0, old process plugin api v1 module still has dependency to HAPI FHIR 5.1.0 * HAPI dependency versions now managed via properties hapi.fhir.version and hapi.fhir.version.v1 * upgraded HAPI FHIR dependency of DSF FHIR and DSF BPE application to 7.4.0, remove not needed workarounds and added a new ones to SnapshotGeneratorImpl and ResourceValidatorImpl in dsf-fhir-validation * added Task profile test to dsf-fhir-validation * added missing thymeleaf dependency to dsf-common-ui module * refactored code to use switch expressions with pattern matching where possible * set log level for ca.uhn.fhir.parser.LenientErrorHandler to ERROR to suppress "Unknown element 'author' found while parsing" messages generated during startup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many thanks for the valuable adjustments and additions. Here are some comments.
dsf-bpe/dsf-bpe-process-api-v1-impl/src/main/java/dev/dsf/bpe/v1/spring/ApiServiceConfig.java
Outdated
Show resolved
Hide resolved
dsf-bpe/dsf-bpe-process-api-v2-impl/src/main/java/dev/dsf/bpe/v2/spring/ApiServiceConfig.java
Outdated
Show resolved
Hide resolved
dsf-bpe/dsf-bpe-process-api-v2-impl/src/main/java/dev/dsf/bpe/v2/variables/TargetImpl.java
Show resolved
Hide resolved
...pe/dsf-bpe-process-api-v2/src/main/java/dev/dsf/bpe/v2/activity/DefaultUserTaskListener.java
Show resolved
Hide resolved
dsf-bpe/dsf-bpe-server/src/main/java/dev/dsf/bpe/plugin/ProcessPluginApiClassLoader.java
Outdated
Show resolved
Hide resolved
dsf-bpe/dsf-bpe-server/src/main/java/dev/dsf/bpe/plugin/ProcessPluginApiClassLoader.java
Outdated
Show resolved
Hide resolved
dsf-fhir/dsf-fhir-rest-adapter/src/main/java/dev/dsf/fhir/service/ReferenceExtractorImpl.java
Outdated
Show resolved
Hide resolved
HAPI bug workaround will never be removed from API v1 implementation.
The JsonAlias annotations were introduced to allow deserialization of older TargetImpl objects in DSF 0.x that used the alias values as property names.
Introduced new HAPI version property for plugin API v2. Replaced hard-coded HAPI version numbers in dsf-bpe-server-jetty and api v2 modules with version properties.
* New ProcessPluginApiClassLoaderFactory to create ProcessPluginApiClassLoader instances with allow lists for classes and resources. * Default allowed classes and resources stored in jar internal text files for v1 and v2. Lists are incomplete for now
New api infrastructure, api v2 module and upgrade to HAPI 7.4.0.
Known Issues / TODOs:
min = 3
configuration, now interpreted differently by the FHIR Validator of HAPI 7.4.0 resulting in invalid Task resources. We could implement a workaround that fixes the extension StructureDefinition or release a fixed process plugin.closes #200
closes #201