Professional Documents
Culture Documents
BOS 5.3 Connectors Guide
BOS 5.3 Connectors Guide
Version 5.3
Change Notice
This document now describes the following new and improved Connector features in Bonita Open
Solution 5:
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 2
Bonita Open Solution 5.3 Connectors Reference Guide
Contents
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 3
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 4
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 5
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 6
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 7
Bonita Open Solution 5.3 Connectors Reference Guide
Figures
Figure 1. Bonita Open Solution Connectors accept embedded code, take inputs, communicate with
external services, and return outputs................................................................................................... 12
Figure 2. Choose a Connector to Add .................................................................................................. 13
Figure 3. Specify Connector parameters at the Step level................................................................... 14
Figure 4. Specify Connector parameters at the Human Step level ...................................................... 14
Figure 5. Configure a Deadline to trigger a Connector ........................................................................ 15
Figure 6. Specify Connector parameters at the Process or Pool level ................................................. 16
Figure 7. Add variables or delete output ............................................................................................. 17
Figure 8. Add a variable to take Connector output ............................................................................. 17
Figure 9. Save a Connector configuration ............................................................................................ 18
Figure 10. Saved Connector configurations can be used to develop other similar connectors .......... 18
Figure 11. Move or duplicate a Connector .......................................................................................... 19
Figure 12. Test Connector configuration ............................................................................................. 20
Figure 13. Select Test a Connector....................................................................................................... 20
Figure 14. Test a Connector configuration........................................................................................... 21
Figure 15. Choose a Connector to configure and evaluate.................................................................. 21
Figure 16. Test the Connector when it is configured ........................................................................... 22
Figure 17. and wait for the evaluation results .................................................................................. 22
Figure 18. Configure a Connector to send an email............................................................................. 23
Figure 19. Complete email Connector configuration ........................................................................... 24
Figure 20. Configure a Connector to send a Twitter Direct Message .................................................. 26
Figure 21. Configure a Connector to send a Twitter Status Update .................................................... 28
Figure 22. Configure a Connector to invoke a Java method ................................................................ 30
Figure 23. Browse for the java class, enter a string to search and choose .......................................... 30
Figure 24. Choose the Java method to invoke ..................................................................................... 31
Figure 25. Configure a Connector to execute a shell command or script............................................ 32
Figure 26. Choose a destination variable for the output returned ...................................................... 33
Figure 27. Configure a Connector to execute a Groovy script ............................................................. 34
Figure 28. Choose a destination variable for the output returned ...................................................... 35
Figure 29. Configure a Connector to search in an LDAP directory and return a list ............................ 36
Figure 30. Define LDAP directory search ............................................................................................. 37
Figure 31. Configure LDAP Connector outputs .................................................................................... 39
Figure 32. Configure a Connector to add a comment.......................................................................... 40
Figure 33. Configure a Connector to send a command to execute a Step .......................................... 41
Figure 34. Configure a Connector to send a command to start a Step................................................ 42
Figure 35. Configure a Connector to send a command to finish a Step .............................................. 43
Figure 36. Configure a Connector to create a variable ........................................................................ 44
Figure 37. Configure a Connector to create a variable ........................................................................ 45
Figure 38. Configure a Connector to use a hook defined in Bonita v4 ................................................ 46
Figure 39. Configure a Connector to add an attachment .................................................................... 47
Figure 40. Configure a Connector to get the initiator of a Process case ............................................. 48
Figure 41. Data returned for case initiator .......................................................................................... 48
Figure 42. Configure a Connector to get Submitter of a Step.............................................................. 49
Figure 43. Data returned for Step Submitter ....................................................................................... 49
Figure 44. Configure a Connector to get a User Name ........................................................................ 50
Figure 45. Data returned for User Name ............................................................................................. 50
Figure 46. Configure a Connector to instantiate a Process Case ......................................................... 51
Figure 47. Data returned Instantiated Process Case............................................................................ 51
Figure 48. Configure a connector to execute a database query .......................................................... 53
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 8
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 9
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 10
Bonita Open Solution 5.3 Connectors Reference Guide
Welcome to Bonita Open Solution (BOS). If you dont already have the software, you can download
it from the BonitaSoft web site..
How to Use Connectors is intended to help you use the Connectors provided in Bonita Open
Solution Version 5, the complete open source Business Process Management Solution.
You can download this, and the general User Guide and updates, from the BonitaSoft web site.
Part 2 describes how to use predefined Connectors to connect Bonita Open Solution to external
information systems.
Part 5 gives information about how to analyze problems in Bonita Open Solution.
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 11
Bonita Open Solution 5.3 Connectors Reference Guide
Connectors take specified input (directly as a value from the end user or carried over / built
into an expression) and execute. Some Connectors also return output back into Bonita Open
Solution. Inputs and outputs for each Connector provided in Bonita Open Solution are given
in this document.
Once created, Connectors can be Moved or Copied (to another Step or to a Process or Pool).
There is also a function to Test a Connector before the Process is run.
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 12
Bonita Open Solution 5.3 Connectors Reference Guide
To Add a Connector already defined in Bonita Open Solution to a Step, click the Step and go
to Details -> Connectors -> Add.
Note: you will need to have global variables defined, to associate with your inputs and/or
output results. See How to define Data variables in the Bonita Open Solution User Guide.
When the Select a connector window appears, choose the type of Connector you want to
add. (These Connectors are described in detail in the following paragraphs, but all of them
go through these same first steps).
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 13
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 14
Bonita Open Solution 5.3 Connectors Reference Guide
If Connector fails: choose the appropriate action to take if the Connector itself fails
to execute properly:
o Raise exception;
o Ignore error and continue process; or
o Throw Error event in this case, name the error event.
Deadlines are used to trigger a Connector after the specified duration or date has passed.
A Deadline is either:
Deadlines can be set for both Human and Automatic Steps. Go to Step -> Deadlines -> Add.
Choose a Connector to be triggered when the deadline is reached.
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 15
Bonita Open Solution 5.3 Connectors Reference Guide
o Date: Select the date and time for the activation of the Connector
o Variable: Select a predefined variable that will return a date or an integer.
If Connector fails: choose the appropriate action to take if the Connector itself fails:
o Abort process and raise error; or
o Ignore error and continue process.
Select Next to continue and configure the Connector to activate when the deadline
is reached. See Add a Connector to a Step.
At the Process level, there are also options to implement a Connector at any time during the
Process:
o Cancel the connector implements if the Actor cancels the Process (case)
o Abort the connector implements if the Process case encounters a fatal
error
If Connector fails: choose the appropriate action to take if the Connector itself fails
to execute properly:
o Raise exception;
o Ignore error and continue process; or
o Throw Error event in this case, name the error event.
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 16
Bonita Open Solution 5.3 Connectors Reference Guide
Next, define the parameters required for Connector inputs and, where appropriate, for
outputs. You will need to define variables used in the inputs before configuring the
Connector; but for outputs, you can create variables directly within the output
configuration.
Note that whenever an output configuration wizard appears, you either need to define the
output or delete the output field.
Specific Connector input and output configurations are described in the following sections.
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 17
Bonita Open Solution 5.3 Connectors Reference Guide
XML elements can now be used in Connectors. Select XML as the data type, the set the XML
namespace and XML element for this variable. Add an XML schema, if desired, by uploading
a file. (See How to define Data variables in the BOS User and Reference Guide.)
For many Connectors, you have an option to Save connector configuration which allows you
to re-use the same configuration to define another Connector of the same type. This option
will appear as you continue the Connector configuration wizard:
Figure 10. Saved Connector configurations can be used to develop other similar connectors
To move a Connector to another Step, or to a Pool or Process, Go to Step -> Connectors and
select the Connector you want to move. Then select Move.
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 18
Bonita Open Solution 5.3 Connectors Reference Guide
Be sure that any variables you defined in a Connector attached to a Step are also available
either globally in the target Process, or locally in the target Step.
To duplicate a Connector that is, Move it and at the same time leave a copy in its original
location, check the Make a Copy option before moving it.
You can test the function of a Connector before you save it.
Check external configurations before testing a specific Connector. Sometimes the Connector
test returns an error due to external factors. (For example, some Bonita Connectors may
return errors because the Process has not been Run, and therefore the Bonita Execution
Engine has not been launched. This example illustrates that not all Connectors can be tested
before an execution.)
Where dynamic values have been used, replace the Groovy expression with a static value to
complete the test.
For many Connectors, you have an option to Test configuration when you have completed
the configuration.
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 19
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 20
Bonita Open Solution 5.3 Connectors Reference Guide
Then choose the category and specific Connector to test. Continue to configure the
Connector (as explained below, beginning in Section 2.2).
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 21
Bonita Open Solution 5.3 Connectors Reference Guide
You will get a Results window indicating that the Connector was successfully implemented,
or that an error occurred with information to help debug the connector.
When you are satisfied with the Connector behavior, you can Save connector configuration
and use this as a basis to create the actual Connector where you want it.
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 22
Bonita Open Solution 5.3 Connectors Reference Guide
This connector will send an email message when activated. There is no output returned.
Email
Category: Messaging
Connector description: send an email message
Input Description Type
Host IP address or name of string
email server
Port port defined for email number
system
Security: SSL check if SSL security
authorization required
Security: STARTTLS check if STARTTLS security
authorization required
Authentication: User User name for the host string
Name and password account
Authentication: password User password for the host string
account
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 23
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 24
Bonita Open Solution 5.3 Connectors Reference Guide
Email
Category: Messaging
Connector description: send an email message
Input Description Type
From name@name.ext string
To: name@name.ext, string
name@name.ext
CC: name@name.ext, string
name@name.ext
Bcc: name@name.ext, string
name@name.ext
Subject text string
Message message to recipient which string
can include variable(s) and
text (hello ${var})
Select data or create an chose a variable to add select
expression to use here
HTML Check to activate HTML Boolean
tags in message
Attachments Include email attachment string
defined as a variable or
expression
Set Value as expression; Toggle between choice choice
Set Value as List
Charset Character set string
Other headers: name name of additional header string
information
Other headers: value value of additional header string
information
Set Value as expression; Toggle between choice choice
Set Value as List
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 25
Bonita Open Solution 5.3 Connectors Reference Guide
This Connector will send a direct message to a Twitter address. There is no output.
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 26
Bonita Open Solution 5.3 Connectors Reference Guide
You will need to configure BOS as a registered application for Twitter see this blog post on
how to obtain and what to do with the ConsumerKey, ConsumerSecret, Access Token and
Access Secret.
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 27
Bonita Open Solution 5.3 Connectors Reference Guide
This Connector will broadcast a Status Update via Twitter. There is no output returned.
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 28
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 29
Bonita Open Solution 5.3 Connectors Reference Guide
Figure 23. Browse for the java class, enter a string to search and choose
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 30
Bonita Open Solution 5.3 Connectors Reference Guide
Java Executor
Category: Java
Connector description: configure invocation of Java methods
Input Description Type
Class java class; click Browse and select
enter a string to find class
Methods methods defined for select
selected class;
double-click on method to
set
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 31
Bonita Open Solution 5.3 Connectors Reference Guide
2.4.1.1 Input
Shell
Category: Scripting
Connector description: execute a shell command or script
Input Description Type
Shell command enter command, script, or string
command path to execute
a shell file
can include variable(s)
Or select a data you want choose a variable to add select
to use
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 32
Bonita Open Solution 5.3 Connectors Reference Guide
2.4.1.2 Output
You can return the output of your executable into a predefined variable. Note that if there is no
output for your connector, you should delete this option (click the red X).
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 33
Bonita Open Solution 5.3 Connectors Reference Guide
2.4.2.1 Input
Enter an expression in Groovy. You can include predefined variables (including variables that are
Groovy expressions) here.
Groovy
Category: Scripting
Connector description: execute a Groovy command or script
Input Description Type
Groovy script enter the script directly string
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 34
Bonita Open Solution 5.3 Connectors Reference Guide
2.4.2.2 Output
You can return the output of your executable into a predefined variable. Note that if there is no
output for your connector, you should delete this option (click the red X).
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 35
Bonita Open Solution 5.3 Connectors Reference Guide
2.5.1 Inputs
Figure 29. Configure a Connector to search in an LDAP directory and return a list
LDAP
Category: Database
Connector description: search in an LDAP directory and return a list of specified
attributes
Input Description Type
Host IP address or name of string
server hosting LDAP
directory
Port LDAP directory port number
number
Protocol choose LDAP, LDAPS, or select
TLS
User LDAP User name string
Password LDAP user password string
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 36
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 37
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 38
Bonita Open Solution 5.3 Connectors Reference Guide
2.5.2 Outputs
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 39
Bonita Open Solution 5.3 Connectors Reference Guide
Note that when a Connector is configured to act on another Step in the Process, the target
Step must be already activated in order for the connector to work properly (ie, Connectors
cannot act on future Steps.)
This Connector adds a comment to a Step which will be shown in the User Experience when
the Process is running.
Add a comment
Category: Other
Connector description: Add text to a Step or a Process
Input Input description Type
message enter text to display string
On this step The comment appears
when this step shows up in
the User Experience inbox
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 40
Bonita Open Solution 5.3 Connectors Reference Guide
Execute a Step
Category: other
Connector description: send a command to execute the indicated Step (anywhere in
the Pool)
Input Description Type
Step name name of Step string
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 41
Bonita Open Solution 5.3 Connectors Reference Guide
Start a Step
Category: other
Connector description: send a command to start the indicated Step (any Step in the
Pool)
Input Description Type
Step name name of Step string
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 42
Bonita Open Solution 5.3 Connectors Reference Guide
Finish a Step
Category: other
Connector description: send a command to finish the indicated Step (any Step in the
Pool)
Input Description Type
Step name name of Step string
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 43
Bonita Open Solution 5.3 Connectors Reference Guide
This Connector sets the value of a Data variable when a Step is reached.
Set variable
Category: other
Connector description: create a global or a local variable
Input Description Type
Name name of variable string
Value variable definition string
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 44
Bonita Open Solution 5.3 Connectors Reference Guide
This Connector sets the value of multiple Data variables when a Step is reached.
Set variable
Category: other
Connector description: create a global or a local variable
Input Description Type
Name name of variable string
Value variable definition string
Set value as expression Chose an expression to set String
Set value as table Chose a table to set String in the form:
list<list<object>>
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 45
Bonita Open Solution 5.3 Connectors Reference Guide
HookProcessConnector
Category: other
Connector description: Use a hook defined in Bonita v4 as a Connector
Input Description Type
className name of javaclass string
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 46
Bonita Open Solution 5.3 Connectors Reference Guide
Add a comment
Category: Other
Connector description: Add an attachment to a Step or a Process
Input Input description Type
Attachment name enter text to display string
File path Path to directory where file
is located
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 47
Bonita Open Solution 5.3 Connectors Reference Guide
You can return the output this connector into a predefined variable.
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 48
Bonita Open Solution 5.3 Connectors Reference Guide
This Connector will fetch the name of the User who submits a Step (in Bonita User
Experience).
You can return the output this connector into a predefined variable.
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 49
Bonita Open Solution 5.3 Connectors Reference Guide
You can return the output this connector into a predefined variable.
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 50
Bonita Open Solution 5.3 Connectors Reference Guide
You can return the output this connector into a predefined variable.
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 51
Bonita Open Solution 5.3 Connectors Reference Guide
You can configure a Bonita Open Solution connector for the databases shown below, or you
can use Java Database Connectivity (JDBC) to execute a query on any database. (See Use
JDBC to execute a query.)
To see an example of how to configure a Connector to query a MySQL database, see the
video How to Query a Database with Bonita Open Solution.
H2 http://www.h2database.com/html/download.html
HSQL http://sourceforge.net/projects/hsqldb/files/
Ingres http://community.ingres.com/wiki/Ingres_JDBC_Driver_Downloads
MySQL http://dev.mysql.com/downloads/connector/j/
Oracle http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
PostgreSQL http://jdbc.postgresql.org/
SQLserver http://jtds.sourceforge.net/
Sybase http://www.sybase.com/products/allproductsa-
z/softwaredeveloperkit/jconnect
Teradata http://www.teradata.com/downloadcenter/
2.7.1 Inputs
Bonita Open Solution supports multiple databases. The inputs required for each database
are specified in each database Connector wizard.
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 52
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 53
Bonita Open Solution 5.3 Connectors Reference Guide
4. Local OR Server-based
H2
6. Oracle
Note that to send the query result to a variable, you will need to define the Data variable
before you define the Connector.
Databases
Category: Database
Connector description: search in a database and return data
Input Description Type
1,2,3,5,6
Database name of database string
1,2,3,4,5,6
User name database users name string
1,2,3,4,5,6
Password database password string
2,3,4,5,6
Host name IP address or name of string
database host server
2,3,5,6
Port database assigned port integer
2,2a
DB server name of database server string
4,5
Local check if locally based boolean
4,5
Server check if server-based boolean
5
Web server check if web-server based boolean
4
SSL support check if SSL security boolean
authentication required
6
SID check if database has an boolean
Oracle system ID
6
oracleServiceName check if this is to go to an boolean
alias
6
oracleOCI check is this is to go to an boolean
Oracle Instant Client
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 54
Bonita Open Solution 5.3 Connectors Reference Guide
1,2,3,4,5,6
Query the statement or query string
expression which can
include variable(s) with the
syntax ${var}
1,2,3,4,5,6
Or select a data choose a variable to add select
you want to use
others some databases require
unique input (ie Oracle)
2.7.2 Outputs
You can return the output of your database query into a variable.
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 55
Bonita Open Solution 5.3 Connectors Reference Guide
2.7.3.1 Inputs
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 56
Bonita Open Solution 5.3 Connectors Reference Guide
Databases
Category: Java Database Connector
Connector description: Use a JDBC to execute a command on a database
Input Description Type
Driver database access driver string
URL Location of the target String in the form of a URL
database
User name database users name string
Password database password string
Query or script To be executed on string
database
Statement separator For multiple statements: go MS SQL, Sybase
(separator specific to
database being queried) ; all others
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 57
Bonita Open Solution 5.3 Connectors Reference Guide
For an example of how to configure an Alfresco Connector, see the video How to Upload a File to
Alfresco with Bonita Open Solution.
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 58
Bonita Open Solution 5.3 Connectors Reference Guide
Alfresco Connectors
Input Description Type
host IP address or name of string
Alfresco directory host
server
port Alfresco directory port number
number
username Alfresco user name string
password Alfresco user password string
Unique inputs for each Alfresco Connector are given in the following sections.
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 59
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 60
Bonita Open Solution 5.3 Connectors Reference Guide
Figure 55. Enter path and information for checked-out file to cancel
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 61
Bonita Open Solution 5.3 Connectors Reference Guide
Check in
Category: Alfresco
Connector description: check in an Alfresco file
fileID ID of the file you are string
checking in
Major version if true, the file is checked in Boolean
as a major version
(example from 5.1 to 6.0)
if false, the file the file is
checked in as a minor
version (example from 5.1
to 5.2)
Check-in comments File history string
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 62
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 63
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 64
Bonita Open Solution 5.3 Connectors Reference Guide
Download file by ID
Category: Alfresco
Connector description: download a file by ID
Input Description Type
File ID ID of the file to be canceled String
Folder for the downloaded Destination folder for the String (file path syntax)
file file
Downloaded file name Name of file to be String
downloaded
Figure 62. Enter version store and information for file to download
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 65
Bonita Open Solution 5.3 Connectors Reference Guide
This Connector has no unique inputs or outputs. See 2.9.1 and 2.9.2, Alfresco Common
Inputs and Output.
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 66
Bonita Open Solution 5.3 Connectors Reference Guide
Figure 65. Enter path and information for checked-out file to update
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 67
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 68
Bonita Open Solution 5.3 Connectors Reference Guide
2.9.1 Inputs
Create Report
Category: Jasper
Connector description: create a Jasper report from a database
Input Description Type
Database driver Database driver string
JDBC URL Location of database string
User name database user name string
Password database user password string
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 69
Bonita Open Solution 5.3 Connectors Reference Guide
2.9.2 Outputs
Figure 68. Enter file path and output for Jasper report
Create Report
Category: Jasper
Connector description: create a Jasper report from a database
Output Description Type
JRXML file path Path of Jasper xml file string
Parameters: name Name of parameter to string
include in report
Parameters: value Value of parameter to string
include in report
Set value as expression Use and expression for the string
output value
Set value as table Use table for the output String in the form:
values list<list<object>>
Output file path Destination of output file string
Output format Choose pdf, html, or xml
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 70
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 71
Bonita Open Solution 5.3 Connectors Reference Guide
Define the Data variables needed to accept the report returned. Note that you can Add
variables here for output.
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 72
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 73
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 74
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 75
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 76
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 77
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 78
Bonita Open Solution 5.3 Connectors Reference Guide
2.11.1.1 Inputs
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 79
Bonita Open Solution 5.3 Connectors Reference Guide
2.11.1.2 Outputs
2.11.2.1 Inputs
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 80
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 81
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 82
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 83
Bonita Open Solution 5.3 Connectors Reference Guide
eXo
Input Description Type
host IP address or name of eXo string
directory host server
port eXo directory port number number
username eXo user name string
password eXo user password string
URI URI of the item to String
manipulate
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 84
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 85
Bonita Open Solution 5.3 Connectors Reference Guide
eXo - CreateFolder
Category: eXo
Connector description: Create a new folder in eXo JCR
Input Description Type
Parent URI URI of the parent folder String
new folder name name of new folder String
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 86
Bonita Open Solution 5.3 Connectors Reference Guide
eXo DownloadFile
Category: eXo
Connector description: Download a file from a WebDav server
Input Description Type
File URI URI of the file to download String
Output file folder Destination folder for the String
file
Output file name Name of the output file String
eXo - UploadFile
Category: eXo
Connector description: upload file to a WebDAV server
Input Description Type
Destination URI the destination URI of the String
folder of the uploaded file
File the absolute path of the String
file to upload
ContentType mime type of the uploaded String
file
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 87
Bonita Open Solution 5.3 Connectors Reference Guide
There are two xWikis Connectors; both have the same set of inputs and outputs to configure.
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 88
Bonita Open Solution 5.3 Connectors Reference Guide
xWiki
Input Description Type
host IP address or name of wiki string
host server
port wiki port number number
User name Wiki account user name string
password Wiki user password string
Wiki name Name of wiki String
Space name Wiki space String
Page name Page in wiki String
Class name Wiki class String
Property name
Property value
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 89
Bonita Open Solution 5.3 Connectors Reference Guide
Note that the output fields can be deleted (red X) if no output is needed.
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 90
Bonita Open Solution 5.3 Connectors Reference Guide
Google Calendar
Input Description Type
userEmail Gmail user email user String
name: name@gmail.com
password Gmail password string
CalendarURL URL of Google calendar (eg string
http://www.google.com/
calendar/feeds/
your_gmail_address/
private/full
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 91
Bonita Open Solution 5.3 Connectors Reference Guide
2.14.2 Configure a Connector to create a Google calendar event with web content
Figure 94. Configure a Connector to Create a Google calendar event with web content
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 92
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 93
Bonita Open Solution 5.3 Connectors Reference Guide
GoogleCalendar DeleteEvent
Category: Google
Connector description: delete an event from specified Google calendar
Input Description Type
searchString String to find event (by String
title)
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 94
Bonita Open Solution 5.3 Connectors Reference Guide
2.15.1.1 Inputs
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 95
Bonita Open Solution 5.3 Connectors Reference Guide
2.15.1.2 Outputs
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 96
Bonita Open Solution 5.3 Connectors Reference Guide
2.16.1 Inputs
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 97
Bonita Open Solution 5.3 Connectors Reference Guide
2.16.2 Outputs
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 98
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 99
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 100
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 101
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 102
Bonita Open Solution 5.3 Connectors Reference Guide
2.17.1.2 Outputs
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 103
Bonita Open Solution 5.3 Connectors Reference Guide
2.17.2.1 Inputs
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 104
Bonita Open Solution 5.3 Connectors Reference Guide
2.17.2.2 Outputs
2.17.3.1 Inputs
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 105
Bonita Open Solution 5.3 Connectors Reference Guide
2.17.4.1 Inputs
2.17.5.1 Inputs
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 106
Bonita Open Solution 5.3 Connectors Reference Guide
SharePoint
Input Description Type
username SharePoint user name string
password SharePoint user password string
fileUrl Location of SharePoint file String (url)
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 107
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 108
Bonita Open Solution 5.3 Connectors Reference Guide
Figure 115. Unique input for Check in file from a SharePoint server
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 109
Bonita Open Solution 5.3 Connectors Reference Guide
Figure 117. Unique output for Get items from a SharePoint list
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 110
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 111
Bonita Open Solution 5.3 Connectors Reference Guide
SharePoint DownloadFile
Category: SharePoint
Connector description: Download a file from a SharePoint server through WebDav
Input Description Type
File URI URI of the file to download String
Output file folder Destination folder for the String
file
Output file name Name of the output file String
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 112
Bonita Open Solution 5.3 Connectors Reference Guide
SharePoint - UploadFile
Category: SharePoint
Connector description: upload a file to a SharePoint server through WebDAV
Input Description Type
Destination URI the destination URI of the String
folder of the uploaded file
File the absolute path of the String
file to upload
ContentType mime type of the uploaded String
file
URI URI of the folder for String
version control
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 113
Bonita Open Solution 5.3 Connectors Reference Guide
Exchange
Category: Exchange
Connector description: create new calendar items and contacts with Exchange
Input Description Type
Username Account holders name String
Password Account holders password String
Server selection Location of server selection
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 114
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 115
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 116
Bonita Open Solution 5.3 Connectors Reference Guide
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 117
Bonita Open Solution 5.3 Connectors Reference Guide
There are two ways to configure a custom Connector. You can develop your own using the
editor to enter Java code, or use the re-use Wizard to create a new Connector based on an
existing one.
For a step-by-step example of how to develop a Connector by editing, see the tutorial How
to Create a Connector.
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 118
Bonita Open Solution 5.3 Connectors Reference Guide
The java source file window will appear, in which you can create the executable Connector.
When it is completed, save it and close the window to return to the Process.
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 119
Bonita Open Solution 5.3 Connectors Reference Guide
The Connector you have created is now available in Details -> Connectors.
For more information, see the tutorial, How to Create a Connector, and the video How to
Get the Latest Tweet About a Subject.
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 120
Bonita Open Solution 5.3 Connectors Reference Guide
To create a new Connector from an existing one, go to the Menu bar and select Connectors -
> Edit Connector.
Select the Connector you want to use as a starting point and Next.
When you select Finish, the editor will appear with the existing configuration. Change the name of
the Connector, and edit its parameters as shown in Develop your Own Connector.
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 121
Bonita Open Solution 5.3 Connectors Reference Guide
Figure 131. Import (or Export) a Connector from the Menu bar
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 122
Bonita Open Solution 5.3 Connectors Reference Guide
To import a Connector from BonitaSoft Community Contribution into Bonita Open Solution:
This will connect to the Contributions section of www.Bonitasoft.org. From here you can
select a shared extension and Install it. (You will need to be registered as a BonitaSoft
Community user and log in to the Community forum from Bonita Studio).
To close the Contributions page and return to the Whiteboard, click the X in the upper right
corner of the BonitaSoft.org window.
Your Bonita Open Solution log files (for Bonita Studio and Bonita Execution Engine are
available via the Menu Bar: Help -> Show log and Help -> Show engine log.
When you encounter a problem, please post a description of the problem and a copy of your
log file on the Bonita Community Forum at www.bonitasoft.org/forum/.
BonitaSoft developers, among others, actively contribute to the Bonita Community and will
post a response.
BOS V5.3, Connectors Reference Guide, 19 Oct 10 www.bonitasoft.com | BonitaSoft S.A. page 123