Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: eiffel-community/eiffel-remrem-generate
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.1.6
Choose a base ref
...
head repository: eiffel-community/eiffel-remrem-generate
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Nov 3, 2022

  1. Description how to override message service library added (#205)

    * Description how to override message service library added
    
    Fixes #204
    
    The new MD file describes how to override message service library
    included in generate service. This can be useful for many reasons, e.g.
    custom library should be used, etc.
    
    * Link to JitPack added to documention.
    
    * JitPack URL fixed.
    
    * -Djava.ext.dirs replaced by -classpath 
    
    Option -Djava.ext.dirs has been deprecated in Java 8u40.
    
    * Link to example in eiffel-remrem-publish added.
    z-sztrom authored Nov 3, 2022
    Copy the full SHA
    9d5876c View commit details

Commits on Feb 1, 2023

  1. Copy the full SHA
    ee7c3a8 View commit details

Commits on Feb 2, 2023

  1. Degraded the spring-boot-maven-plugin to 2.7.5 (#208)

    * updated spring-boot-maven-plugin to 2.7.5
    
    ---------
    
    Co-authored-by: Piyush Sadangi <piyush.sadangi@ericsson.com>
    piyush-sadangi and Piyush Sadangi authored Feb 2, 2023
    Copy the full SHA
    889a10e View commit details

Commits on Mar 28, 2023

  1. Uplift spring-boot version to 2.7.5 (#210)

    * Uplift spring-boot version to 2.7.5
    
    * Provided the proper remrem-parent version
    
    * changed the remrem-parent version
    
    ---------
    
    Co-authored-by: Vishnu <vishnu.alapati@ericsson.com>
    vishnu-alapati and Vishnu authored Mar 28, 2023
    Copy the full SHA
    6d62fe0 View commit details

Commits on Jun 7, 2023

  1. Copy the full SHA
    605ccc4 View commit details

Commits on Jun 12, 2023

  1. Copy the full SHA
    68cb1c7 View commit details

Commits on Jun 20, 2023

  1. Copy the full SHA
    d242e6d View commit details

Commits on Aug 9, 2023

  1. Compatibility between generate and publish (#214)

    * Compatibility table added
    
    Compatibility table, describing relations between semantics library,
    generate and publish services, added.
    z-sztrom authored Aug 9, 2023
    Copy the full SHA
    3d7780a View commit details

Commits on Aug 16, 2023

  1. Copy the full SHA
    5dd9650 View commit details

Commits on Oct 18, 2023

  1. Generate's operation message_protocols fails for older semantics libs (

    …#216)
    
    * Generate's operation message_protocols fails for older semantics libs
    
    ---------
    
    Co-authored-by: Vishnu Alapati <zalavis@seliiuts03320.seli.gic.ericsson.se>
    vishnu-alapati and Vishnu Alapati authored Oct 18, 2023
    Copy the full SHA
    f298869 View commit details

Commits on Nov 3, 2023

  1. Add test to check template and schema versions (#219)

    Fixed version of semantics library 2.2.7 used.
    shudhansu-shekhar authored Nov 3, 2023
    Copy the full SHA
    1b2557f View commit details

Commits on Feb 14, 2024

  1. Copy the full SHA
    332c244 View commit details

Commits on Mar 1, 2024

  1. Bump actions/checkout from 3 to 4 (#221)

    Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
    - [Release notes](https://github.com/actions/checkout/releases)
    - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
    - [Commits](actions/checkout@v3...v4)
    
    ---
    updated-dependencies:
    - dependency-name: actions/checkout
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 1, 2024
    Copy the full SHA
    03fdf61 View commit details
  2. Bump actions/setup-java from 3 to 4 (#220)

    Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3 to 4.
    - [Release notes](https://github.com/actions/setup-java/releases)
    - [Commits](actions/setup-java@v3...v4)
    
    ---
    updated-dependencies:
    - dependency-name: actions/setup-java
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 1, 2024
    Copy the full SHA
    a0ce402 View commit details

Commits on May 31, 2024

  1. The records related to generated password no more appear in catalina.…

    …out (#224)
    
    Co-authored-by: Arun Kumar K R
    arun-kumarkr authored May 31, 2024
    Copy the full SHA
    975bd4b View commit details

Commits on Aug 14, 2024

  1. Modified generate's endpoint generate to accept array of events (#226)

    Modified generate's endpoint generate to accept array of events.
    shudhansu-shekhar authored Aug 14, 2024
    Copy the full SHA
    a870ce4 View commit details

Commits on Oct 8, 2024

  1. Add limitation in the array of events for the endpoint of generate (#227

    )
    
    * Add limitation in the array of events for the endpoint of generate
    
    * Add limitation in the array of events for the endpoint of generate
    
    * Add limitation in the array of events for the endpoint of generate
    shudhansu-shekhar authored Oct 8, 2024
    Copy the full SHA
    e38806b View commit details
  2. Release version increased in pom.xml (#229)

    * Release version increased in pom.xml
    shudhansu-shekhar authored Oct 8, 2024
    Copy the full SHA
    243dd06 View commit details

Commits on Oct 30, 2024

  1. Update generate endpoint for gen1 template (#231)

    * Update generate endpoint for gen1 template
    shudhansu-shekhar authored Oct 30, 2024
    Copy the full SHA
    6161424 View commit details

Commits on Nov 5, 2024

  1. Improve efficiency how result of event generation is handled (#233)

    * Modify /generate end-point to work for Gen1 templates
    
    * Improve efficiency how result of event generation is handled
    shudhansu-shekhar authored Nov 5, 2024
    Copy the full SHA
    9c2a9c7 View commit details

Commits on Nov 18, 2024

  1. Orizaba is default Eiffel protocol (#232)

    * Orizaba is default Eiffel protocol
    z-sztrom authored Nov 18, 2024
    Copy the full SHA
    d26d1ef View commit details
Showing with 1,177 additions and 157 deletions.
  1. +8 −0 .github/dependabot.yml
  2. +4 −4 .github/workflows/main.yml
  3. +23 −0 CHANGELOG.md
  4. +2 −0 README.md
  5. +8 −1 cli/pom.xml
  6. +2 −1 cli/src/main/java/com/ericsson/eiffel/remrem/generate/cli/CLI.java
  7. +1 −1 cli/src/test/java/com/ericsson/eiffel/remrem/generate/cli/CliUnitTests.java
  8. +8 −7 pom.xml
  9. +29 −2 service/pom.xml
  10. +12 −5 service/src/main/docker/Dockerfile
  11. +5 −4 service/src/main/java/com/ericsson/eiffel/remrem/generate/App.java
  12. +45 −0 service/src/main/java/com/ericsson/eiffel/remrem/generate/config/SwaggerConfig.java
  13. +13 −0 ...e/src/main/java/com/ericsson/eiffel/remrem/generate/constants/RemremGenerateServiceConstants.java
  14. +223 −62 service/src/main/java/com/ericsson/eiffel/remrem/generate/controller/RemremGenerateController.java
  15. +7 −0 ...src/main/java/com/ericsson/eiffel/remrem/generate/exception/ProtocolHandlerNotFoundException.java
  16. +15 −13 service/src/main/resources/application.properties
  17. +17 −5 ...e/src/test/java/com/ericsson/eiffel/remrem/generate/integrationtest/EiffelRemremControllerIT.java
  18. +12 −12 ...rc/test/java/com/ericsson/eiffel/remrem/generate/service/EiffelRemERLookupControllerUnitTest.java
  19. +79 −14 ...ice/src/test/java/com/ericsson/eiffel/remrem/generate/service/EiffelRemremControllerUnitTest.java
  20. +107 −0 service/src/test/java/com/ericsson/eiffel/remrem/generate/service/EiffelTemplateGenerateTest.java
  21. +13 −12 service/src/test/resources/ActivityFinished.json
  22. +5 −3 service/src/test/resources/ArtifactCreated.json
  23. +138 −0 service/src/test/resources/ArtifactCreatedEventArray.json
  24. +78 −0 service/src/test/resources/ErlookupConfidenceLevelArrayOutput.json
  25. +1 −0 service/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker
  26. +4 −1 wiki/markdown/index.md
  27. +63 −0 wiki/markdown/overriding.md
  28. +255 −10 wiki/markdown/usage/service.md
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
day: sunday
open-pull-requests-limit: 10
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -23,11 +23,11 @@ jobs:

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: '8'
distribution: 'temurin'
java-version: '17'


- name: Run test
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
## 2.1.14
- Made changes to /generate end-point to improve efficiency how result of event generation is handled

## 2.1.13
- Made changes to /generate end-point to work for Gen1 templates

## 2.1.11
- Made changes to /message_protocols end-point to work for old REMRem-Semantics library.

## 2.1.10
- Mockito framework upgraded to 5.3.1

## 2.1.9
- Necessary changes to support OpenJDK 17

## 2.1.8
- Uplifted eiffel-remrem-parent version to 2.0.10 to inherit the latest spring-boot version.

## 2.1.7
- Degraded the spring-boot-maven-plugin version to 2.7.5
- Updated the eiffel-remrem-parent version to 2.0.9
- Updated the eiffel-remem-semantics version to 2.2.4

## 2.1.6
- Fixed a override Eiffel-Semantic protocol version issue
- Added documentation for overriding Eiffel-Semantic protocol version
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -42,6 +42,8 @@ Eiffel REMReM Generate takes a partial message in JSON format, validates it and

7. [**Logging**](wiki/markdown/logging.md)

7. [**Overriding Message Service Library**](wiki/markdown/overriding.md)

# About this repository
The contents of this repository are licensed under the [Apache License 2.0](./LICENSE).

9 changes: 8 additions & 1 deletion cli/pom.xml
Original file line number Diff line number Diff line change
@@ -58,6 +58,12 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<exclusions>
<exclusion>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>commons-cli</groupId>
@@ -75,6 +81,7 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${springboot.version}</version>
<configuration>
<mainClass>com.ericsson.eiffel.remrem.generate.cli.CLI</mainClass>
<fork>true</fork>
@@ -101,7 +108,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<manifestEntries>
Original file line number Diff line number Diff line change
@@ -28,6 +28,7 @@
import org.springframework.boot.Banner;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@@ -226,7 +227,7 @@ public static void main(String[] args) throws Exception {
application.addInitializers(new SpringLoggingInitializer());
application.setBannerMode(Banner.Mode.OFF);
application.setLogStartupInfo(false);
application.setWebEnvironment(false);
application.setWebApplicationType(WebApplicationType.NONE);
CLIOptions.parse(args);
application.run(args);
}
Original file line number Diff line number Diff line change
@@ -57,7 +57,7 @@ public class CliUnitTests {

Mockito.when(msgService.generateMsg(
Mockito.anyString(),
Mockito.anyObject()
Mockito.any()
)).thenReturn("{ \"service\":\"msgService\" }");
}

15 changes: 8 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -6,17 +6,17 @@
<parent>
<groupId>com.github.eiffel-community</groupId>
<artifactId>eiffel-remrem-parent</artifactId>
<version>2.0.8</version>
<version>2.0.12</version>
</parent>

<properties>
<eiffel-remrem-generate.version>2.1.6</eiffel-remrem-generate.version>
<eiffel-remrem-semantics.version>2.2.3</eiffel-remrem-semantics.version>
<eiffel-remrem-generate.version>2.1.15</eiffel-remrem-generate.version>
<eiffel-remrem-semantics.version>2.4.0</eiffel-remrem-semantics.version>
</properties>
<artifactId>eiffel-remrem-generate</artifactId>
<version>${eiffel-remrem-generate.version}</version>
<packaging>pom</packaging>
<dependencyManagement>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.github.eiffel-community</groupId>
@@ -46,6 +46,7 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${springboot.version}</version>
<configuration>
<skip>true</skip>
</configuration>
@@ -54,14 +55,14 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<source>17</source>
<target>17</target>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-maven-plugin.version}</version>
<version>${jacoco-maven-plugin.version}</version>
<executions>
<execution>
<id>prepare-agent</id>
31 changes: 29 additions & 2 deletions service/pom.xml
Original file line number Diff line number Diff line change
@@ -8,6 +8,9 @@
<artifactId>eiffel-remrem-generate</artifactId>
<version>${eiffel-remrem-generate.version}</version>
</parent>
<properties>
<start-class>com.ericsson.eiffel.remrem.generate</start-class>
</properties>
<artifactId>generate-service</artifactId>
<packaging>war</packaging>
<dependencies>
@@ -40,13 +43,24 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<exclusions>
<exclusion>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>${mockito.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-ldap</artifactId>
</dependency>
<dependency>
<groupId>com.jayway.restassured</groupId>
<groupId>io.rest-assured</groupId>
<artifactId>rest-assured</artifactId>
</dependency>
<dependency>
@@ -85,15 +99,21 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${springboot.version}</version>
<configuration>
<mainClass>com.ericsson.eiffel.remrem.generate.App</mainClass>
<fork>true</fork>
<skip>false</skip>
</configuration>
<executions>
@@ -107,6 +127,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.3.1</version>
<configuration>
<archive>
<manifestEntries>
@@ -124,6 +145,12 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.0</version>
<configuration>
<!-- Allow JUnit to access the test classes -->
<argLine>--add-opens java.base/java.lang=ALL-UNNAMED</argLine>
<argLine>--add-opens java.base/jdk.internal.reflect=ALL-UNNAMED</argLine>

</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
17 changes: 12 additions & 5 deletions service/src/main/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
FROM fabric8/java-centos-openjdk8-jre:1.6.4
MAINTAINER Eiffel-Community
FROM openjdk:17
MAINTAINER Eiffel-Community

# Expose port 8080. The port can be accessed using option -p or -P of
# docker's command 'run'.
EXPOSE 8080

ARG URL

# Explicitly select the file to pass to "java -jar" so that additional
# jar dependencies can be added to ${JAVA_APP_DIR} without creating
# ambiguity.
ENV JAVA_APP_JAR ${JAVA_APP_DIR}/generate.war
ENV JAVA_APP_JAR="${JAVA_APP_DIR}/generate.war"

# Disable Jolokia and jmx_exporter.
ENV AB_OFF true

RUN echo Building RemRem-Generate image based on artifact url: ${URL}
ADD --chown=jboss ${URL} ${JAVA_APP_JAR}
RUN echo "Building RemRem-Generate image based on artifact url: ${URL}"
ADD ${URL} ${JAVA_APP_JAR}

# Start the service
ENTRYPOINT /usr/java/openjdk-17/bin/java -jar "${JAVA_APP_JAR}"
Original file line number Diff line number Diff line change
@@ -16,17 +16,18 @@

import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration;
import org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.PropertySource;

@SpringBootApplication
@ComponentScan("com.ericsson.eiffel.remrem")
@EnableAutoConfiguration(exclude = { JacksonAutoConfiguration.class })
@SpringBootApplication(scanBasePackages = {"com.ericsson.eiffel.remrem", "com.ericsson.eiffel.remrem.semantics"})
@EnableAutoConfiguration(exclude = { JacksonAutoConfiguration.class, UserDetailsServiceAutoConfiguration.class})
@PropertySource(value = "file:${catalina.home}/conf/config.properties", ignoreResourceNotFound = true)
public class App extends SpringBootServletInitializer {

@@ -38,7 +39,7 @@ private static void startService(String[] args) {
SpringApplication application = new SpringApplication(App.class);
application.setBannerMode(Banner.Mode.OFF);
application.setLogStartupInfo(false);
application.setWebEnvironment(true);
application.setWebApplicationType(WebApplicationType.SERVLET);
ApplicationContext ctx = application.run(args);
}
}
Original file line number Diff line number Diff line change
@@ -16,8 +16,28 @@

import com.ericsson.eiffel.remrem.generate.constants.RemremGenerateServiceConstants;
import io.swagger.annotations.Api;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import org.springframework.boot.actuate.autoconfigure.endpoint.web.CorsEndpointProperties;
import org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointProperties;
import org.springframework.boot.actuate.autoconfigure.web.server.ManagementPortType;
import org.springframework.boot.actuate.endpoint.ExposableEndpoint;
import org.springframework.boot.actuate.endpoint.web.EndpointLinksResolver;
import org.springframework.boot.actuate.endpoint.web.EndpointMapping;
import org.springframework.boot.actuate.endpoint.web.EndpointMediaTypes;
import org.springframework.boot.actuate.endpoint.web.ExposableWebEndpoint;
import org.springframework.boot.actuate.endpoint.web.WebEndpointsSupplier;
import org.springframework.boot.actuate.endpoint.web.annotation.ControllerEndpointsSupplier;
import org.springframework.boot.actuate.endpoint.web.annotation.ServletEndpointsSupplier;
import org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;
import org.springframework.util.StringUtils;

import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
@@ -48,6 +68,31 @@ public UiConfiguration uiConfig() {
null);
}

@Bean
public WebMvcEndpointHandlerMapping webEndpointServletHandlerMapping(WebEndpointsSupplier webEndpointsSupplier,
ServletEndpointsSupplier servletEndpointsSupplier, ControllerEndpointsSupplier controllerEndpointsSupplier,
EndpointMediaTypes endpointMediaTypes, CorsEndpointProperties corsProperties,
WebEndpointProperties webEndpointProperties, Environment environment) {
List<ExposableEndpoint<?>> allEndpoints = new ArrayList();
Collection<ExposableWebEndpoint> webEndpoints = webEndpointsSupplier.getEndpoints();
allEndpoints.addAll(webEndpoints);
allEndpoints.addAll(servletEndpointsSupplier.getEndpoints());
allEndpoints.addAll(controllerEndpointsSupplier.getEndpoints());
String basePath = webEndpointProperties.getBasePath();
EndpointMapping endpointMapping = new EndpointMapping(basePath);
boolean shouldRegisterLinksMapping = this.shouldRegisterLinksMapping(webEndpointProperties, environment,
basePath);
return new WebMvcEndpointHandlerMapping(endpointMapping, webEndpoints, endpointMediaTypes,
corsProperties.toCorsConfiguration(), new EndpointLinksResolver(allEndpoints, basePath),
shouldRegisterLinksMapping, null);
}

private boolean shouldRegisterLinksMapping(WebEndpointProperties webEndpointProperties, Environment environment,
String basePath) {
return webEndpointProperties.getDiscovery().isEnabled() && (StringUtils.hasText(basePath)
|| ManagementPortType.get(environment).equals(ManagementPortType.DIFFERENT));
}

private ApiInfo metaData() {
final StringBuilder remremDescription = new StringBuilder();
remremDescription.append("REMReM (REST Mailbox for Registered Messages) Generate "
Original file line number Diff line number Diff line change
@@ -25,6 +25,9 @@ public final class RemremGenerateServiceConstants {
public static final String NO_TEMPLATE_ERROR = "{\"status_code\": 404, \"result\": \"FAIL\", "
+ "\"message\":\"Requested template is not available\"}";

public static final String TEMPLATE_ERROR = "{\"status_code\": 400, \"result\": \"FAIL\", "
+ "\"message\":\"Template is not correct format or something is missing in the template, please check\"}";

public static final String INTERNAL_SERVER_ERROR = "{\"status_code\": 500, \"result\": \"FAIL\", "
+ "\"message\":\"Internal server error\"}";

@@ -54,4 +57,14 @@ public final class RemremGenerateServiceConstants {
public static final String LenientValidation = "okToLeaveOutInvalidOptionalFields true will remove the optional "
+ "event fields from the input event data that does not validate successfully, "
+ "and add those removed field information into customData/remremGenerateFailures";

public static final String JSON_STATUS_CODE = "status code";

public static final String JSON_STATUS_RESULT = "result";

public static final String META = "meta";

public static final String JSON_ERROR_STATUS = "FAIL";

public static final String JSON_FATAL_STATUS = "FATAL";
}
Loading