oro workflows

14
Oro Workflows 1 Oro Workflows O O M C R R Yevhen Shyshkin [email protected]

Upload: yevhen-shyshkin

Post on 04-Jul-2015

267 views

Category:

Software


4 download

DESCRIPTION

Overview of Workflow functionality in OroPlatform and OroCRM. Demo bundle is accessible here: https://github.com/yshyshkin/DemoWorkflowBundle

TRANSCRIPT

Page 1: Oro Workflows

Oro Workflows 1

Oro Workflows

O O

MC

R

R

Yevhen Shyshkin

[email protected]

Page 2: Oro Workflows

Oro Workflows 2

Workflow - the sequence of industrial, administrative, or other processes through which a piece of work passes from initiation to completion.

Definition

Page 3: Oro Workflows

Oro Workflows 3

Joined webinar

Attended webinar

Start

Finished webinar

Join the Webinar

Watch Presentation

Finish Webinar

Leave Webinar

Ask question

Page 4: Oro Workflows

Oro Workflows 4

Responsibility

● define procedural step for an entity● transition between steps● change entity properties in transition

Page 5: Oro Workflows

Oro Workflows 5

Components

● Step — workflow state of an entity● Transition — move between steps● Attribute — field of an entity

Page 6: Oro Workflows

Oro Workflows 6

Components

Step A Step BTransition X

Attribute 1Attribute 2Attribute 3

Page 7: Oro Workflows

Oro Workflows 7

Components

● Condition — rule that allows transition● Action — additional operation to execute

during transition

Page 8: Oro Workflows

Oro Workflows 8

Components

Step A Step BTransition X

Check conditions

Set attributes

Executeactions

Attribute 1Attribute 2Attribute 3

Page 9: Oro Workflows

Oro Workflows 9

Configuration

● stored in YAML format in Resources/config/workflow.yml

● contains full defition of all workflow components

● loaded using CLI command oro:workflow:definitions:load

Page 10: Oro Workflows

Oro Workflows 10

Open

Demo example

ClosedIn

progress

Startprogress Close

Reopen

Page 11: Oro Workflows

Oro Workflows 11

Demo example

https://github.com/yshyshkin/DemoWorkflowBundle

cd <project_path>/srcmkdir Acmecd Acmegit clone [email protected]:yshyshkin/DemoWorkflowBundle.gitcd DemoWorkflowBundle

Page 12: Oro Workflows

Oro Workflows 12

Tips and Tricks

● actions and conditions can be created or overriden using DI tags

● ACL can be checked on transition level or using special condition

● transition may have custom form type and template

Page 13: Oro Workflows

Oro Workflows 13

Coming soon...

● UI improvement● action availability on a step level

Page 14: Oro Workflows

Oro Workflows 14

Questions & Answers