Scenario 1: Executing a Bonita process via a Talend Job - 6.3

Talend Open Studio for Big Data Components Reference Guide

EnrichVersion
6.3
EnrichProdName
Talend Open Studio for Big Data
task
Data Governance
Data Quality and Preparation
Design and Development
EnrichPlatform
Talend Studio

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

  1. Drop tBonitaDeploy, tFixedFlowInput and tBonitaInstantiateProcess onto the design workspace.

  2. Right-click tBonitaDeploy and connect tBonitaDeploy to tFixedFlowInput using a Trigger> On Subjob Ok connection.

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

  1. Double-click tBonitaDeploy to open its Basic settings view.

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

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

    Note

    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.

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

  5. In the Username and the Password fields, type in your authentication information to connect to your Bonita.

Configuring the input flow

  1. Double-click tFixedFlowInput to open its Basic settings view.

  2. Click the three-dot button next to Edit schema to open the schema editor.

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

  4. Click OK.

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

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

  1. Double-click tBonitaInstantiateProcess to open its Basic settings view.