Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Merge branch 'main' into docker_changes
Browse files Browse the repository at this point in the history
  • Loading branch information
v1r3n committed Sep 27, 2023
2 parents 7809a8a + eab0c5b commit e33156c
Show file tree
Hide file tree
Showing 50 changed files with 828 additions and 340 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CI

on: [ push, pull_request ]
on: [ push, pull_request, workflow_dispatch ]

jobs:
build:
Expand All @@ -12,11 +12,11 @@ jobs:
fetch-depth: 0
- name: Gradle wrapper validation
uses: gradle/wrapper-validation-action@v1
- name: Set up Zulu JDK 11
- name: Set up Zulu JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
java-version: 17
- name: Cache SonarCloud packages
uses: actions/cache@v3
with:
Expand All @@ -32,7 +32,6 @@ jobs:
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: ${{ runner.os }}-gradle-
- name: Build with Gradle
if: github.ref != 'refs/heads/main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
name: Gradle Build and Publish
steps:
- uses: actions/checkout@v3
- name: Set up Zulu JDK 11
- name: Set up Zulu JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
java-version: '17'
- name: Cache Gradle packages
uses: actions/cache@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-gradle-wrapper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Zulu JDK 11
- name: Set up Zulu JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
java-version: '17'
- name: Update Gradle Wrapper
uses: gradle-update/update-gradle-wrapper-action@v1
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Binaries are available from [Netflix OSS Maven](https://artifacts.netflix.net/ne
* The indexing backend is [Elasticsearch](https://www.elastic.co/) (6.x)

## Other Requirements
* JDK 11+
* JDK 17+
* UI requires Node 14 to build. Earlier Node versions may work but is untested.

## Get Support
Expand Down
3 changes: 2 additions & 1 deletion WHOSUSING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ We would like to keep track of whose using Conductor. Please send a pull request
* [Supercharge](https://supercharge.io)[[@team-supercharge](https://github.com/team-supercharge)]
* [GE Healthcare](https://www.gehealthcare.com/) [[@flavioschuindt](https://github.com/flavioschuindt)]
* [ReliaQuest](https://www.reliaquest.com/) [[@rq-dbrady](https://github.com/rq-dbrady)] [[@alexmay48](https://github.com/alexmay48)]
* [Clari](https://www.clari.com/) [[@TeamJOF](https://github.com/clari)]
* [Clari](https://www.clari.com/) [[@TeamJOF](https://github.com/clari)]
* [Atlassian](https://www.atlassian.com/) [[@LuisLainez](https://github.com/LuisLainez)] [[@aradu](https://github.com/aradu-atlassian)]
12 changes: 12 additions & 0 deletions awss3-storage/dependencies.lock
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,12 @@
"com.netflix.conductor:conductor-core"
],
"locked": "2.17.2"
},
"org.openjdk.nashorn:nashorn-core": {
"firstLevelTransitive": [
"com.netflix.conductor:conductor-core"
],
"locked": "15.4"
}
},
"testCompileClasspath": {
Expand Down Expand Up @@ -392,6 +398,12 @@
"org.junit.vintage:junit-vintage-engine": {
"locked": "5.8.2"
},
"org.openjdk.nashorn:nashorn-core": {
"firstLevelTransitive": [
"com.netflix.conductor:conductor-core"
],
"locked": "15.4"
},
"org.springframework.boot:spring-boot-starter-log4j2": {
"locked": "2.7.3"
},
Expand Down
12 changes: 12 additions & 0 deletions awssqs-event-queue/dependencies.lock
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,12 @@
"com.netflix.conductor:conductor-core"
],
"locked": "2.17.2"
},
"org.openjdk.nashorn:nashorn-core": {
"firstLevelTransitive": [
"com.netflix.conductor:conductor-core"
],
"locked": "15.4"
}
},
"testCompileClasspath": {
Expand Down Expand Up @@ -413,6 +419,12 @@
"org.junit.vintage:junit-vintage-engine": {
"locked": "5.8.2"
},
"org.openjdk.nashorn:nashorn-core": {
"firstLevelTransitive": [
"com.netflix.conductor:conductor-core"
],
"locked": "15.4"
},
"org.springframework.boot:spring-boot-starter": {
"locked": "2.7.3"
},
Expand Down
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ allprojects {
apply plugin: 'java-library'
apply plugin: 'project-report'

sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17

group = 'com.netflix.conductor'

Expand Down Expand Up @@ -164,11 +164,11 @@ allprojects {
}
}

// all client and their related modules are published with Java 11 compatibility
// all client and their related modules are published with Java 17 compatibility
["annotations", "common", "client", "client-spring", "grpc", "grpc-client"].each {
project(":conductor-$it") {
compileJava {
options.release = 11
options.release = 17
}
}
}
Expand Down
16 changes: 14 additions & 2 deletions cassandra-persistence/dependencies.lock
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,12 @@
"com.netflix.conductor:conductor-core"
],
"locked": "2.17.2"
},
"org.openjdk.nashorn:nashorn-core": {
"firstLevelTransitive": [
"com.netflix.conductor:conductor-core"
],
"locked": "15.4"
}
},
"testCompileClasspath": {
Expand Down Expand Up @@ -226,7 +232,7 @@
"locked": "2.17.2"
},
"org.codehaus.groovy:groovy-all": {
"locked": "2.5.13"
"locked": "2.5.22"
},
"org.junit.vintage:junit-vintage-engine": {
"locked": "5.8.2"
Expand Down Expand Up @@ -408,11 +414,17 @@
"locked": "2.17.2"
},
"org.codehaus.groovy:groovy-all": {
"locked": "2.5.13"
"locked": "2.5.22"
},
"org.junit.vintage:junit-vintage-engine": {
"locked": "5.8.2"
},
"org.openjdk.nashorn:nashorn-core": {
"firstLevelTransitive": [
"com.netflix.conductor:conductor-core"
],
"locked": "15.4"
},
"org.spockframework:spock-core": {
"locked": "1.3-groovy-2.5"
},
Expand Down
12 changes: 12 additions & 0 deletions client-spring/dependencies.lock
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,12 @@
],
"locked": "2.35"
},
"org.openjdk.nashorn:nashorn-core": {
"firstLevelTransitive": [
"com.netflix.conductor:conductor-java-sdk"
],
"locked": "15.4"
},
"org.slf4j:slf4j-api": {
"firstLevelTransitive": [
"com.netflix.conductor:conductor-client"
Expand Down Expand Up @@ -446,6 +452,12 @@
"org.junit.vintage:junit-vintage-engine": {
"locked": "5.8.2"
},
"org.openjdk.nashorn:nashorn-core": {
"firstLevelTransitive": [
"com.netflix.conductor:conductor-java-sdk"
],
"locked": "15.4"
},
"org.slf4j:slf4j-api": {
"firstLevelTransitive": [
"com.netflix.conductor:conductor-client"
Expand Down
4 changes: 2 additions & 2 deletions client/dependencies.lock
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
"locked": "2.17.2"
},
"org.codehaus.groovy:groovy-all": {
"locked": "2.5.13"
"locked": "2.5.22"
},
"org.glassfish.jersey.core:jersey-common": {
"locked": "2.22.2"
Expand Down Expand Up @@ -361,7 +361,7 @@
"locked": "2.17.2"
},
"org.codehaus.groovy:groovy-all": {
"locked": "2.5.13"
"locked": "2.5.22"
},
"org.glassfish.jersey.core:jersey-common": {
"locked": "2.22.2"
Expand Down
2 changes: 2 additions & 0 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ dependencies {

implementation "com.github.ben-manes.caffeine:caffeine"

implementation "org.openjdk.nashorn:nashorn-core:15.4"

// JAXB is not bundled with Java 11, dependencies added explicitly
// These are needed by Apache BVAL
implementation "jakarta.xml.bind:jakarta.xml.bind-api:${revJAXB}"
Expand Down
16 changes: 14 additions & 2 deletions core/dependencies.lock
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@
"org.apache.logging.log4j:log4j-web": {
"locked": "2.17.2"
},
"org.openjdk.nashorn:nashorn-core": {
"locked": "15.4"
},
"org.springframework.boot:spring-boot-starter": {
"locked": "2.7.3"
},
Expand Down Expand Up @@ -182,6 +185,9 @@
"com.netflix.conductor:conductor-common"
],
"locked": "2.17.2"
},
"org.openjdk.nashorn:nashorn-core": {
"locked": "15.4"
}
},
"testCompileClasspath": {
Expand Down Expand Up @@ -249,14 +255,17 @@
"locked": "2.17.2"
},
"org.codehaus.groovy:groovy-all": {
"locked": "2.5.13"
"locked": "2.5.22"
},
"org.glassfish.jaxb:jaxb-runtime": {
"locked": "2.3.3"
},
"org.junit.vintage:junit-vintage-engine": {
"locked": "5.8.2"
},
"org.openjdk.nashorn:nashorn-core": {
"locked": "15.4"
},
"org.spockframework:spock-core": {
"locked": "1.3-groovy-2.5"
},
Expand Down Expand Up @@ -388,14 +397,17 @@
"locked": "2.17.2"
},
"org.codehaus.groovy:groovy-all": {
"locked": "2.5.13"
"locked": "2.5.22"
},
"org.glassfish.jaxb:jaxb-runtime": {
"locked": "2.3.3"
},
"org.junit.vintage:junit-vintage-engine": {
"locked": "5.8.2"
},
"org.openjdk.nashorn:nashorn-core": {
"locked": "15.4"
},
"org.spockframework:spock-core": {
"locked": "1.3-groovy-2.5"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

public class ScriptEvaluator {

private static final ScriptEngine engine = new ScriptEngineManager().getEngineByName("nashorn");
private static ScriptEngine engine;

private ScriptEvaluator() {}

Expand All @@ -45,6 +45,13 @@ public static Boolean evalBool(String script, Object input) throws ScriptExcepti
* @return Generic object, the result of the evaluated expression.
*/
public static Object eval(String script, Object input) throws ScriptException {
if (engine == null) {
engine = new ScriptEngineManager().getEngineByName("Nashorn");
}
if (engine == null) {
throw new RuntimeException(
"missing nashorn engine. Ensure you are running supported JVM");
}
Bindings bindings = engine.createBindings();
bindings.put("$", input);
return engine.eval(script, bindings);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -458,14 +458,12 @@ private void endExecution(WorkflowModel workflow, TaskModel terminateTask) {
String terminationStatus =
(String)
terminateTask
.getWorkflowTask()
.getInputParameters()
.getInputData()
.get(Terminate.getTerminationStatusParameter());
String reason =
(String)
terminateTask
.getWorkflowTask()
.getInputParameters()
.getInputData()
.get(Terminate.getTerminationReasonParameter());
if (StringUtils.isBlank(reason)) {
reason =
Expand Down
Loading

0 comments on commit e33156c

Please sign in to comment.