Skip to content

Commit dd915ad

Browse files
style(formatting): revise README (#316)
* style(formatting): revise README * revise readme and images
1 parent 8452107 commit dd915ad

6 files changed

+80
-130
lines changed

README.md

+80-130
Original file line numberDiff line numberDiff line change
@@ -1,135 +1,104 @@
1-
# Camunda Platform 8 - Get Started
2-
3-
This repository contains a short guide to get started with [Camunda
4-
Platform 8](https://camunda.com/products/cloud/). It contains instructions on how to
5-
model your first process, create a user task form, and automate a service task.
6-
During the guide you will use Console, Modeler, Zeebe, Operate, and Tasklist.
7-
8-
# Table of contents
9-
10-
- [Camunda Platform 8 - Get Started](#camunda-platform-8---get-started)
11-
- [Table of contents](#table-of-contents)
12-
- [Repository structure](#repository-structure)
13-
- [Set up the environment](#set-up-the-environment)
14-
- [Model the process](#model-the-process)
15-
- [Model the user task form](#model-the-user-task-form)
16-
- [Configure user task to use form](#configure-user-task-to-use-form)
17-
- [Configure service task](#configure-service-task)
18-
- [Deploy process](#deploy-process)
19-
- [Deploy using Camunda Modeler](#deploy-using-camunda-modeler)
20-
- [Deploy using Web Modeler](#deploy-using-web-modeler)
21-
- [Deploy using zbctl](#deploy-using-zbctl)
22-
- [Deploy using code](#deploy-using-code)
23-
- [Start process instance](#start-process-instance)
24-
- [Start instance using Camunda Modeler](#start-instance-using-camunda-modeler)
25-
- [Start instance using Web Modeler](#start-instance-using-web-modeler)
26-
- [Start instance using zbctl](#start-instance-using-zbctl)
27-
- [Start instance using code](#start-instance-using-code)
28-
- [Complete the user task](#complete-the-user-task)
29-
- [Complete the service task](#complete-the-service-task)
30-
- [Further references](#further-references)
31-
- [Developer setup of Camunda 8](#developer-setup)
1+
# Get started with Camunda 8
2+
3+
This repository gets users started with [Camunda 8](https://camunda.com/platform/) and contains instructions on how to:
4+
5+
- Model your first process
6+
- Create a user task form
7+
- Automate a service task
8+
9+
During this guide, you will use Console, Modeler, Zeebe, Operate, and Tasklist.
3210

3311
# Repository structure
3412

3513
The repository contains the following folders:
3614

37-
- [_csharp_](csharp/) - C# example for deploy, create instance, and a job worker
38-
- [_go_](go/) - Go example for deploy, create instance, and job worker
39-
- [_images_](images/) - Contains screenshots and images for the guide
40-
- [_java_](java/) - Plain Java example for deploy, create instance, and a job worker
41-
- [_nodejs_](nodejs/) - Node.js example for deploy, create instance, and a job worker
42-
- [_process_](process/) - Contains the BPMN process and the user task form
43-
- [_spring_](spring/) - Spring Boot example for deploy, create instance, and a job worker
15+
- [_csharp_](csharp/) - C# example for deploy, create instance, and a job worker.
16+
- [_go_](go/) - Go example for deploy, create instance, and a job worker.
17+
- [_images_](images/) - Contains screenshots and images for the guide.
18+
- [_java_](java/) - Plain Java example for deploy, create instance, and a job worker.
19+
- [_nodejs_](nodejs/) - Node.js example for deploy, create instance, and a job worker.
20+
- [_process_](process/) - Contains the BPMN process and the user task form.
21+
- [_spring_](spring/) - Spring Boot example for deploy, create instance, and a job worker.
4422

45-
# Set up the environment
23+
# Configure your environment
4624

47-
To follow this guide, we need a running Camunda Platform 8 cluster. For this purpose,
48-
we use the Camunda Platform 8 SaaS offering at https://camunda.io.
25+
To follow this guide, you first need a running Camunda 8 cluster. For this purpose,
26+
use the Camunda 8 SaaS offering at [https://camunda.io](https://camunda.io).
4927

50-
If you prefer a local setup, visit the [end of this guide](#developer-setup).
28+
If you prefer a local developer setup where you can run the getting started guide against a locally-hosted instance, follow the [Camunda 8 deployment guide](https://docs.camunda.io/docs/self-managed/platform-deployment/overview/).
5129

52-
After the sign-up and log-in at https://camunda.io, we need to [create a new cluster](https://docs.camunda.io/docs/guides/getting-started/create-your-cluster/) with the latest stable version of Zeebe and the name **Test Cluster**.
30+
To set up your environment using the SaaS offering, take the following steps:
31+
32+
1. [Sign up and log in](https://docs.camunda.io/docs/next/guides/getting-started/) at [https://camunda.io](https://camunda.io).
33+
2. [Create a new cluster](https://docs.camunda.io/docs/guides/create-cluster/) with the latest stable version of Zeebe and the name **Test cluster**.
5334

5435
![Camunda Platform Cluster](images/cluster.png)
5536

56-
After the cluster is available, we need to create a pair of [Client
57-
Credentials](https://docs.camunda.io/docs/components/console/manage-clusters/manage-api-clients/).
58-
To do this, take the following steps:
37+
3. After the cluster is available, [create client credentials](https://docs.camunda.io/docs/components/console/manage-clusters/manage-api-clients/). To do this:
38+
1. From Console, navigate to the **Clusters** detail page.
39+
2. Click on your cluster and switch to the **API** tab.
40+
3. Click **Create new client** and name your client accordingly.
5941

60-
1. Navigate to the **Clusters** detail page.
61-
2. Switch to the **API** tab.
62-
3. Create a new client credential and either note down the **client id** and **client secret**, or
63-
download the credentials file.
42+
**NOTE: Ensure you keep the generated client credentials in a safe place. The client secret will not be shown again. For your convenience, you can also download the client information to your computer.**
6443

6544
# Model the process
6645

67-
In this example, we'll model a simple process to send an email message.
46+
In this example, we'll model a process to send an email message.
6847

69-
Camunda Platform 8 allows you to use the
48+
Camunda 8 allows you to use the
7049
[BPMN](https://docs.camunda.io/docs/components/modeler/bpmn/bpmn-primer/)
7150
standard to model your business processes. The process consists of two
72-
tasks: a user task to allow a human to enter the message content, and a service
73-
task to automatically send the email message.
51+
tasks: a [user task](https://docs.camunda.io/docs/next/guides/orchestrate-human-tasks/) to allow a human to enter the message content, and a [service
52+
task](https://docs.camunda.io/docs/next/guides/orchestrate-microservices/) to automatically send the email message.
7453

7554
![Process](images/send-email.png)
7655

77-
**Note**: To keep the scope of this guide easy to follow, we only build the
78-
scaffolding for this process automation example and will not actually send
79-
an email. This can be a task for you to extend the example and connect to a mail
80-
provider.
81-
82-
To create the process, we use the desktop [Camunda Modeler] or [Web Modeler].
56+
**NOTE: To keep the scope of this guide limited, this guide only steps through the framework for this process automation example and will not actually send an email. If you would like to send an email, you may extend the example and [connect to a mail provider](https://docs.camunda.io/docs/next/guides/configuring-out-of-the-box-connectors/).**
8357

84-
Find the finished process at [process/send-email.bpmn](process/send-email.bpmn).
58+
To create the process, use [Modeler](https://docs.camunda.io/docs/components/modeler/about-modeler/).
8559

86-
## Model the user task form
60+
Find the finished process at [process/send-email.bpmn](process/send-email.bpmn), and learn more about [designing a process using BPMN](https://docs.camunda.io/docs/next/guides/automating-a-process-using-bpmn/).
8761

88-
To help users complete the user task **Enter Message**, we create a user
89-
task form using the modeler.
62+
## Model and configure the user task form
9063

91-
Use [Camunda Modeler] or [Web Modeler] to create the form.
64+
To help users complete the user task **Enter message**, [create a user
65+
task form using Modeler](https://docs.camunda.io/docs/next/guides/utilizing-forms/).
9266

93-
Find the finished form at [process/enter-email-message.form](process/enter-email-message.form).
67+
Find the finished form at [process/enter-email-message.form](process/enter-email-message.form)
9468

95-
## Configure user task to use form
96-
97-
Now that we've created a form, we must configure the user task to use the form.
98-
To do this, we copy the JSON content of the form into the **Form Json
99-
Configuration** field under the **Forms** tab of the modeler.
69+
Configure the user task to use the form.
70+
To do this, copy the JSON content of the form into the **Form JSON configuration** field under the **Form** tab in the Modeler properties panel.
10071

10172
![Configure user task form](images/user-task-form.png)
10273

103-
## Configure service task
74+
## Configure a service task
75+
76+
The last step is defining the job type of the service task.
10477

105-
The last step is defining the job type of the service task. The job type is
106-
needed for a job worker to subscribe to the jobs of the task and
107-
complete them. The [Camunda Platform 8 Documentation](https://docs.camunda.io) contains more information about
108-
[job workers](https://docs.camunda.io/docs/components/concepts/job-workers/).
78+
The job type is
79+
needed for a [job worker](https://docs.camunda.io/docs/components/concepts/job-workers/) to subscribe to the jobs of the task and
80+
complete them.
10981

11082
![Configure service task](images/configure-service-task.png)
11183

11284
# Deploy process
11385

114-
Deploy the process using [Camunda
115-
Modeler](#deploy-using-camunda-modeler), [Web
116-
Modeler](#deploy-using-web-modeler), [zbctl](#deploy-using-zbctl), or your [own
117-
code](#deploy-using-code).
86+
Deploy the process using [Web
87+
Modeler](#deploy-using-web-modeler), [Desktop Modeler](#deploy-using-desktop-modeler), [zbctl](#deploy-using-zbctl), or your [own code](#deploy-using-code).
11888

119-
## Deploy using Camunda Modeler
89+
## Deploy using Web Modeler
12090

121-
To deploy the [process](process/send-email.bpmn) using Camunda Modeler,
122-
follow [these steps](https://docs.camunda.io/docs/components/modeler/desktop-modeler/connect-to-camunda-cloud/).
91+
To deploy the process using Web Modeler, click **Deploy** in the upper right corner of the modeling screen. See [deploy a process](https://docs.camunda.io/docs/components/modeler/web-modeler/run-or-publish-your-process/#deploy-a-process) for additional details.
12392

124-
## Deploy using Web Modeler
93+
## Deploy using Desktop Modeler
12594

126-
To deploy the [process](process/send-email.bpmn) using Web Modeler,
127-
follow [these steps](https://docs.camunda.io/docs/components/modeler/web-modeler/save-and-deploy/).
95+
To deploy the process using Desktop Modeler,
96+
[follow the steps in the Desktop Modeler documentation](https://docs.camunda.io/docs/components/modeler/desktop-modeler/connect-to-camunda-8/).
12897

12998
## Deploy using zbctl
13099

131-
To the deploy the [process](process/send-email.bpmn) using `zbctl`, use the
132-
following command:
100+
To the deploy the process using `zbctl`, run the
101+
following command after inserting your cluster id and client credentials:
133102

134103
```bash
135104
zbctl deploy resource send-email.bpmn \
@@ -138,34 +107,27 @@ zbctl deploy resource send-email.bpmn \
138107
--clientSecret '.RPbZc6q0d6uzRbB4LW.B8lCpsxbBEpmBX0AHQGzINf3.KK9RkzZW1aDaZ-7WYNJ'
139108
```
140109

141-
For **Camunda Platform 8**, we need the cluster id and the [client
142-
credentials](#setup-the-environment).
143-
144110
## Deploy using code
145111

146112
Writing your own code allows you to deploy the process (for example, on application
147113
startup) to ensure the latest version is deployed. To see examples of
148-
this, visit the programming language [specific folders](#repository-structure).
114+
this, visit the [programming language folders](#repository-structure).
149115

150116
# Start process instance
151117

152-
Start a new instance of the process using [Camunda
153-
Modeler](#start-instance-using-camunda-modeler), [Web
154-
Modeler](#start-instance-using-web-modeler), [zbctl](#start-instance-using-zbctl), or your [own
155-
code](#start-instance-using-code).
118+
Start a new instance of the process using [Web Modeler](#start-instance-using-web-modeler), [Desktop Modeler](#start-instance-using-desktop-modeler), [zbctl](#start-instance-using-zbctl), or your [own code](#start-instance-using-code).
156119

157-
## Start instance using Camunda Modeler
120+
## Start instance using Web Modeler
158121

159-
After the process is deployed, follow [these steps](click **Start Current Diagram**) to start an instance of the process with Camunda Modeler.
122+
To start an instance of the process using Web Modeler, click **Run** in the top right corner of the modeling screen. See [run or publish your process](https://docs.camunda.io/docs/components/modeler/web-modeler/run-or-publish-your-process/) for additional details.
160123

161-
## Start instance using Web Modeler
124+
## Start instance using Desktop Modeler
162125

163-
To start an instance of the process using Web Modeler, follow [these steps](https://docs.camunda.io/docs/components/modeler/web-modeler/start-instance/).
126+
After the process is deployed, click **Start Current Diagram** to start an instance of the process with Desktop Modeler.
164127

165128
## Start instance using zbctl
166129

167-
To start a process instance of the BPMN process id `send-email` using `zbctl`,
168-
use the following command:
130+
To start a process instance of the BPMN process id `send-email` using `zbctl`, insert your cluster id and client credentials, and run the following command:
169131

170132
```bash
171133
zbctl create instance send-email \
@@ -174,61 +136,49 @@ zbctl create instance send-email \
174136
--clientSecret '.RPbZc6q0d6uzRbB4LW.B8lCpsxbBEpmBX0AHQGzINf3.KK9RkzZW1aDaZ-7WYNJ'
175137
```
176138

177-
For **Camunda Platform 8**, we need the cluster id and the [client
178-
credentials](#setup-the-environment).
179-
180139
## Start instance using code
181140

182141
Writing your own code allows you to start an instance of the process on an
183142
external trigger, like an incoming message or a user request. To see examples of this,
184-
visit the programming language [specific folders](#repository-structure).
143+
visit the [programming language folders](#repository-structure).
185144

186145
# Complete the user task
187146

188-
The first task of the process is the [user
189-
task](https://docs.camunda.io/docs/components/modeler/bpmn/user-tasks/)
190-
**Enter Message**.
147+
The first task of the process is the [user task](https://docs.camunda.io/docs/components/modeler/bpmn/user-tasks/)
148+
**Enter message**.
191149

192150
![Process](images/send-email.png)
193151

194-
To complete the user task, we use Tasklist. To do this, visit the cluster's
195-
details page in Camunda Platform 8 and launch Tasklist.
152+
To complete the user task, take the following steps where we will use [Tasklist](https://docs.camunda.io/docs/components/tasklist/introduction-to-tasklist/):
196153

197-
Take the following steps:
198-
199-
1. In Tasklist, select the **Enter Message** task from the list of tasks.
200-
2. Click the **Claim** button to assign the task to you to work on it.
201-
3. Fill out the **E-Mail Content** field with the message you want to send.
202-
4. Select **Complete Task**.
154+
1. Navigate to Tasklist by clicking the square-shaped **Camunda components** icon in the top left corner. Click **Tasklist**.
155+
2. On the **Tasks** page, change the **Filter options** to **All open**.
156+
3. Select the **Enter message** task from the list of tasks, and click **Assign to me**.
157+
4. Fill out the **E-Mail Content** field with the message you want to send.
203158

204159
![Tasklist](images/tasklist.png)
205160

161+
5. Select **Complete Task**. This will now show up under the **Filter option** that is **Completed**.
162+
206163
# Complete the service task
207164

208-
The second task of the process is the [service
209-
task](https://docs.camunda.io/docs/components/modeler/bpmn/service-tasks/)
210-
**Send Email**.
165+
The second task of the process is the [service task](https://docs.camunda.io/docs/components/modeler/bpmn/service-tasks/)
166+
**Send email**.
211167

212168
![Process](images/send-email.png)
213169

214-
To complete the service task, we need to implement the business logic. Therefore, we must create a [job
215-
worker](https://docs.camunda.io/docs/components/concepts/job-workers/) for
170+
To complete the service task, we need to implement the business logic. Therefore, we must create a [job worker](https://docs.camunda.io/docs/components/concepts/job-workers/) for
216171
the task type we defined in the diagram. The job worker will subscribe to all
217172
jobs with the same task type.
218173

219174
To define the task type, we select the service task in the diagram and use
220175
the properties panel to set the task type to `email`.
221176

222177
To implement the logic, we implement a job worker. Check out the
223-
programming language [specific folders](#repository-structure) to find the job
178+
[programming language folders](#repository-structure) to find the job
224179
worker implementations.
225180

226181
# Further references
227182

228-
Find more information in the [Camunda Platform 8 Documentation](https://docs.camunda.io), or join the [Camunda Platform 8
229-
Forum](https://forum.camunda.io) and [Camunda Platform 8
230-
Slack](https://camunda-cloud.slack.com) community.
231-
232-
## Developer setup
233-
234-
To run the getting started guide against a locally-hosted instance, follow the [Camunda 8 Platform Deployment Guide](https://docs.camunda.io/docs/self-managed/platform-deployment/overview/).
183+
Find more information in the [Camunda 8 documentation](https://docs.camunda.io), or join the [Camunda 8
184+
Forum](https://forum.camunda.io).

images/cluster.png

112 KB
Loading

images/configure-service-task.png

261 KB
Loading

images/send-email.png

-1.27 KB
Loading

images/tasklist.png

196 KB
Loading

images/user-task-form.png

280 KB
Loading

0 commit comments

Comments
 (0)