+ All Categories
Home > Documents > Dirk Fahland - TU/edfahland/courses/2io71/docs/2io71... ·  · 2013-05-03Tutorial...

Dirk Fahland - TU/edfahland/courses/2io71/docs/2io71... ·  · 2013-05-03Tutorial...

Date post: 18-Apr-2018
Category:
Upload: truongdan
View: 219 times
Download: 5 times
Share this document with a friend
19
Tutorial Activiti/Activiti Designer Basics Dirk Fahland 2IO71 DBL Information Systems
Transcript
Page 1: Dirk Fahland - TU/edfahland/courses/2io71/docs/2io71... ·  · 2013-05-03Tutorial Activiti/Activiti Designer Basics Dirk Fahland ... a management view ... (case sensitive!), ...

Tutorial Activiti/Activiti Designer

Basics

Dirk Fahland

2IO71 DBL Information Systems

Page 2: Dirk Fahland - TU/edfahland/courses/2io71/docs/2io71... ·  · 2013-05-03Tutorial Activiti/Activiti Designer Basics Dirk Fahland ... a management view ... (case sensitive!), ...

1. Loading Activiti Designer

2. Creating New Projects

3. Creating/Editing Process Models

4. Show the Properties View

5. Create a Deployable Process

6. Log Into Activiti

7. Deploy a Process in Activiti

8. Run a Process

9. Further Reading

PAGE 1

Overview

Page 3: Dirk Fahland - TU/edfahland/courses/2io71/docs/2io71... ·  · 2013-05-03Tutorial Activiti/Activiti Designer Basics Dirk Fahland ... a management view ... (case sensitive!), ...

Start the Virtual Machine and load Eclipse

PAGE 2

Loading Activiti Designer

Page 4: Dirk Fahland - TU/edfahland/courses/2io71/docs/2io71... ·  · 2013-05-03Tutorial Activiti/Activiti Designer Basics Dirk Fahland ... a management view ... (case sensitive!), ...

File > New > Other… > Activiti > Activiti Project

PAGE 3

Creating New Projects

Page 5: Dirk Fahland - TU/edfahland/courses/2io71/docs/2io71... ·  · 2013-05-03Tutorial Activiti/Activiti Designer Basics Dirk Fahland ... a management view ... (case sensitive!), ...

open <project>/src/main/resources/diagrams

right click > New > Other… > Activiti > Activiti Diagram

PAGE 4

Creating Editing Process Models (1)

Page 6: Dirk Fahland - TU/edfahland/courses/2io71/docs/2io71... ·  · 2013-05-03Tutorial Activiti/Activiti Designer Basics Dirk Fahland ... a management view ... (case sensitive!), ...

PAGE 5

Creating Editing Process Models (2)

drag shapes from the

palette onto the canvas

use the context menu to

extend the process with

new nodes and edges

Page 7: Dirk Fahland - TU/edfahland/courses/2io71/docs/2io71... ·  · 2013-05-03Tutorial Activiti/Activiti Designer Basics Dirk Fahland ... a management view ... (case sensitive!), ...

Window > Show View > Other…

PAGE 6

Show the Properties View (1)

Page 8: Dirk Fahland - TU/edfahland/courses/2io71/docs/2io71... ·  · 2013-05-03Tutorial Activiti/Activiti Designer Basics Dirk Fahland ... a management view ... (case sensitive!), ...

select:

General > Properties

PAGE 7

Show the Properties View (2)

Page 9: Dirk Fahland - TU/edfahland/courses/2io71/docs/2io71... ·  · 2013-05-03Tutorial Activiti/Activiti Designer Basics Dirk Fahland ... a management view ... (case sensitive!), ...

Select tasks and explore their properties

PAGE 8

Show the Properties View (3)

Page 10: Dirk Fahland - TU/edfahland/courses/2io71/docs/2io71... ·  · 2013-05-03Tutorial Activiti/Activiti Designer Basics Dirk Fahland ... a management view ... (case sensitive!), ...

right click on the project > Create deployment artifacts

PAGE 9

Create a Deployable Process

make sure you are in the

Java view

generates a .bar file in

<project>/deployment

Page 11: Dirk Fahland - TU/edfahland/courses/2io71/docs/2io71... ·  · 2013-05-03Tutorial Activiti/Activiti Designer Basics Dirk Fahland ... a management view ... (case sensitive!), ...

open Firefox, go to: localhost:8080/activiti-explorer/

log in as

user: kermit

pass: kermit

PAGE 10

Log Into Activiti (1)

Page 12: Dirk Fahland - TU/edfahland/courses/2io71/docs/2io71... ·  · 2013-05-03Tutorial Activiti/Activiti Designer Basics Dirk Fahland ... a management view ... (case sensitive!), ...

Activiti shows

PAGE 11

Log Into Activiti (2)

tasks of processes that

are currently executed

processes that are

available to be started

a management view

Page 13: Dirk Fahland - TU/edfahland/courses/2io71/docs/2io71... ·  · 2013-05-03Tutorial Activiti/Activiti Designer Basics Dirk Fahland ... a management view ... (case sensitive!), ...

Manage > Deployments > Upload new

PAGE 12

Deploy a Process in Activiti (1)

Page 14: Dirk Fahland - TU/edfahland/courses/2io71/docs/2io71... ·  · 2013-05-03Tutorial Activiti/Activiti Designer Basics Dirk Fahland ... a management view ... (case sensitive!), ...

choose a file > navigate to:

bpmndata/workspace/<project>/deployment

select the

.bar file

open

possible bug:

the “File Upload”

dialog may be

shown a second

time, press cancel

PAGE 13

Deploy a Process in Activiti (2)

Page 15: Dirk Fahland - TU/edfahland/courses/2io71/docs/2io71... ·  · 2013-05-03Tutorial Activiti/Activiti Designer Basics Dirk Fahland ... a management view ... (case sensitive!), ...

if the process model has no errors,

then the new process is listed under deployments

PAGE 14

Deploy a Process in Activiti (3)

Page 16: Dirk Fahland - TU/edfahland/courses/2io71/docs/2io71... ·  · 2013-05-03Tutorial Activiti/Activiti Designer Basics Dirk Fahland ... a management view ... (case sensitive!), ...

go to Processes > Deployed process definitions

select the process of interest

click “Start Process”

PAGE 15

Run a Process

Page 17: Dirk Fahland - TU/edfahland/courses/2io71/docs/2io71... ·  · 2013-05-03Tutorial Activiti/Activiti Designer Basics Dirk Fahland ... a management view ... (case sensitive!), ...

watch https://www.youtube.com/watch?v=ixF30ozsis4 to

see all features of the Activiti UI and how to run processes

visit https://www.google.nl/search?q=activiti+tutorial,

https://www.google.nl/search?q=activiti+designer+tutorial to

see more examples of modeling, deploying, and running

processes

PAGE 16

Further Reading (1)

Page 18: Dirk Fahland - TU/edfahland/courses/2io71/docs/2io71... ·  · 2013-05-03Tutorial Activiti/Activiti Designer Basics Dirk Fahland ... a management view ... (case sensitive!), ...

Check the example processes that are already deployed in

Activiti in the VM

Important: process execution requires that a task is

assigned to a role or a user

• if the process model specifies for task no role, or a role that is not

defined, then the task will not be shown in Activiti, e.g.

• example:

− the process “Review Sales Lead” that is deployed in Activiti in the

VM has a task “Review Customer Rating” that requires a user with

role “accountancy”

− Activiti does not define a user group called “accountancy”

− to execute the process, go to Manage > Groups, create a group

“accountancy” (case sensitive!), and add a user to this group

PAGE 17

Further Reading (2)

Page 19: Dirk Fahland - TU/edfahland/courses/2io71/docs/2io71... ·  · 2013-05-03Tutorial Activiti/Activiti Designer Basics Dirk Fahland ... a management view ... (case sensitive!), ...

Good Luck and Enjoy!

Dirk Fahland

2IO71 DBL Information Systems


Recommended