-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[KOGITO-8961][KSW-Operator] Split use case and test examples
Signed-off-by: desmax74 <mdessi@redhat.com>
- Loading branch information
Showing
26 changed files
with
96 additions
and
44 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
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
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
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
9 changes: 9 additions & 0 deletions
9
test/samples/sw.kogito_v1alpha08_kogitoserverlessplatform.yaml
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,9 @@ | ||
apiVersion: sw.kogito.kie.org/v1alpha08 | ||
kind: KogitoServerlessPlatform | ||
metadata: | ||
name: kogito-workflow-platform | ||
spec: | ||
platform: | ||
registry: | ||
address: quay.io/kiegroup | ||
secret: regcred |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
50 changes: 50 additions & 0 deletions
50
test/samples/sw.kogito_v1alpha08_kogitoserverlessworkflow_gen.yaml
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,50 @@ | ||
apiVersion: sw.kogito.kie.org/v1alpha08 | ||
kind: KogitoServerlessWorkflow | ||
metadata: | ||
name: greeting | ||
annotations: | ||
sw.kogito.kie.org/description: Greeting example on k8s! | ||
sw.kogito.kie.org/version: 0.0.1 | ||
generation: 1 | ||
spec: | ||
flow: | ||
start: ChooseOnLanguage | ||
functions: | ||
- name: greetFunction | ||
type: custom | ||
operation: sysout | ||
states: | ||
- name: ChooseOnLanguage | ||
type: switch | ||
dataConditions: | ||
- condition: "${ .language == \"English\" }" | ||
transition: GreetInEnglish | ||
- condition: "${ .language == \"Spanish\" }" | ||
transition: GreetInSpanish | ||
- condition: "${ .language == \"Italian\" }" | ||
transition: GreetInItalian | ||
defaultCondition: GreetInEnglish | ||
- name: GreetInEnglish | ||
type: inject | ||
data: | ||
greeting: "Hello from JSON Workflow, " | ||
transition: GreetPerson | ||
- name: GreetInSpanish | ||
type: inject | ||
data: | ||
greeting: "Saludos desde JSON Workflow, " | ||
transition: GreetPerson | ||
- name: GreetInItalian | ||
type: inject | ||
data: | ||
greeting: "Saluti dal JSON Workflow, " | ||
transition: GreetPerson | ||
- name: GreetPerson | ||
type: operation | ||
actions: | ||
- name: greetAction | ||
functionRef: | ||
refName: greetFunction | ||
arguments: | ||
message: ".greeting+.name" | ||
end: true |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.