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