Bonita Open Solution 5.x Essentials - Rohit Bhat - E-Book

Bonita Open Solution 5.x Essentials E-Book

Rohit Bhat

0,0
27,59 €

-100%
Sammeln Sie Punkte in unserem Gutscheinprogramm und kaufen Sie E-Books und Hörbücher mit bis zu 100% Rabatt.

Mehr erfahren.
Beschreibung

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.

Das E-Book können Sie in Legimi-Apps oder einer beliebigen App lesen, die das folgende Format unterstützen:

EPUB
MOBI

Seitenzahl: 162

Veröffentlichungsjahr: 2013

Bewertungen
0,0
0
0
0
0
0
Mehr Informationen
Mehr Informationen
Legimi prüft nicht, ob Rezensionen von Nutzern stammen, die den betreffenden Titel tatsächlich gekauft oder gelesen/gehört haben. Wir entfernen aber gefälschte Rezensionen.



Table of Contents

Bonita Open Solution 5.x Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Errata
Piracy
Questions
1. Installing and Getting Started with Bonita
Downloading, installing, and launching Bonita Open Solution
Creating a process
Creating a human task
The text variable
Running a process
The user inbox
The process history
Labels
Dashboard
The admin view
Summary
2. Variable Types and Scope
Pool variables versus step variables
The text variable
The Boolean variable
The integer variable
The float variable
The date variable
The attachment variable
The Java variable
Summary
3. Creating and Customizing Web Forms
Input and output widgets in Bonita
Buttons
The Select widget
The Radio widget
The date-picker widget
Variables required for the widget elements
The Image widget
The Message widget
The Previous and Next buttons
Summary
4. Conditions, Contingencies, and Transitions
Conditional appearance of fields
Contingency
The JavaScript alternative to the contingency feature
Defining conditions on transitions
Gates
Passing the message
The call activity
Multiinstantiation
Summary
5. Adding Connectors
Types of connectors in Bonita
Bonita connectors
The e-mail connector
The Drools connector
Database connectors
Groovy scripting
Other connectors
Finalizing the web form data
Summary
6. Configuring the Page Flow
The inbox view
Entry, view, and overview page flow
User XP options in Studio
Process status in User XP
Externalizing forms
Summary
7. Customizing Look and Feel
Customizing web forms
Changing Look'n'feel
Adding Resources to the workflow
Application Look'n'feel
User Experience Look'n'feel
Summary
A. Deploying Bonita on a Server
Downloading the Tomcat bundle
Exploring the Tomcat bundle
Starting and shutting Tomcat
Customizing database connections
Logfiles
Changing the configuration files
Bonita login page
Bonita API and adding users into the database
Summary
Index

Bonita Open Solution 5.x Essentials

Bonita Open Solution 5.x Essentials

Copyright © 2013 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

First published: November 2013

Production Reference: 1081113

Published by Packt Publishing Ltd.

Livery Place

35 Livery Street

Birmingham B3 2PB, UK.

ISBN 978-1-78216-708-2

www.packtpub.com

Cover Image by Suresh Mogre (<[email protected]>)

Credits

Author

Rohit Bhat

Reviewers

Giacomo Aceto

Roger Carhuatocto

Sebastien Prunier

Acquisition Editor

Vinay Argekar

Commissioning Editor

Amit Ghodake

Technical Editor

Iram Malik

Project Coordinator

Joel Goveya

Proofreader

Lawrence A. Herman

Indexer

Mariammal Chettiyar

Production Coordinator

Manu Joseph

Cover Work

Manu Joseph

About the Author

Rohit Bhat is a Computer Science graduate from BITS Pilani, India and is currently working as a Software Specialist in Opera Solutions. He has done projects in a variety of fields of technology encompassing Data Mining, Android Apps, Open CV, Swarm Intelligence, Workflow Automation, and Video Conferencing. He has been extensively using Bonita Open Solution for Workflow Automation and Business Process Modeling for a number of clients for his company.

You might find him surfing the Internet for any kind of knowledge and news, or plonked on his bed with a book in his hands. He loves to keep himself abreast of the latest technology and is a gadget freak. He is always ready for a discussion about any topic under the sun. He has a myriad interest in business, startups, entrepreneurship, finance, and current affairs. However, he is always excited to go on trips and tours, especially nature trails and trekking, with a camera around his neck.

Apart from reading, he likes to pen his thoughts and is a freelance blogger, too. He can play the keyboard but wishes he had more time to learn a new instrument. He loves to listen to psychedelic, slow, and alternative rock. You can say "Hi" to him at <[email protected]>.

This is his first book as an author. He is, however, a reviewer of Packt's Android Application Programming with OpenCV, published a couple of months ago.

I'm deeply indebted to my mom, dad, and brother for being my constant motivators, and pillars of strength, and for providing encouragement throughout my life. I know they are even more excited about this book than I am, which says a lot about their enthusiasm! I'm extremely grateful to my friends for brainstorming with me on some ideas and my colleagues for helping me with the content of this book.

I deeply thank Packt Publishing for providing me an opportunity to write this book. A huge thank you to the entire editorial team for their patience and invaluable help. I'm grateful to my reviewers for their honest feedback and suggestions.

About the Reviewers

Giacomo Aceto, born in 1983, studied Software Engineering at the University of Bologna in Italy. He completed his master thesis at the Uppsala University in Sweden (Informatics and Media Dept) and he worked on the finalization of a couple of publications. His main topic was AI: development of a Meta-interpreter for Defeasible Logic.

In his carrier, he dealt with European Research Projects, developing software and managing the software implementation process. In this domain, he has implemented Code Generators, Semantic Libraries, and interfaces among different kind of BPM engines and he has collaborated on the definition of an integration between BPM and IEM specifications. He published scientific papers at the following conference: ICAIL, RuleML, and I-ESA.

He is now working as an IT Project Manager in a company dealing with Facility Management and he keeps on working as a Quality Assurance Engineer (Test Process and Test Automation). Recently he has worked on the implementation of a Portfolio Project Management tool (CA Clarity) and he gained strong experience in terms of program and portfolio management.

Roger Carhuatocto has over 12 years of experience as an IT Consultant and Architect. He blends his experience in Computer Security with his passion for Open Source.

He has served in companies, such as Safelayer, Hewlett-Packard (Spain), and Thales Group (Spain), and has provided consulting services to PDVSA (Venezuela), Saraiva (Brasil), United Nations Office (Geneva), and so on. He has been involved in big projects related to e-ID Card, Identity Management, and big Business Applications based on Liferay Portal, Alfresco ECM, Bonita BPM, WSO2 ESB, and WSO2 Identity Server in Spain and Latam. Now he is a part of his own business initiative called Chakray Consulting, which offers high-level consulting services to build mission critical systems using Open Source.

www.PacktPub.com

Support files, eBooks, discount offers and more

You might want to visit www.PacktPub.com for support files and downloads related to your book.

Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at <[email protected]> for more details.

At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.

http://PacktLib.PacktPub.com

Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read and search across Packt's entire library of books.

Why Subscribe?

Fully searchable across every book published by PacktCopy and paste, print and bookmark contentOn demand and accessible via web browser

Free Access for Packt account holders

If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access.

Preface

This book is a hands-on introduction to Bonita Open Solution, a tool that makes creating workflow applications and modeling business processes a piece of cake. It is a practical guide, replete with examples, showcasing the ease-of-use of creating processes in Bonita Studio, and executing a workflow application using the powerful Bonita Execution Engine. We create a fully functional, practical workflow application that serves as an example of the potential of the tool. This book also introduces advanced functionality, leveraging Java, Groovy, and database concepts. It has a step-by-step approach, making it easy for you to learn by actually modeling a realistic process and creating an application. You will appreciate how Bonita Open Solution is a nifty tool for executing complex business processes and intricate workflows. It is a one stop solution for developing scalable applications with a great user management and easy deployment. This book has succinct tips and demonstrations that guide you as you follow along. By the end of this book, you will learn how to create workflow applications with ease by using the Bonita Open Solution.

What this book covers

Chapter 1, Installing and Getting Started with Bonita, starts off with installing the tool, Bonita Open Solution, and getting to know the various components of designing a workflow. It also shows an example of a simple process creation and getting it running. It finishes off by discussing the Bonita User Experience and administrative view options.

Chapter 2, Variable Types and Scopes, introduces the different variables that can be used in Bonita and discusses their scope. Instantiation and how different widgets use variables is also explored.

Chapter 3, Creating and Customizing Web Forms, explains the steps for creating a web form inside Bonita Studio by using the built-in widgets such as buttons, input boxes, messages, and many more. How the action buttons work is also explored in this chapter. In addition, conditional transitions from one step to the other have been introduced. By using all these elements, an example workflow application is initiated in this chapter.

Chapter 4, Conditions, Contingencies, and Transitions, covers the relation between different steps in the workflow. Message passing, call activity, and multi instantiation of a step are also discussed here. We show the JavaScript alternative to contingencies, too.

Chapter 5, Adding Connectors, looks at the various connector integration options available in Bonita Studio. We show how connectors can be used to fetch data into the workflow and how to export data, too. We have a close look at the Bonita inbuilt connectors, e-mail connectors, and database connectors, and also use them for the example application that we build. We get our example application almost functionally ready.

Chapter 6, Configuring the Page Flow, discusses the various options available for entry, view, and overview page flow. We discuss the various clickable features in the User XP and also have a look at the comments, attachments, and other sections that constitute the User XP. We also discuss the way to externalize web forms instead of creating them inside Bonita.

Chapter 7, Customizing Look and Feel, shows the various customization options in terms of the look and feel of the User XP and the web forms. We discuss the ways to edit and create a customized User XP and change the look of form elements.

Appendix, Deploying Bonita on a Server, details the steps that have to be followed to deploy BOS on a Tomcat server, changing the database connectors, and other configurations. It also explores the various Bonita APIs that are available and also has an example of a process using just APIs.

What you need for this book

The main software required to follow along with this book is Bonita Open Solution 5.10. There is a free version called the Community Edition and most features covered in this book can be used in the Community Edition. However, a few extra features that are available in the Subscription Pack (paid version) are also covered and workarounds have been suggested for the Community Edition. Bonita Open Solution has an inbuilt Groovy editor, due to which a separate IDE isn't required.

Who this book is for

If you're a software developer trying to create a workflow application or an analyst trying to model a business process, this book is the perfect companion to learn about Bonita Open Solution, an ideal tool for both purposes. You can use this tool to automate a lot of activities that had to be earlier done by mail or manually. With a rich web interface and excellent reporting features, the tool can be used for solving a plethora of problems, ranging from simple workflows to complex business logic. This book introduces Bonita Open Solution and takes the reader right into developing a workflow application using the tool.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to <[email protected]>, and mention the book title via the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the erratasubmissionform link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at <[email protected]> with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at <[email protected]> if you are having a problem with any aspect of the book, and we will do our best to address it.

Chapter 1. Installing and Getting Started with Bonita

Business Intelligence and business modeling has tremendous scope these days. It is of utmost importance to know, understand, and implement business logic that results in the success of any service or product. Modeling a business process and automating a workflow results in reduced time, effort, and various other benefits for all the parties involved. Bonita BPM is an open source BPM and workflow suite that is suited for creating high-tech workflows. It can be used for complex workflows, such as Supply Chain Management, Human Resources, Contract Management, and e-Government.

Hence, it is extremely useful to leverage this tool to better any existing workflow. A plethora of applications, across various domains, can be created quite easily and comprehensively using the Bonita Studio and Execution Engine. Let us get started with learning all about Bonita BPM.

This chapter serves as a quick start guide to Bonita. We would have a look at the following things:

Installing Bonita Open SolutionCreating a simple processDeploying a process

Downloading, installing, and launching Bonita Open Solution

Bonita Open Solution consists of a studio for modelling processes, along with a powerful BPM and workflow engine. It contains an internal file-based database and a web platform for deploying web forms. Bonita Open Solution can be downloaded for Windows, Mac OS X, or any Linux system. You need to have JDK 1.6 for use with Bonita Open Solution 5.10. You can download JDK from the following link:

http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html

Make sure that you have your JAVA_HOME environment variable set. Bonita Open Solution is a portal where you can download the software, access some tutorials, and engage in discussions on forums. You will often find the forum a useful place for debugging any problem you might be facing.

To install Bonita Open Solution locally, download the BOS-5.10 zip file from the following link: http://www.bonitasoft.com/products/download/other-versions-bos?field_download_version_tid=486.In this book, we will use the Windows version. Unzip the downloaded file to any target folder.Launch the application by clicking on the file BonitaStudio.exe.

In this book, we will work with the free Community Edition of Bonita Open Solution. There are other paid versions available, such as the Teamwork, Efficiency, and Performance editions. You can have a look at the differences here:

http://www.bonitasoft.com/products/product-comparison

Now that we have downloaded Bonita Studio, let us get started with it. Here, we will have a look at creating a simple process in Bonita and getting it running.

Creating a process

In this section, we will find out how to create a simple process in Bonita Studio and deploy it.

First, launch Bonita Open Solution. At the start screen, you will have the option to create a new process or open an existing process, along with documentation and resources. For now, we will begin with creating a new process.Click on New Process and Bonita opens a workflow with the predefined Start1 and Step1