Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
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.

eBook
$15.99 $22.99
Paperback
$38.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
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

Shipping Address

Billing Address

Shipping Methods
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
Estimated delivery fee Deliver to Taiwan

Standard delivery 10 - 13 business days

$12.95

Premium delivery 5 - 8 business days

$45.95
(Includes tracking information)

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 : 9781782167082
Category :
Languages :
Tools :

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
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

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to Taiwan

Standard delivery 10 - 13 business days

$12.95

Premium delivery 5 - 8 business days

$45.95
(Includes tracking information)

Product Details

Publication date : Nov 15, 2013
Length: 144 pages
Edition : 1st
Language : English
ISBN-13 : 9781782167082
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 $5 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 $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 87.98
Bonita Open Solution 5.x Essentials
$38.99
Talend Open Studio Cookbook
$48.99
Total $ 87.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

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela