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 all 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,8 @@ once completed, it should return:
}
```

### Building and Deploying Workflow using CLI + Kogito Serverless Workflow Operator
For this prepare your environment by following the instructions from [here]().
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing link ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@radtriste The mentioned doc is not yet created. We need to update it later when its created.


Refer to [Serverless Workflow Guide](), to know how to build and deploy workflows using CLI + Kogito Serverless Workflow Operator.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

link ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@radtriste The mentioned doc is not yet created. We need to update it later when its created.

Refer to [Serverless Workflow Guide](https://kiegroup.github.io/kogito-docs/serverlessworkflow/latest/cloud/index.html), to know more about Kogito Serverless Workflow Operator.
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
apiVersion: sonataflow.org/v1alpha08
kind: SonataFlow
metadata:
annotations:
sonataflow.org/description: An example of how to use for each state
sonataflow.org/expressionLang: jq
sonataflow.org/profile: dev
sonataflow.org/version: ""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is that mandatory ?
This could confuse the user to have an empty version ...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was automatically generated by CLI.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ederign maybe we can fix this attribute to 0.1.0? 🤔

creationTimestamp: null
labels:
app: foreach
name: foreach
namespace: operatordemo
spec:
flow:
functions:
- name: printMessage
operation: sysout
type: custom
- name: increase
operation: .item + 1
type: expression
start:
stateName: start
states:
- actions:
- actionDataFilter:
useResults: true
functionRef:
invoke: sync
refName: increase
name: increase
- actionDataFilter:
useResults: true
functionRef:
arguments:
message: .item
invoke: sync
refName: printMessage
name: printAction
end:
terminate: true
inputCollection: .input
iterationParam: item
mode: parallel
name: start
outputCollection: .output
stateDataFilter:
output: '{output: .output}'
type: foreach
resources: {}
status:
address: {}
lastTimeRecoverAttempt: null
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "foreach",
"version": "1.0",
"specVersion": "0.8",
"name": "Workflow ForEach example",
"description": "An example of how to use for each state",
"start": "start",
Expand Down
Loading