Workflow systems

  • Published on
    26-Dec-2014

  • View
    5.678

  • Download
    1

Embed Size (px)

DESCRIPTION

devLink 2010 presentation on Workflow and Workflow Systems, using Ruby, MassTransit and WF 4.0 as examples.

Transcript

<ul><li> 1. Myths, Truths and Wishful Thinking<br />Workflow Systems<br />Brandon Satrom<br />devLink2010<br />http://speakerrate.com/talks/4108<br /></li> <li> 2. About Me<br />Technology Evangelist @ Microsoft<br />Software and Enterprise Architect<br />Based in Austin, TX<br />Husband and Father<br /></li> <li> 3. Why are you here?<br />What is "workflow"?<br />What makes a Workflow System different?<br />What kind of problem is workflow designed to solve?<br />Can workflow problems only be solved by tools?<br />Are workflows always visual?<br />How do I design a workflow system?<br /></li> <li> 4. You Want The Truth?<br /></li> <li> 5. What comes to mind when you hear workflow?<br />Word Association<br /></li> <li> 6. Visual<br /></li> <li> 7. Tools<br /></li> <li> 8. Process Automation<br /></li> <li> 9. Modifiable<br /></li> <li> 10. Can be maintained by someone other than the original developer<br /></li> <li> 11. Six-Figure Cost<br /></li> <li> 12. Others?<br /></li> <li> 13. Heres the truth<br /></li> <li> 14. Our perception of workflow is wrong<br /></li> <li> 15. Maybe Workflow can be simple<br /></li> <li> 16. State Machine Demo<br /></li> <li> 17. A workflow is a depiction of a sequence of operations, declared as work of a person, a group of persons, an organization of staff, or one or more simple or complex mechanisms. Workflow may be seen as any abstraction of real work, segregated in workshare, work split or other types of ordering. For control purposes, workflow may be a view on real work under a chosen aspect, thus serving as a virtual representation of actual work. The flow being described often refers to a document that is being transferred from one step to another. <br /> from http://en.wikipedia.org/wiki/Workflow<br />Workflow: The Cure for Insomnia Definition<br /></li> <li> 18. Workflow: simplistic definitions<br />abstraction of real work<br />coordination of work in a system<br /></li> <li> 19. Isnt that CODE?<br /></li> <li> 20. The Difference is<br /></li> <li> 21. HUMANS are the process<br /></li> <li> 22. TIME Passes...<br /></li> <li> 23. And The only constant is CHANGE.<br /></li> <li> 24. Qualities of Workflow systems<br /></li> <li> 25. Declarative<br /></li> <li> 26. External Stimulus<br />Persistence Store<br />Persistent<br /></li> <li> 27. Dynamic<br />Business Change<br />Activity F<br />Divert to new activity<br /></li> <li> 28. Activity D<br />Activity E<br />Rules Store<br />Configurable<br /></li> <li> 29. Centrally Defined<br /></li> <li> 30. static SessionSaga()<br />{<br /> Define(() =&gt;<br /> {<br /> Initially(<br /> When(NewSession)<br /> .Then((saga, message) =&gt; saga.NewSessionStarted(message))<br /> .TransitionTo(SessionActive)<br /> );<br /> During(SessionActive,<br /> When(FeedbackCheckRequested)<br /> .Then((saga, message) =&gt; saga.CheckForFeedback(message))<br /> When(new Timer() <br /> .StartOn(session.Start)<br /> .RunAtInterval(session.CheckInterval)<br /> .Until(session.End))<br /> .Then((saga, message) =&gt; saga.CheckForFeedback(message))<br /> When(SessionComplete)<br /> .Then((saga, message) =&gt; saga.SessionEnded(message))<br /> .Complete()<br /> );<br /> });}<br /> though not necessarily visual.<br /></li> <li> 31. Not just for workflow<br />State machine<br />Saga<br />Service Buses<br />Workflow<br /></li> <li> 32. Saga Demo (MassTransit)<br /></li> <li> 33. Visual?<br /></li> <li> 34. The dangers of seeing too much<br /></li> <li> 35. Workflow Demo (WF 4.0)<br /></li> <li> 36. When Adopting Workflow, Consider<br />Complexity of the problem<br />Skill level of development staff<br />Who keeps it running?<br />Value of a visual representation<br /></li> <li> 37. Any GOOD system will encourage good design<br />Declaratively define the FLOW<br />Define discrete, separate ACTIVITIES<br />Keep the RULES out of code<br /></li> <li> 38. What is "workflow"?<br />What makes a Workflow System different?<br />What kind of problem is workflow designed to solve?<br />Can workflow problems only be solved by tools?<br />Are workflows always visual?<br />How do I design a workflow system?<br />Did We Answer These?<br /></li> <li> 39. Ruby Statemachine :: http://bit.ly/rstatemachine<br />MassTransit:: http://masstransit-project.com/<br />WF4 :: http://bit.ly/wf4-msdn <br />WebMatrix :: http://bit.ly/devlink-wm<br />Demo Source :: http://github.com/bsatrom/WorkflowSystems2010<br />Resources<br /></li> <li> 40. Questions?<br /> Email: brsatrom@microsoft.com<br /> Twitter: @TheSatch<br /> Blog: www.userinexperience.com<br /> Rate this talk: http://speakerrate.com/talks/4108<br /></li> </ul>