tBonitaInstantiateProcess
Starts an instance for a specific process deployed in a Bonita Runtime
engine.
This component instantiates a process already deployed in a Bonita
Runtime engine.
tBonitaInstantiateProcess Standard properties
These properties are used to configure tBonitaInstantiateProcess running in the Standard Job framework.
The Standard
tBonitaInstantiateProcess component belongs to the Business family.
The component in this framework is available in all Talend
products.
Basic settings
Schema and Edit |
A schema is a row description. It defines the number of fields The schema of this component is read-only. You can click In this component the schema is related to the Module Note:
The ProcessInstanceUUID |
Bonita Client Mode |
Select the client mode you want to use to instantiate a Bonita process. For more information about all the Bonita client modes, see |
URL |
Enter the URL of the Bonita Web application server you need to This field is available only in the HTTP client mode. |
Auth Username and Auth Password |
Enter the authentication details used to connect to the Bonita Web To enter the password, click the […] button next to the The default authentication information is provided in these These fields are available only in the HTTP client mode. |
Bonita version |
Select the version number of the Bonita Runtime engine to be This field is available only in the Java client mode. |
Bonita Runtime Environment File |
Browse to, or enter the path to the Bonita Runtime environment This field is available only in the Java client mode.
Note:
This field is displayed only when you select Bonita |
Bonita Runtime Home |
Browse to, or enter the path to the Bonita Runtime environment Note:
This field is displayed only when you select Bonita version |
Bonita Runtime Jaas File |
Browse to, or enter the path to the Bonita Runtime jaas This field is available only in the Java client mode. |
Bonita Runtime logging file |
Browse to, or enter the path to the Bonita Runtime logging This field is available only in the Java client mode. |
Use Process ID |
Select this check box to instantiate an existing process. Once checked, the Process definition This field is available only in the Java client mode. Note:
The process definition ID is |
Process Name and Process Version |
Enter the ID information of a specific process you want to This field is available in both of the Java client mode and the |
User name |
Type in your user name used to instantiate this process. This filed is available in both of the Java client mode and the |
Password |
Type in your password used to instantiate this process. To enter the password, click the […] button next to the This field is available only in the Java client mode. |
Die on error |
This check box is cleared by default, meaning to skip the row on |
Advanced settings
tStatCatcher Statistics |
Select this check box to gather the Job processing metadata at a |
Global Variables
Global Variables |
ProcessInstanceUUID: the identifier number of the process
ERROR_MESSAGE: the error message generated by the A Flow variable functions during the execution of a component while an After variable To fill up a field or expression with a variable, press Ctrl + For further information about variables, see |
Usage
Usage rule |
Usually used as a stand-alone component or as an output To use this component, you have to manually download the Bonita solution you need to |
Connections |
Outgoing links (from this component to another):
Row: Main (providing the output
Trigger: Run if; On Component Ok; Incoming links (from one component to this one):
Row: Main (providing the input
Trigger: Run if, On Component Ok, For further information regarding connections, see Connection types in |
Limitation |
The Bonita Runtime environment file, the Bonita Runtime jaas file |
Executing a Bonita process via a Talend Job
This scenario describes a Job that deploys a Bonita process into the Bonita Runtime
and executes this process, in which a personnel request is treated.
The Job in this scenario uses three components.
-
tBonitaDeploy: this component deploys a
Bonita process into the Bonita Runtime. -
tFixedFlowInput: this component generates
the schema used as execution parameters of this deployed process. -
tBonitaInstantiateProcess: this component
executes this deployed process.
Before beginning to replicate this schema, prepare your Bonita.bar file. You need to
manually export this file from the Bonita system and then deploy it into the Bonita
Runtime engine, using, for example, tBonitaDeploy as
presented later in this scenario. In this scenario, this file is
TEST–4.0.bar. Once deployed, this process can be checked via the
Bonita interface.
Setting up the Job
- Drop tBonitaDeploy, tFixedFlowInput and tBonitaInstantiateProcess onto the design workspace.
-
Right-click tBonitaDeploy and connect
tBonitaDeploy to tFixedFlowInput using a Trigger> On
Subjob Ok connection. -
Right-click tFixedFlowInput and connect
this component to tBonitaInstantiateProcess
using a Row > Main connection.
Configuring the deployment of the process
To replicate this scenario, proceed as follows:
-
Double-click tBonitaDeploy to open its
Basic settings view. -
Select Bonita version 5.3.1 from the Bonita
version list. The version you select should be in sync with
the version number of the Bonita Runtime engine you are using. -
In the Bonita Runtime Configuration
area, browse to the Bonita Runtime variable files. In the Bonita Runtime Environment file field, browse to
the bonita-environnement.xml file; in the Bonita Runtime Jaas File field, browse to the
jaas-standard.cfg file; in the Bonita Runtime Logging File field, browse to the
logging.properties file.For users based on Bonita version 5.2.3, only the Bonita Runtime Jaas File field and the
Bonita Runtime Logging File field
need to be filled.For users based on Bonita version 5.6.1, in the Bonita Runtime Home field, browse to the Bonita Runtime
environment directory. -
In the Business Archive field, browse to
the Bonita .bar file that is the process exported from your Bonita system
and will be deployed into the Bonita Runtime engine. -
In the Username and the Password fields, type in your authentication
information to connect to your Bonita.
Configuring the input flow
-
Double-click tFixedFlowInput to open its
Basic settings view. -
Click the three-dot button next to Edit
schema to open the schema editor. -
Click the plus button to add one row and rename it as
Name.This name is identical with the parameter set in Bonita to execute the
same process. This way, Bonita can recognize this column as valid parameter
and read its value to instantiate this process. - Click OK.
-
In the Mode area of the Basic settings view, select the Use inline table option and click the plus button
to add one row in the table. -
In the inline table, click the added row and type in the person’s name
from your personnel between the quotation marks: ychen,
whose request will be treated by this deployed process.
Configuring the Basic settings of tBonitaInstantiateProcess
-
Double-click tBonitaInstantiateProcess
to open its Basic settings view. -
Select Bonita version 5.3.1 from the Bonita
version list. The version you select should be in sync with
the version number of the Bonita Runtime engine you are using. -
In the Bonita Runtime Configuration
area, browse to the Bonita Runtime variable files. In the Bonita Runtime Environment file field, browse to
the bonita-environnement.xml file; in the Bonita Runtime Jaas File field, browse to the
jaas-standard.cfg file; in the Bonita Runtime Logging File field, browse to the
logging.properties file.For users based on Bonita version 5.2.3, only the Bonita Runtime Jaas File field and the
Bonita Runtime Logging File field
need to be filled.For users based on Bonita version 5.6.1, in the Bonita Runtime Home field, browse to the Bonita Runtime
environment directory. -
Select the Use Process ID check box to
activate the Process Definition Id
field. -
In the Process Definition Id field, click
between the quotation marks and press Ctrl+space to open the auto-completion drop-down list
containing the available global variables for this Job. -
Double-click the variable you need use to add it between the quotation
marks. In this scenario, double-click
tBonitaDeploy_1_ProcessDefinitionUUID, which
retrieves the process definition ID of the process being deployed by
tBonitaDeploy.Note:You can as well clear the Use Process
ID check box to activate the Process name and the Process
version fields and enter the corresponding information in
the two fields. tBonitaInstantiateProcess concatenates the process name
and the process version you type in to construct the process definition
ID. -
In the Username and Password fields, enter the username and password to connect
to your Bonita.
Executing the Job
Job.
This process is deployed into the Bonita Runtime and an instance
is created for the personnel requests.
Outputting the process instance UUID over the Row > Main link
This scenario deploys a Bonita process into the Bonita Runtime, starts an instance and
outputs the process instance UUID via the Row >
Main link.
Linking the components
- Drop tBonitaDeploy, tBonitaInstantiateProcess and tLogRow onto the workspace.
-
Rename tBonitaDeploy as deploy_process, tBonitaInstantiateProcess as start_instance and tLogRow
as show_instance_uuid. - Link tBonitaDeploy to tBonitaInstantiateProcess using the OnSubjobOk trigger.
-
Link tBonitaInstantiateProcess to
tLogRow using a Row > Main
connection.
Configuring the components
-
Double-click tBonitaDeploy to open its
Basic settings view. -
In the Bonita Runtime Jaas File field,
specify the path and name of the jaas file.In the Bonita Runtime Logging File field,
specify the path and name of the logging file.In the Business Archive field, specify
the path and name of the Bonita process. -
In the Username and Password fields, enter the user authentication
credentials. -
Double-click tBonitaInstantiateProcess to
open its Basic settings view. -
In the Bonita Runtime Jaas File field,
specify the path and name of the jaas file.In the Bonita Runtime Logging File field,
specify the path and name of the logging file. -
In the Process Name and Process Version fields, enter the process
information. -
In the Username and Password fields, enter the user authentication
credentials. -
Double-click tLogRow to open its
Basic settings view. -
In the Mode area, select Table (print values in cells of a table for
better display.
Executing the Job
- Press Ctrl+S to save the Job.
-
Press F6 to run the Job.
As shown above, the instance is created and the UUID is output.