-
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.
Merge remote-tracking branch 'origin/issue/200_API_v2_Maven_Module' into
develop_2
- Loading branch information
Showing
355 changed files
with
23,761 additions
and
2,168 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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<artifactId>dsf-bpe-process-api-v1-impl</artifactId> | ||
|
||
<parent> | ||
<groupId>dev.dsf</groupId> | ||
<artifactId>dsf-bpe-pom</artifactId> | ||
<version>2.0.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>dev.dsf</groupId> | ||
<artifactId>dsf-bpe-process-api</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>dev.dsf</groupId> | ||
<artifactId>dsf-bpe-process-api-v1</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.glassfish.jersey.core</groupId> | ||
<artifactId>jersey-client</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.glassfish.jersey.inject</groupId> | ||
<artifactId>jersey-hk2</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.glassfish.jersey.media</groupId> | ||
<artifactId>jersey-media-jaxb</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.glassfish.jersey.media</groupId> | ||
<artifactId>jersey-media-json-jackson</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.glassfish.jersey.connectors</groupId> | ||
<artifactId>jersey-apache-connector</artifactId> | ||
<exclusions> | ||
<exclusion> | ||
<groupId>commons-logging</groupId> | ||
<artifactId>commons-logging</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>ca.uhn.hapi.fhir</groupId> | ||
<artifactId>hapi-fhir-structures-r4</artifactId> | ||
<version>${hapi.fhir.version.v1}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.apache.logging.log4j</groupId> | ||
<artifactId>log4j-slf4j2-impl</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.mockito</groupId> | ||
<artifactId>mockito-core</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
</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
2 changes: 1 addition & 1 deletion
2
...ev/dsf/bpe/listener/AbstractListener.java → ...dsf/bpe/v1/listener/AbstractListener.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
...ava/dev/dsf/bpe/listener/EndListener.java → .../dev/dsf/bpe/v1/listener/EndListener.java
100755 → 100644
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,4 +1,4 @@ | ||
package dev.dsf.bpe.listener; | ||
package dev.dsf.bpe.v1.listener; | ||
|
||
import java.util.List; | ||
import java.util.Objects; | ||
|
2 changes: 1 addition & 1 deletion
2
...v/dsf/bpe/listener/ListenerVariables.java → ...sf/bpe/v1/listener/ListenerVariables.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package dev.dsf.bpe.listener; | ||
package dev.dsf.bpe.v1.listener; | ||
|
||
import org.hl7.fhir.r4.model.Task; | ||
|
||
|
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
24 changes: 24 additions & 0 deletions
24
...-process-api-v1-impl/src/main/java/dev/dsf/bpe/v1/plugin/ProcessPluginApiBuilderImpl.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,24 @@ | ||
package dev.dsf.bpe.v1.plugin; | ||
|
||
import org.springframework.context.ApplicationContext; | ||
import org.springframework.core.env.ConfigurableEnvironment; | ||
|
||
import dev.dsf.bpe.api.plugin.ProcessPluginApiBuilder; | ||
import dev.dsf.bpe.api.plugin.ProcessPluginFactory; | ||
import dev.dsf.bpe.v1.spring.ApiServiceConfig; | ||
|
||
public class ProcessPluginApiBuilderImpl implements ProcessPluginApiBuilder | ||
{ | ||
@Override | ||
public ProcessPluginFactory build(ClassLoader apiClassLoader, ApplicationContext apiApplicationContext, | ||
ConfigurableEnvironment environment) | ||
{ | ||
return new ProcessPluginFactoryImpl(apiClassLoader, apiApplicationContext, environment); | ||
} | ||
|
||
@Override | ||
public Class<?> getSpringServiceConfigClass() | ||
{ | ||
return ApiServiceConfig.class; | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
...bpe-process-api-v1-impl/src/main/java/dev/dsf/bpe/v1/plugin/ProcessPluginFactoryImpl.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,49 @@ | ||
package dev.dsf.bpe.v1.plugin; | ||
|
||
import java.net.URLClassLoader; | ||
import java.nio.file.Path; | ||
import java.util.stream.Stream; | ||
|
||
import org.camunda.bpm.engine.impl.variable.serializer.TypedValueSerializer; | ||
import org.springframework.context.ApplicationContext; | ||
import org.springframework.core.env.ConfigurableEnvironment; | ||
|
||
import dev.dsf.bpe.api.listener.ListenerFactory; | ||
import dev.dsf.bpe.api.plugin.AbstractProcessPluginFactory; | ||
import dev.dsf.bpe.api.plugin.ProcessPlugin; | ||
import dev.dsf.bpe.api.plugin.ProcessPluginFactory; | ||
import dev.dsf.bpe.v1.ProcessPluginDefinition; | ||
import dev.dsf.bpe.v1.activity.DefaultUserTaskListener; | ||
|
||
public class ProcessPluginFactoryImpl extends AbstractProcessPluginFactory implements ProcessPluginFactory | ||
{ | ||
public static final int API_VERSION = 1; | ||
|
||
public ProcessPluginFactoryImpl(ClassLoader apiClassLoader, ApplicationContext apiApplicationContext, | ||
ConfigurableEnvironment environment) | ||
{ | ||
super(API_VERSION, apiClassLoader, apiApplicationContext, environment, ProcessPluginDefinition.class, | ||
DefaultUserTaskListener.class); | ||
} | ||
|
||
@Override | ||
protected ProcessPlugin createProcessPlugin(Object processPluginDefinition, boolean draft, Path jarFile, | ||
URLClassLoader pluginClassLoader) | ||
{ | ||
return new ProcessPluginImpl((ProcessPluginDefinition) processPluginDefinition, API_VERSION, draft, jarFile, | ||
pluginClassLoader, environment, apiApplicationContext); | ||
} | ||
|
||
@Override | ||
@SuppressWarnings("rawtypes") | ||
public Stream<TypedValueSerializer> getSerializer() | ||
{ | ||
return apiApplicationContext.getBeansOfType(TypedValueSerializer.class).values().stream(); | ||
} | ||
|
||
@Override | ||
public ListenerFactory getListenerFactory() | ||
{ | ||
return apiApplicationContext.getBean(ListenerFactory.class); | ||
} | ||
} |
Oops, something went wrong.