第1章 Getting started
1.1. Creating and running workflows with Knative Workflow plugin リンクのコピーリンクがクリップボードにコピーされました!
You can create and run the OpenShift Serverless Logic workflows locally.
1.1.1. Creating a workflow リンクのコピーリンクがクリップボードにコピーされました!
You can use the create command with kn workflow to set up a new OpenShift Serverless Logic project in your current directory.
Prerequisites
-
You have installed the OpenShift Serverless Logic
kn-workflowCLI plugin.
Procedure
Create a new OpenShift Serverless Logic workflow project by running the following command:
$ kn workflow createBy default, the generated project name is
new-project. You can change the project name by using the[-n|--name]flag as follows:Example command
$ kn workflow create --name my-project
1.1.2. Running a workflow locally リンクのコピーリンクがクリップボードにコピーされました!
You can use the run command with kn workflow to build and run your OpenShift Serverless Logic workflow project in your current directory.
Prerequisites
- You have installed Podman on your local machine.
-
You have installed the OpenShift Serverless Logic
kn-workflowCLI plugin. - You have created an OpenShift Serverless Logic workflow project.
Procedure
Run the following command to build and run your OpenShift Serverless Logic workflow project:
$ kn workflow runWhen the project is ready, the Development UI automatically opens in your browser on
localhost:8080/q/dev-uiand you will find the Serverless Workflow Tools tile available. Alternatively, you can access the tool directly usinghttp://localhost:8080/q/dev-ui/org.apache.kie.sonataflow.sonataflow-quarkus-devui/workflows.
You can execute a workflow locally using a container that runs on your machine. Stop the container with Ctrl+C.