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
Bonita Open Solution 5.x Essentials
Bonita Open Solution 5.x Essentials

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
Profile Icon Rohit Bhat
Arrow right icon
Can$27.98 Can$39.99
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.8 (4 Ratings)
eBook Nov 2013 144 pages 1st Edition
eBook
Can$27.98 Can$39.99
Paperback
Can$49.99
Subscription
Free Trial
Arrow left icon
Profile Icon Rohit Bhat
Arrow right icon
Can$27.98 Can$39.99
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.8 (4 Ratings)
eBook Nov 2013 144 pages 1st Edition
eBook
Can$27.98 Can$39.99
Paperback
Can$49.99
Subscription
Free Trial
eBook
Can$27.98 Can$39.99
Paperback
Can$49.99
Subscription
Free Trial

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Bonita Open Solution 5.x Essentials

Chapter 2. Variable Types and Scope

There are many types of variables that can be used in Bonita Studio that are essential in creating processes. This chapter introduces all the variables available and also explores their scope.

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...

The text variable


The text variable is used to hold text of all kinds in Bonita. Note that this variable is of the type string of Java, found in java.lang.String. The Multiplicity option is used to select whether the variable is a single string variable or an array of strings. We can also state the default value that this variable will take. If left blank, the variable will be initialized to null, the way Java Strings are initialized. This variable is used to store any kind of text value in Bonita.

The variable List of Options... contains a list of text variables that can be used in drop-down boxes or radio buttons. When we select the List of Options... as the data type, a box appears where we define the list that we want to populate. Let's name this list Smartphones. Click on the Add... button, type in Apple, and click on OK. Similarly, add more options. such as Samsung, HTC, and Nokia. We can also rearrange the list options by clicking on the Up and Down tabs. After we have created the...

The Boolean variable


The Boolean variable holds Boolean values, that is, true or false, and is of the type Boolean of Java, found in the package java.lang.Boolean. Its multiplicity can be single or it can be an array of Boolean values. The default value of this variable, if left blank, is null.

The integer variable


Bonita Studio offers integer variables, but they are of the Java type Long (java.lang.Long). Be sure to initialize the integer value here, and if you want to use it for counting or keeping track of a sum of integer values, then give the default value as 0.

Tip

When using external connectors or Java code for evaluating the integer variable, beware that the type of the integer variable is not Integer but Long.

The float variable


In addition to the Integer variable, if we want to deal with decimal points and large numbers, Bonita offers the float variable, which is of the Java type Double (java.lang.Double). You can use the float variable for calculating money values, and so on.

The date variable


The date variable is used to store date values, for example, the date that the date-picker widget is in the Web application stores. It is of the Java type Date (java.util.Date). In addition, while defining the default value of this variable, we are given the option to choose it from a date picker that displays the date and time in a grid fashion.

Figure 2.2: The date variable wizard

Also, the default value can be set to Now, which takes the date and time at execution. This feature is useful in most scenarios when we want to display the default date and time as the time when the end user comes across this variable.

The attachment variable


The attachment variable is used to store any file attachment in Bonita. As the attachment is internally stored in the database as Binary Large Object (BLOB), this gives the flexibility to store any kind of file attachment, regardless of the extension.

The maximum size of the attachment can be 15 MB. The attachment variable is primarily used in the file widget while creating web forms. Whenever the user clicks on any file object from his system, it is uploaded into the Bonita database and stored as an attachment variable.XML Variable.

Another way we can represent data in Bonita Studio is to use an XML variable to store data in the XML format. Relevant data can be represented in a concise way using XML. For creating this variable in Bonita, simply select the data type as XML. Here, we have to choose the XML namespace and element for the data. We can also add a new schema by importing an XSD file.

The Java variable


This variable is the most useful custom variable that Bonita provides. We have the ability to create Java classes and export them into a jar file from any IDE or Java command line. This jar file can be added to the classpath of Bonita. Thereafter, we can create a new Java object of the type of the class that we have created. Let us see how to do this:

  1. Open up an IDE, such as IntelliJIdea or Eclipse. Create a new Java project and a package inside src. Here, we will name it com.rohitbhat.examplepackage. Inside this package, create a new class named TestClass. Enter the following code in it:

    public class TestClass {
      private String testString;
      private int testInt;
    
      public TestClass() {
        this.testString = "";
        this.testInt = 0;
      }
    
      public String getTestString() {
        return testString;
      }
    
      public void setTestString(String testString) {
        this.testString = testString;
      }
    
      public int getTestInt() {
        return testInt;
      }
    
      public void setTestInt(int testInt...

Summary


We have looked through the various types of variables that are available for use in Bonita Studio. We now also know how to initialize these different kinds of variables, and also which variable to use in a particular context. Any kind of information that has to be saved in the workflow can be saved in different kinds of variables. In the next chapter, we will use these variables to create web forms.

Left arrow icon Right arrow icon

Key benefits

  • Design exhaustive workflows with ease using the Bonita Studio
  • Learn how to create customizable and intuitive web forms with a drag-and-drop interface
  • A plethora of diagrams, illustrations, tips, and hands-on examples to augment your learning

Description

Creating delightful web-based applications backed by complex business logic and intricate workflows is just one of the many things you can easily achieve by leveraging Bonita Open Solution. It is a highly customizable and efficient tool for business process modeling. Bonita Open Solution is a one-stop solution for developing scalable applications with a nifty user management system and easy deployment. This pragmatic, hands-on guide to developing complex applications is packed with succinct tips and demonstrations of the various aspects of Bonita Open Solution. This book will show you how to make the best use of the Bonita BPM tool, leverage its powerful backend engine, and design business application workflows with ease. By the end of this book, you will be able to develop a complete business process application. Right from designing web forms to integrating business logic to finally deploying the application on a server, this book takes you through the entire development cycle of an application created using Bonita Open Solution. You will learn about modeling business processes in Bonita, creating customizable web forms, and using connectors, contingencies, and transitions to move forward in the workflow. It also highlights the various page flows available, as well as the ease of use of the drag-and-drop, widget-based modular design of Bonita Studio. After developing the application, you will also learn about the various options for deployment, and the different environments on which it can be deployed.

Who is this book for?

If you are a business application developer looking forward to model business processes intuitively in a workflow, with various conditions and transitions then this book is for you. Basic knowledge of Java or Groovy is necessary to help you develop these applications. Knowledge of HTML and JavaScript/JQuery will be helpful but not mandatory.

What you will learn

  • Set up Bonita and explore the various user management options
  • Create and customize web forms with different widgets using a drop-and-drop interface
  • Explore different conditions, contingencies, and transitions of the workflow developed in Bonita Studio
  • Configure different kinds of connectors in Bonita for exporting and importing data
  • Deploy the application on a Linux or Windows-based server, with connections to external databases
  • Set up the page flow for the web forms, explore the User Experience, and learn about different options available for customization

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Nov 15, 2013
Length: 144 pages
Edition : 1st
Language : English
ISBN-13 : 9781782167099
Category :
Languages :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Nov 15, 2013
Length: 144 pages
Edition : 1st
Language : English
ISBN-13 : 9781782167099
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just Can$6 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just Can$6 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total Can$ 111.98
Bonita Open Solution 5.x Essentials
Can$49.99
Talend Open Studio Cookbook
Can$61.99
Total Can$ 111.98 Stars icon

Table of Contents

7 Chapters
Installing and Getting Started with Bonita Chevron down icon Chevron up icon
Variable Types and Scope Chevron down icon Chevron up icon
Creating and Customizing Web Forms Chevron down icon Chevron up icon
Conditions, Contingencies, and Transitions Chevron down icon Chevron up icon
Adding Connectors Chevron down icon Chevron up icon
Configuring the Page Flow Chevron down icon Chevron up icon
Customizing Look and Feel Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.8
(4 Ratings)
5 star 25%
4 star 50%
3 star 0%
2 star 25%
1 star 0%
FarnboroughDad Feb 10, 2014
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Bonitasoft make a decent product, and a lot can be picked up by just installing the package and trying stuff out. However there were gaps in my knowledge, and I needed help. I managed to read most of the book in one sitting, and whilst it didn't have every answer I was looking for, the knowledge gained was enough to make it worth the price.If you are starting out with Bonitasoft this is more at the 'for Dummies' end of knowledge transfer than the 'Bible' type books - enough to get you heading in the right direct.
Amazon Verified review Amazon
W Boudville Jan 31, 2014
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Bonita means 'pretty' in Spanish and the back cover of this book refers to 'creating delightful [sic] web-based applications'. Well, ahem, I am not sure about whether the package can make pretty or delightful solutions but maybe you might differ. It sits within the overall context of Business Intelligence. The problem and promise of the latter phrase is that it is so open ended. It can mean infinitely complex and dare we say wise applications?But be clear on this. Bonita really is about laying out a workflow logic, as opposed to being a deep level of Business Intelligence. Bonita does indeed have a nice user friendly GUI that as much as possible lets you easily lay out that workflow. In an intuitive manner. But there is no Business Intelligence or Artificial Intelligence involved. While you do not have to see the source code behind Bonita, it is not in those realms. The truly hard stuff is in your head. The logic of the workflow that you are instantiating in a visual manner via the steps in this book.You probably and should already know the basics of Boolean logic. Bonita has easy ways for you to define logic gates - XOR and AND. So you can compound steps into far more intricate logic structures. And do this in a visual layout that lets you and perhaps more importantly, others, see the flow of the tasks. So that the dependencies are made visually explicit.
Amazon Verified review Amazon
viniciusbenone Jan 02, 2015
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Quero destacar esta publicação sobre um BPMS baseado em software livre, que é uma coisa rara ver tal tipo de livro. Devido esta carência no mercado para a aquisição deste tipo de livro sobre o Bonitasoft, sempre esperamos algo mais, eles podiam dar mais ênfase em recursos básicos do software, assim como na automatização de processos.Espero novas publicações sobre o Bonitasoft.Um abraço,Vinicius Benone
Amazon Verified review Amazon
W. Wood Aug 04, 2015
Full star icon Full star icon Empty star icon Empty star icon Empty star icon 2
Not really what I was expecting. There's some good examples but since there isn't much out there on Bonita BPM yet, you'll have to leverage their online resources if you want to get deep with it.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.