File tree Expand file tree Collapse file tree 6 files changed +49
-83
lines changed
java/io/serverlessworkflow/api
src/main/java/io/serverlessworkflow/impl Expand file tree Collapse file tree 6 files changed +49
-83
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public class FeaturesTest {
4545 "features/try.yaml" ,
4646 "features/listen.yaml" ,
4747 "features/callFunction.yaml" ,
48- "features/callCustomFunction.json "
48+ "features/callCustomFunction.yaml "
4949 })
5050 public void testSpecFeaturesParsing (String workflowLocation ) throws IOException {
5151 Workflow workflow = readWorkflowFromClasspath (workflowLocation );
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ document :
2+ dsl : 1.0.0-alpha5
3+ namespace : test
4+ name : call-example
5+ version : 0.1.0
6+ schedule :
7+ cron : 0 8 * * *
8+ do :
9+ - getData :
10+ call : http
11+ with :
12+ method : get
13+ endpoint : https://api.agify.io?name=meelad
14+ output :
15+ as : " .data.reading"
16+ - filterData :
17+ for :
18+ in : " .data.reading"
19+ each : reading
20+ do :
21+ - log :
22+ call : https://raw.githubusercontent.com/serverlessworkflow/catalog/main/functions/log/1.0.0/function.yaml
23+ with :
24+ level : information
25+ format : " {TIMESTAMP} [{LEVEL}] ({CONTEXT}): {MESSAGE}"
26+ message : Hello, world!
27+ timestamp : true
Original file line number Diff line number Diff line change 2525 <artifactId >jersey-media-json-jackson</artifactId >
2626 <version >${version.org.glassfish.jersey} </version >
2727 </dependency >
28- <dependency >
29- <groupId >org.junit.jupiter</groupId >
30- <artifactId >junit-jupiter-api</artifactId >
31- <scope >test</scope >
32- </dependency >
33- <dependency >
34- <groupId >org.junit.jupiter</groupId >
35- <artifactId >junit-jupiter-engine</artifactId >
36- <scope >test</scope >
37- </dependency >
38- <dependency >
39- <groupId >org.junit.jupiter</groupId >
40- <artifactId >junit-jupiter-params</artifactId >
41- <scope >test</scope >
42- </dependency >
43- <dependency >
44- <groupId >org.assertj</groupId >
45- <artifactId >assertj-core</artifactId >
46- <scope >test</scope >
47- </dependency >
28+ <dependency >
29+ <groupId >org.junit.jupiter</groupId >
30+ <artifactId >junit-jupiter-api</artifactId >
31+ <scope >test</scope >
32+ </dependency >
33+ <dependency >
34+ <groupId >org.junit.jupiter</groupId >
35+ <artifactId >junit-jupiter-engine</artifactId >
36+ <scope >test</scope >
37+ </dependency >
38+ <dependency >
39+ <groupId >org.junit.jupiter</groupId >
40+ <artifactId >junit-jupiter-params</artifactId >
41+ <scope >test</scope >
42+ </dependency >
43+ <dependency >
44+ <groupId >org.assertj</groupId >
45+ <artifactId >assertj-core</artifactId >
46+ <scope >test</scope >
47+ </dependency >
4848 </dependencies >
4949 <build >
5050 <plugins >
Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ public HttpExecutor(CallHTTP task) {
4040
4141 @ Override
4242 protected JsonNode internalExecute (JsonNode node ) {
43-
4443 HTTPArguments httpArgs = task .getWith ();
44+ // missing checks
4545 String uri =
4646 httpArgs
4747 .getEndpoint ()
Original file line number Diff line number Diff line change 2929import java .util .Map ;
3030import java .util .concurrent .ConcurrentHashMap ;
3131
32- /*
33- * Copyright 2020-Present The Serverless Workflow Specification Authors
34- *
35- * Licensed under the Apache License, Version 2.0 (the "License");
36- * you may not use this file except in compliance with the License.
37- * You may obtain a copy of the License at
38- *
39- * http://www.apache.org/licenses/LICENSE-2.0
40- *
41- * Unless required by applicable law or agreed to in writing, software
42- * distributed under the License is distributed on an "AS IS" BASIS,
43- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
44- * See the License for the specific language governing permissions and
45- * limitations under the License.
46- */
4732public class WorkflowDefinition {
4833
4934 private WorkflowDefinition (Workflow workflow , Collection <WorkflowExecutionListener > listeners ) {
You can’t perform that action at this time.
0 commit comments