Visual Workflows
Build Complex Branching & Traversing Applications
Kartik Viswanadha, Sokolove Law
@logontokartik
Safe Harbor
Safe harbor statement under the Private Securities Litigation Reform Act of 1995:
This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties
materialize or if any of the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results
expressed or implied by the forward-looking statements we make. All statements other than statements of historical fact could be
deemed forward-looking, including any projections of product or service availability, subscriber growth, earnings, revenues, or other
financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any
statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services.
The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering new
functionality for our service, new products and services, our new business model, our past operating losses, possible fluctuations in our
operating results and rate of growth, interruptions or delays in our Web hosting, breach of our security measures, the outcome of any
litigation, risks associated with completed and any possible mergers and acquisitions, the immature market in which we operate, our
relatively limited operating history, our ability to expand, retain, and motivate our employees and manage our growth, new releases of our
service and successful customer deployment, our limited history reselling non-salesforce.com products, and utilization and selling to
larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. is
included in our annual report on Form 10-K for the most recent fiscal year and in our quarterly report on Form 10-Q for the most recent
fiscal quarter. These documents and others containing important disclosures are available on the SEC Filings section of the Investor
Information section of our Web site.
Any unreleased services or features referenced in this or other presentations, press releases or public statements are not currently
available and may not be delivered on time or at all. Customers who purchase our services should make the purchase decisions
based upon features that are currently available. Salesforce.com, inc. assumes no obligation and does not intend to update these
forward-looking statements.
Kartik Viswanadha
Group Leader Boston DUG
@logontokartik
Agenda
▪ Visual Workflows
• Real World Use Cases
• Visual Workflow Components
• Limitations

▪ Apex in Visual Workflows
• Why Apex?
• Implementing Interfaces to build Plugins
• Add Visualforce capabilities

▪ Demo (Quiz Builder App)
▪ Q&A
Visual Workflows
work·flow
/ˈwərkˌflō/
noun: workflow; plural noun: workflows

the sequence of industrial, administrative, or other processes through which a
piece of work passes from initiation to completion.
Visual Workflows
Real World Scenarios

▪ Surveys
• Survey tools to get the User Responses for series of questions and record them
• Build reports

▪ Call Scripting
• Scripting tools for Call Center agents to record responses.

▪ Wizards
• Point and Click Solutions

▪ Forms
• Dynamic Forms that process the data
Visual Workflows
Components

▪ Logic
• Decisions

Process
Logic

• Assignments

▪ Process
• Screens

Data

• Sub-flows
• Apex Plugins

▪ Data
• Salesforce Objects

Visual Workflows
Visual Workflows
Limitations & Design Considerations

▪ Salesforce Governor Limits
▪ Limitations on Cloud Flow Designer
▪ Design Considerations
Apex in Visual Workflows
Why Apex?

▪ Bridge the Gap
▪ Re-usability
▪ Eliminate Complexity

Apex
Plugin
Apex in Visual Workflows
Apex Plugins & Visualforce Support
Process.Plugin Interface

I
Process
.Plugin
Apex
Plugin

Apex
Plugin

▪ Custom <flow> tag
▪ Custom css classes

▪ describe()
▪ invoke()
Apex
Plugin

< /> { … }
Visualforce, HTML &
CSS
Quizly (Quiz Builder Application)

Use Case
Provide the user with a Quiz Builder Application
that is easy to configure to create multiple types
of quizzes and track the Quiz taker responses.
Quizly (Quiz Builder Application)
Visualforce Solution
▪ Build Multiple Complex Visualforce Pages
▪ Build Complex Apex Controllers to Support
▪ Time consuming sustaining process for changes
▪ Tedious collaborations between Analysts and
Programmers
Quizly (Quiz Builder Application)
Proposed Salesforce Solution Highlights
▪ Use Visual workflows for branching questions
▪ Build Complex logic using Apex Plugins
▪ DML via Visual workflows
▪ Embed in Visualforce pages & Force.com sites.
Quizly (Quiz Builder Application)
Object Model
▪ Quiz
▪ Question
▪ Answer
▪ Contact Response
▪ Summary
▪ Contact
Quizly (Quiz Builder Application)
Contact Lookup
▪ Existing Contact?
▪ Create new Contact
Quizly (Quiz Builder Application)
Visualforce Page Embedding
▪
▪
▪
▪

Custom tag <flow/>
Parameters
Custom CSS
Force.com Sites

<apex:page>
<flow/>
</apex:page>
Demo
Quizly

See it in action
http://quizmaster-developer-edition.na15.force.com/
Visual Workflows
Coming up

▪ Input Field Support
▪ Debugging
▪ Multi-column Forms
Resources
Visual Workflow Implementation Guide
▪

http://login.salesforce.com/help/doc/en/salesforce_vpm_implementation_guide.pdf

Visual Workflow Discussion Board
▪

http://boards.developerforce.com/t5/Visual-Workflow/bd-p/visual-workflow

Unmanaged Package for Quizly App
▪ http://bit.ly/17zTXqO

Github Link
▪ https://github.com/logontokartik/DF2013_Quizly
Kartik Viswanadha
Group Leader Boston
DUG
@logontokartik
We want to hear
from YOU!
Please take a moment to complete our
session survey
Surveys can be found in the “My Agenda”
portion of the Dreamforce app
Building Complex Traversing & Branching Apps Using Visual Workflows and Apex

Building Complex Traversing & Branching Apps Using Visual Workflows and Apex

  • 1.
    Visual Workflows Build ComplexBranching & Traversing Applications Kartik Viswanadha, Sokolove Law @logontokartik
  • 2.
    Safe Harbor Safe harborstatement under the Private Securities Litigation Reform Act of 1995: This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results expressed or implied by the forward-looking statements we make. All statements other than statements of historical fact could be deemed forward-looking, including any projections of product or service availability, subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services. The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering new functionality for our service, new products and services, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth, interruptions or delays in our Web hosting, breach of our security measures, the outcome of any litigation, risks associated with completed and any possible mergers and acquisitions, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our employees and manage our growth, new releases of our service and successful customer deployment, our limited history reselling non-salesforce.com products, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. is included in our annual report on Form 10-K for the most recent fiscal year and in our quarterly report on Form 10-Q for the most recent fiscal quarter. These documents and others containing important disclosures are available on the SEC Filings section of the Investor Information section of our Web site. Any unreleased services or features referenced in this or other presentations, press releases or public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are currently available. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements.
  • 3.
    Kartik Viswanadha Group LeaderBoston DUG @logontokartik
  • 4.
    Agenda ▪ Visual Workflows •Real World Use Cases • Visual Workflow Components • Limitations ▪ Apex in Visual Workflows • Why Apex? • Implementing Interfaces to build Plugins • Add Visualforce capabilities ▪ Demo (Quiz Builder App) ▪ Q&A
  • 5.
    Visual Workflows work·flow /ˈwərkˌflō/ noun: workflow; pluralnoun: workflows the sequence of industrial, administrative, or other processes through which a piece of work passes from initiation to completion.
  • 6.
    Visual Workflows Real WorldScenarios ▪ Surveys • Survey tools to get the User Responses for series of questions and record them • Build reports ▪ Call Scripting • Scripting tools for Call Center agents to record responses. ▪ Wizards • Point and Click Solutions ▪ Forms • Dynamic Forms that process the data
  • 7.
    Visual Workflows Components ▪ Logic •Decisions Process Logic • Assignments ▪ Process • Screens Data • Sub-flows • Apex Plugins ▪ Data • Salesforce Objects Visual Workflows
  • 8.
    Visual Workflows Limitations &Design Considerations ▪ Salesforce Governor Limits ▪ Limitations on Cloud Flow Designer ▪ Design Considerations
  • 9.
    Apex in VisualWorkflows Why Apex? ▪ Bridge the Gap ▪ Re-usability ▪ Eliminate Complexity Apex Plugin
  • 10.
    Apex in VisualWorkflows Apex Plugins & Visualforce Support Process.Plugin Interface I Process .Plugin Apex Plugin Apex Plugin ▪ Custom <flow> tag ▪ Custom css classes ▪ describe() ▪ invoke() Apex Plugin < /> { … } Visualforce, HTML & CSS
  • 11.
    Quizly (Quiz BuilderApplication) Use Case Provide the user with a Quiz Builder Application that is easy to configure to create multiple types of quizzes and track the Quiz taker responses.
  • 12.
    Quizly (Quiz BuilderApplication) Visualforce Solution ▪ Build Multiple Complex Visualforce Pages ▪ Build Complex Apex Controllers to Support ▪ Time consuming sustaining process for changes ▪ Tedious collaborations between Analysts and Programmers
  • 13.
    Quizly (Quiz BuilderApplication) Proposed Salesforce Solution Highlights ▪ Use Visual workflows for branching questions ▪ Build Complex logic using Apex Plugins ▪ DML via Visual workflows ▪ Embed in Visualforce pages & Force.com sites.
  • 14.
    Quizly (Quiz BuilderApplication) Object Model ▪ Quiz ▪ Question ▪ Answer ▪ Contact Response ▪ Summary ▪ Contact
  • 15.
    Quizly (Quiz BuilderApplication) Contact Lookup ▪ Existing Contact? ▪ Create new Contact
  • 16.
    Quizly (Quiz BuilderApplication) Visualforce Page Embedding ▪ ▪ ▪ ▪ Custom tag <flow/> Parameters Custom CSS Force.com Sites <apex:page> <flow/> </apex:page>
  • 17.
    Demo Quizly See it inaction http://quizmaster-developer-edition.na15.force.com/
  • 18.
    Visual Workflows Coming up ▪Input Field Support ▪ Debugging ▪ Multi-column Forms
  • 19.
    Resources Visual Workflow ImplementationGuide ▪ http://login.salesforce.com/help/doc/en/salesforce_vpm_implementation_guide.pdf Visual Workflow Discussion Board ▪ http://boards.developerforce.com/t5/Visual-Workflow/bd-p/visual-workflow Unmanaged Package for Quizly App ▪ http://bit.ly/17zTXqO Github Link ▪ https://github.com/logontokartik/DF2013_Quizly
  • 20.
    Kartik Viswanadha Group LeaderBoston DUG @logontokartik
  • 21.
    We want tohear from YOU! Please take a moment to complete our session survey Surveys can be found in the “My Agenda” portion of the Dreamforce app