Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years...

61
Stage-Based Workflows: Principles & Practices Mike Fitzmaurice Chief Technology Officer - skybow [email protected] @mikefitz

Transcript of Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years...

Page 1: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

Stage-Based Workflows:Principles & Practices

Mike FitzmauriceChief Technology Officer - skybow

[email protected]@mikefitz

Page 2: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

Who am I?

• Mike Fitzmaurice

[email protected] or @mikefitz

• 11 years at Microsoft, 10 years at Nintex, now CTO of skybow

• The original SharePoint evangelist

• 25 years experience with workflow, business productivity, citizen development

Page 3: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

Agenda

• This isn’t how to use any particular workflow tool

• This is how to think about workflow

• It should apply to most, if not all, tool options

• It’s based on repeated experiences and observations

Page 4: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This
Page 5: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

Sequential workflows get messy – quickly

Page 6: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

Example: Press Release

• Author

• Management

• Legal

• Publisher

Page 7: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

You may think it looks like this…

StartPublisher deploys to

public web siteEnd

End End

Manager approves

Yes

No

Lawyer Approves

Yes

No

Page 8: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

Or perhaps this…

Start

Publisher deploys to

public web siteEnd

End

Author Revises

Yes

No

ManagerApproves

Yes

No

Lawyer Approves

Yes

No

Page 9: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

We can make it messier…

• Professional editorial review

• Lawyer with question for management

Page 10: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

This will get ugly, unless we rethink it

Page 11: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

How About This Instead?

Author Manager Legal Publisher

Page 12: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

How About This Instead?

(re)Submit?

Author

End Manager

OK?

Manager

Author Legal

Choice

Legal

Author ManagerPublish

Publisher

End

Publish

Page 13: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

Stage Workflow

Page 14: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

Immediate Payoffs to State Workflows

• Designer determines what’s possible

• Participants determine what happens

• Every execution can take a different path – within reason

• Better reflects reality

Page 15: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This
Page 16: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

State Machine

Page 17: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

State Machine Concepts

States Events Transitions

Page 18: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

Push Button Light Switch

OnOff

Press Button

Complete Circuit

Press Button

Break Circuit

State

Transition

Event

Page 19: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

Keep in Mind:

• The machine stays in a given state by default

• An event must occur to change state

• The work takes place during the transitions

Page 20: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This
Page 21: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

Easy User Participation

Page 22: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

How easy is it to have the Lawyer review this?

Start

Publisher deploys to

public web siteEnd

End

Author Revises

Yes

No

ManagerApproves

Yes

No

Lawyer Approves

Yes

No

Page 23: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

How easy is it to have the Lawyer review this?

Choice

Legal

Author ManagerPublish

Page 24: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

How easy is it to have the Author review this?

(re)Submit?

Author

End Manager

Page 25: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

Payoffs to Participation

• Users teach you what they know

• Each story is a stage

• You assemble the stages together

• No one needs to learn how to read a BPMN diagram

Page 26: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This
Page 27: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

Easy to adjust

Page 28: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

(re)Submit?

Author

End Manager

OK?

Manager

Author Legal

Choice

Legal

Author PublisherManager

Publisher

End

Publish

Page 29: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

(re)Submit?

Author

End Manager

OK?

Manager

Author Legal

Choice

Legal

Author PublisherManager

Publisher

End

Publish(re)Submit?

Editor

Author ManagerEditor

Page 30: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

Payoffs to Updatability

• Major changes with minimal disruption

• Stages are relatively independent

• Transition logic is all that needs to change

Page 31: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This
Page 32: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

Easy to restore state

Page 33: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

(re)Submit?

Author

End Manager

OK?

Manager

Author Legal

Choice

Legal

Author PublisherManager

Publisher

End

Publish

Page 34: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

(re)Submit?

Author

End Manager

OK?

Manager

Author Legal

Choice

Legal

Author PublisherManager

Publisher

End

Publish

Page 35: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

(re)Submit?

Author

End Manager

OK?

Manager

Author Legal

Choice

Legal

Author PublisherManager

Publisher

End

Publish

Record Stage

Record Stage

Record Stage

Record Stage

Page 36: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

(re)Submit?

Author

End Manager

OK?

Manager

Author Legal

Choice

Legal

Author PublisherManager

Publisher

End

Publish

Record Stage

Record Stage

Record Stage

Record Stage

Last Known Stage

Legal

Author Publisher

Manager Legal

Page 37: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This
Page 38: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

The alternative is unpleasant

Page 39: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

Without using stages

• Ugly, hard-to-create, hard-to-read diagrams

• You have to think about every possible path in advance

• Users have no flexibility

Page 40: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

Without explicit software support for stages…

• A lot of looping

• A lot of If-Then-Else conditions

• Very confusing diagrams…

Page 41: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

Parallel

OK to exit?

Author?

Editor?

Manager?

Legal?

Publish?

… … … … …

Loop

Page 42: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This
Page 43: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

What shouldn’t be stage-based?

Page 44: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

Nothing.Everything can be stage-based.

Page 45: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

Author

Manager

Review

Manager

Legal

Review

Legal

Publisher

Review

Publisher

End

Publish

This is a sequential workflow using stages

Page 46: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This
Page 47: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

There’s still one thing missing…

Page 48: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

Multiple Events/Transitions per Stage

Page 49: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

Stage ≠ Role

Page 50: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

Stages

Author Revisions

Editorial Review

Management Review

Legal Review

Publishing

Ro

les

Author• Edit• Resubmit

• Recall • Recall • Recall

Editor • Reassign• Approve• Reject

• Recall • Recall

Manager • Cancel • Cancel• Approve• Reject• Cancel

• Cancel • Cancel

Lawyer• Approve• Reject• Pose Question

Publisher • Publish

1. Notify Previous Reviewers2. Set Stage to “Author Revisions”3. Assign task to Author

1. Set Stage to “Manager Review”2. Assign task to Manager

Page 51: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

Multi-Role/Multi-State Payoff

• Everyone can stay connected to the process

• Individual transition actions are short and simple

• Completely reflects reality

• (Weirdly) reduces the need for an elaborate workflow engine

Page 52: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

Ramifications

• UX plays a much bigger role

• UX must adapt to stage

• Individual short-lived transition steps

• There’s no concept of automatic “waiting”

• Audit trails become very important

• Anything is possible

Page 53: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This
Page 54: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This
Page 55: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This
Page 56: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This
Page 57: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This
Page 58: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This
Page 59: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This
Page 60: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

Call to Action

• Try to design using stages

• Consider tools and techniques that support stages

• Even sequential paths can be a set of stages

• Each with one event/transition

• Even if you can’t build with stages, model with them and communicate using them.

Page 61: Stage-Based Workflows: Principles & Practices · •The original SharePoint evangelist •25 years experience with workflow, business productivity, citizen development. Agenda •This

Thank you for attending!