This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/release/0.4.0' into main
- Loading branch information
Showing
518 changed files
with
6,773 additions
and
14,321 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
.github/workflows/maven.yml → .github/workflows/maven-build.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
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,31 @@ | ||
# This workflow will publish a Java project with Maven | ||
# For more information see: https://docs.github.com/en/free-pro-team@latest/actions/guides/publishing-java-packages-with-maven | ||
|
||
name: Java CI Publish with Maven | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
branches: [develop] | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
publish: | ||
|
||
# Only run if releases are published or pull requests are merged, | ||
# omit running if pull requests are closed without merging | ||
if: github.event.pull_request.merged || github.event.action == 'published' | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- name: Publish with Maven | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: mvn -B deploy --file pom.xml |
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
81 changes: 81 additions & 0 deletions
81
dsf-bpe/dsf-bpe-process-base/src/main/java/org/highmed/dsf/bpe/ProcessPluginDefinition.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,81 @@ | ||
package org.highmed.dsf.bpe; | ||
|
||
import java.util.Collections; | ||
import java.util.List; | ||
import java.util.ServiceLoader; | ||
import java.util.stream.Stream; | ||
|
||
import org.camunda.bpm.engine.impl.variable.serializer.TypedValueSerializer; | ||
import org.highmed.dsf.fhir.resources.ResourceProvider; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
import ca.uhn.fhir.context.FhirContext; | ||
|
||
/** | ||
* A provider configuration file named "org.highmed.dsf.DsfProcessPluginDefinition" containing the canonical name of the | ||
* class implementing this interface needs to be part of the process plugin at "/META-INF/services/". For more details | ||
* on the content of the provider configuration file, see {@link ServiceLoader}. | ||
* | ||
* Additional {@link TypedValueSerializer}s to be registered inside the camunda process engine need be defined as beans | ||
* in the process plugins spring context. | ||
*/ | ||
public interface ProcessPluginDefinition | ||
{ | ||
/** | ||
* @return process plugin name, same as jar name excluding suffix <code>-<version>.jar</code> used by other | ||
* processes when defining dependencies, e.g. <code>foo-1.2.3</code> for a jar called | ||
* <code>foo-1.2.3.jar</code> or <code>foo-1.2.3-SNAPSHOT.jar</code> with processPluginName <code>foo</code> | ||
* and version <code>1.2.3</code> | ||
*/ | ||
String getName(); | ||
|
||
/** | ||
* @return version of the process plugin, processes and fhir resources, e.g. <code>1.2.3</code> | ||
*/ | ||
String getVersion(); | ||
|
||
/** | ||
* @return <code>name-version</code> | ||
*/ | ||
default String getNameAndVersion() | ||
{ | ||
return getName() + "-" + getVersion(); | ||
} | ||
|
||
/** | ||
* Return <code>Stream.of("foo.bpmn");</code> for a foo.bpmn file located in the root folder of the process plugin | ||
* jar. The returned files will be read via {@link ClassLoader#getResourceAsStream(String)}. | ||
* | ||
* @return *.bpmn files inside process plugin jar | ||
* | ||
* @see ClassLoader#getResourceAsStream(String) | ||
*/ | ||
Stream<String> getBpmnFiles(); | ||
|
||
/** | ||
* @return @{@link Configuration} annotated classes defining @{@link Bean} annotated factory methods | ||
*/ | ||
Stream<Class<?>> getSpringConfigClasses(); | ||
|
||
/** | ||
* @param fhirContext | ||
* the applications fhir context, never <code>null</code> | ||
* @param classLoader | ||
* the classLoader that was used to initialize the process plugin, never <code>null</code> | ||
* @return {@link ResourceProvider} with FHIR resources needed to enable the included processes | ||
*/ | ||
default ResourceProvider getResourceProvider(FhirContext fhirContext, ClassLoader classLoader) | ||
{ | ||
return ResourceProvider.empty(); | ||
} | ||
|
||
/** | ||
* @return dependencies to other processes by jar name (excluding '.jar'). The system will add ".jar" and | ||
* "-SNAPSHOT.jar" while searching for jars, e.g. "bar-1.2.3" | ||
*/ | ||
default List<String> getDependencyNamesAndVersions() | ||
{ | ||
return Collections.emptyList(); | ||
} | ||
} |
Oops, something went wrong.