This is an automated email from the ASF dual-hosted git repository.

ricardozanini pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-docs.git


The following commit(s) were added to refs/heads/main by this push:
     new 02127ae98 KOGITO-8874 Update documentation to use `kn-workflow 
quarkus` (#498)
02127ae98 is described below

commit 02127ae98afc4a49e2e5e0940669c602f5407797
Author: Zbyněk Drápela <[email protected]>
AuthorDate: Mon Oct 16 12:07:51 2023 +0200

    KOGITO-8874 Update documentation to use `kn-workflow quarkus` (#498)
    
    * KOGITO-8874: Update documentation to use `kn-workflow quarkus`
    
    * Move SwaggerUI note out of the tabs
    
    * Correct description of example startup log
    
    Co-authored-by: Marián Macik <[email protected]>
    
    * Move SwaggerUI to Running... and link
    
    ---------
    
    Co-authored-by: Marián Macik <[email protected]>
---
 serverlessworkflow/antora.yml                      |  2 +-
 .../create-your-first-workflow-service.adoc        | 39 ++++++++++------------
 2 files changed, 19 insertions(+), 22 deletions(-)

diff --git a/serverlessworkflow/antora.yml b/serverlessworkflow/antora.yml
index 00580446e..dbe9a5a6b 100644
--- a/serverlessworkflow/antora.yml
+++ b/serverlessworkflow/antora.yml
@@ -32,7 +32,7 @@ asciidoc:
     graalvm_min_version: 22.3.0
     spec_version: 0.8
     vscode_version: 1.67.0
-    kn_cli_version: 0.21.3
+    kn_cli_version: 0.31.0
     docker_min_version: 20.10.7
     docker_compose_min_version: 1.27.2
     # only used in downstream
diff --git 
a/serverlessworkflow/modules/ROOT/pages/getting-started/create-your-first-workflow-service.adoc
 
b/serverlessworkflow/modules/ROOT/pages/getting-started/create-your-first-workflow-service.adoc
index b11f51a69..e12dcf3df 100644
--- 
a/serverlessworkflow/modules/ROOT/pages/getting-started/create-your-first-workflow-service.adoc
+++ 
b/serverlessworkflow/modules/ROOT/pages/getting-started/create-your-first-workflow-service.adoc
@@ -58,10 +58,8 @@ The previous command creates a Maven Quarkus project in the 
`serverless-workflow
 
 * `{kogito_sw_ga}`: Adds support for workflows.
 * `quarkus-resteasy-jackson`: Adds support for RESTEasy, which is required by 
the generated REST resources that are used to start the flow process using an 
HTTP request.
-* `quarkus-smallrye-openapi`: Adds support for Swagger documentation when you 
run the application in development mode.
+* `quarkus-smallrye-openapi`: Adds support for <<swaggerui,Swagger>> 
documentation when you run the application in development mode.
 * `--no-code`: Prevents workflow example code from being generated.
-
-The SwaggerUI is available at `http://localhost:8080/q/swagger-ui/` when you 
run the application.
 --
 Apache Maven::
 +
@@ -74,7 +72,6 @@ mvn 
{quarkus_platform}:quarkus-maven-plugin:{quarkus_platform_version}:create \
     -DprojectArtifactId=serverless-workflow-hello-world \
     
-Dextensions="{kogito_sw_ga},quarkus-resteasy-jackson,quarkus-smallrye-openapi" 
\
     -DnoCode
-cd serverless-workflow-hello-world
 ----
 
 In the previous command, `org.acme`, `serverless-workflow-hello-world`, and 
`1.0.0-SNAPSHOT` is group ID, artifact ID, and version of your project 
respectively. `-DnoCode` prevents the generation of workflow example code.
@@ -86,16 +83,21 @@ Knative workflow CLI::
 
 [source,shell,subs="attributes"]
 ----
-kn workflow create \
+kn workflow quarkus create \
   --name serverless-workflow-hello-world \
   --extension quarkus-jsonp,quarkus-smallrye-openapi \
   --quarkus-platform-group-id={quarkus_platform} \
   --quarkus-version={quarkus_platform_version}
 ----
-
 For more information about Knative workflow CLI, see 
xref:testing-and-troubleshooting/kn-plugin-workflow-overview.adoc[{product_name}
 plug-in for Knative CLI].
 --
 ====
+. Navigate into the project directory.
++
+[source,shell]
+----
+cd serverless-workflow-hello-world
+----
 
 [[proc-creating-workflow]]
 == Creating a workflow
@@ -205,9 +207,8 @@ Knative workflow CLI::
 .Build your project and generate a local image called 
`dev.local/serverless-workflow-hello-world:latest`
 [source,shell]
 ----
-kn workflow build --image dev.local/serverless-workflow-hello-world --verbose
+kn workflow quarkus build --image dev.local/serverless-workflow-hello-world
 ----
-The `--verbose` flag is used to display the output of the build command. This 
flag is optional.
 
 For more information about Knative workflow CLI, see 
xref:testing-and-troubleshooting/kn-plugin-workflow-overview.adoc[{product_name}
 plug-in for Knative CLI].
 --
@@ -242,30 +243,26 @@ Apache Maven::
 mvn clean quarkus:dev
 ----
 --
-Knative workflow CLI:
+Knative workflow CLI::
 +
 --
-Currently, Knative workflow CLI doesn't support yet running workflows locally. 
You can either:
-
-.Run your workflow application using Apache Maven
+.Run your workflow application using Knative workflow CLI
 [source,shell]
 ----
-mvn clean quarkus:dev
+kn workflow quarkus run
 ----
 
-.Run your workflow application using Quarkus CLI
-[source,shell]
-----
-quarkus dev
-----
+Note that once the project is ready, the Development UI will be opened up in a 
browser automatically (on `http://localhost:8080/q/dev`). You can avoid that by 
appending `--open-dev-ui=false` after the command.
 
 For more information about Knative workflow CLI, see 
xref:testing-and-troubleshooting/kn-plugin-workflow-overview.adoc[{product_name}
 plug-in for Knative CLI].
 
-Also, to deploy and run your workflow application, see 
xref:cloud/quarkus/deploying-on-minikube.adoc[Deploying workflow application on 
Minikube]
 --
 ====
+The SwaggerUI[[swaggerui]] is available at 
`http://localhost:8080/q/swagger-ui/` when you run the application.
 +
-.Example response
+Also, to deploy and run your workflow application, see 
xref:cloud/quarkus/deploying-on-minikube.adoc[Deploying workflow application on 
Minikube]
++
+.Example startup log
 [source,shell,subs="attributes"]
 ----
 [INFO] ------< org.acme:serverless-workflow-hello-world >-------
@@ -322,7 +319,7 @@ curl -X POST -H 'Content-Type:application/json' 
http://localhost:8080/hello_worl
 ----
 --
 
-. When running in development mode (using Quarkus CLI or Apache Maven), you 
can update your workflow with a new `mantra` value without restarting the 
application.
+. When running in development mode, you can update your workflow with a new 
`mantra` value without restarting the application.
 +
 --
 .Update your workflow


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to