Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[KOGITO-9324] - Testing CLI + Operator using serverless-workflow-foreach-quarkus #1687

Merged
merged 6 commits into from
Aug 15, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,9 @@ once completed, it should return:
}
```

### Building and Deploying Workflow using Kogito Serverless Workflow Operator
You need to install the Kogito Serverless Workflow Operator in your Kubernetes cluster from [here](https://kiegroup.github.io/kogito-docs/serverlessworkflow/latest/cloud/operator/install-serverless-operator.html).

In native Kubernetes approach you can model workflows using [YAML](operator/foreach_sw.yaml) definitions and directly deploy them using the Kogito Serverless Workflow Operator.

Refer to the [Serverless Workflow Guide](https://kiegroup.github.io/kogito-docs/serverlessworkflow/latest/cloud/index.html) to know how to build and deploy workflows using Kogito Serverless Workflow Operator.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
apiVersion: sw.kogito.kie.org/v1alpha08
kind: KogitoServerlessWorkflow
metadata:
name: foreach
annotations:
sw.kogito.kie.org/description: Serverless Workflow for each example on k8s!
sw.kogito.kie.org/version: 0.0.1
sw.kogito.kie.org/profile: dev
sw.kogito.kie.org/resource-openapi: openapi-configmap
spec:
flow:
start: start
functions:
- name: printMessage
type: custom
operation: sysout
- name: increase
type: expression
operation: .item + 1
states:
- name: start
type: foreach
iterationParam: item
inputCollection: .input
outputCollection: .output
stateDataFilter:
output: '{output: .output}'
actions:
- name: increase
functionRef:
refName: increase
- name: printAction
functionRef:
refName: printMessage
arguments:
message: .item
end: true