Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Bonita Open Solution 5.x Essentials

You're reading from   Bonita Open Solution 5.x Essentials Developing applications using Bonita Open Solution means you can model business processes in a workflow, and this book teaches you all the fundamentals by taking you through the entire development cycle.

Arrow left icon
Product type Paperback
Published in Nov 2013
Publisher Packt
ISBN-13 9781782167082
Length 144 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Rohit Bhat Rohit Bhat
Author Profile Icon Rohit Bhat
Rohit Bhat
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Bonita Open Solution 5.x Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Installing and Getting Started with Bonita 2. Variable Types and Scope FREE CHAPTER 3. Creating and Customizing Web Forms 4. Conditions, Contingencies, and Transitions 5. Adding Connectors 6. Configuring the Page Flow 7. Customizing Look and Feel Deploying Bonita on a Server Index

The Previous and Next buttons


We have a Next and a Previous buttons on each form, but we have yet to configure these buttons. The way we can achieve Next and Previous button behavior in the workflow is to have a pool variable called nextStep and every time the Next or Previous button is clicked, we can set the nextStep variable to the name of the step, and in the transitions from one step to another we can check for the value of nextStep.

  1. In the form, first make a backward transition from all the steps that are the endpoints of the forward transition. The final pool should look like this :

    Figure 3.11: Workflow after adding backward transitions

  2. Now, open the first form of the workflow, Welcome, and click on the BookTickets button.

  3. In the Actions tab, add an action that sets the next step to the variable nextStep. The way to do this is by inputting BookTickets in the Groovy script in the expressions field and saving it to the variable nextStep.

  4. Similarly, in the SubmitReport button, type SubmitReport...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime