Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Bonita Open Solution 5.x Essentials

You're reading from  Bonita Open Solution 5.x Essentials

Product type Book
Published in Nov 2013
Publisher Packt
ISBN-13 9781782167082
Pages 144 pages
Edition 1st Edition
Languages
Author (1):
Rohit Bhat Rohit Bhat
Profile icon Rohit Bhat

Table of Contents (15) Chapters

Pool variables versus step variables


Bonita gives us the options to create two kinds of variables with regard to scope: pool variables and step variables. Pool variables are akin to global variables in any programming language and step variables correspond to the local variables of a function.

The type of variables, integers or text, are the same for both pool and step variables. Only their scope differs. For example, there might be an integer variable such as an ID number that might be required in all the steps of the workflow. We would have to make this a pool variable so that it can be accessed by all steps. On the other hand, one of the steps might have a field, called name, which might be required only at that step. Hence, it makes sense to make name a step variable that is accessible only by that step.

To define a pool variable, select the pool and click on the Data tab in the details panel. We can add the variables by clicking on the Add... button. Similarly, to define a step variable...

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 $15.99/month. Cancel anytime}