











Signup for Training
- Atlanta, GA Dec 3-5
- Melbourne, AU, Dec 9-11
- New York Dec 10-12
- Brussels, BE, Dec 16-18
- Washington, DC, Dec 17-19
More trainings...
Intalio|BPMS Webinars
- Nov 20, 2008 1 PM EST
- Nov 21, 2008 1PM EST
- Nov 26, 2008 10 AM GMT
- Dec 5, 2008 10 AM PST
- Dec 9, 2008 1 PM EST
- Dec 11, 2008 1 PM EST
- Dec 19, 2008 10 AM PST
- Dec 30, 2008 10 AM PST
- Jan 13, 2009 10 AM PST
- Jan 15, 2009 1 PM EST
- Feb 3, 2009 10 AM PST
- Feb 12, 2009 1 PM EST
- Feb 17, 2009 10 AM PST
- Mar 10, 2009 10 AM PST
- Mar 12, 2009 1 PM EST
- Mar 24, 2009 10 AM PST
Login
Who's online?
- (paul.fenton@vertex.co.uk)
- (jloge@ebsco.com)
- Alexander Stuckenholz (alexander.stuckenholz)
- Andrey Nazarov (andrey.nazarov)
- chris robson (chris.robson)
- Deepa Tekumalla (deepa.tekumalla)
- Guerman Smirnov (guerman.smirnov)
- Ilo Rivero (ilo.rivero)
- Leonardo Saraiva (leonardo.saraiva)
- manindra mallick (manindra.mallick)
- Marcin Urbanski (marcin.urbanski)
- Milos Vacek (milos.vacek)
- nie pin (nie.pin)
- Oleg Pozdnyakov (o.pozdnyakov)
- Pavel Lekhanov (lehanov)
- Ravinderjit Singh (ravinderjit.singh)
- Sirswendu Ganapati (sirswendu.ganapati)
- Tamara Dobrynina (tamara.dobrynina)
- Teo Bon (teo.bon)
- Wael Soliman (wael.soliman)
Samples-5.1
For Each Process For Each Process
foreach 05/02/2008,03:03 22.67 Kb
Description:
In this use case sample user enter name and designation of a particular person through a form. As the process flows a database call has been made in order to fetch all the values from database and has been sent into for-each loop. The process starts looping from “1” and continues to execute till the total no. of rows available in the database.
As the process continues looping a check is being done to validate if a user with name entered exists in the database or not.
If user exists the loop terminates and a new form opens that displays result as:
Name User is Valid
If user does not exist then result is displayed as:
Name User is Invalid
Use case dependencies:
- MySQLdb.wsdl
- MySQLdb.xsd
- paform.xform
- paform.xform.xsd
- pipaform.xform
- pipaform.xform.xsd
- query.sql
Requirements:
- Intalio|BPMS Server-5.1.1
- Intalio|BPMS Designer-5.1.1
- MySQL-5 database.
- mysql-connector-5.0.4.jar
Preconditions:
- Make sure Intalio|BPMS Server is up and running fine.
- Make sure the Process Explorer pane does not contain any Intalio|BPMS Business Process Project with same name.
Process Download & Import:
- Download ‘Foreach.zip’.
- Go to File > Import...
- Select 'Existing Projects into Workspace', in the wizard, click on Next >
- Browse to select the downloaded archive file.
- Click to Finish.
- Update project builders by right click on project; go to BPMS Designer Tools > Update BPMS Builders.
Defining Configurations:
MySQL Database:
All you need to have a table with two fields (Name & Designation) in MySQL-5.
mysql> create table employee (Name varchar (20), Designation varchar (12));
mysql> insert into employee values (‘xxxxx’ ‘xxxxx’);
Designer:
- To configure jdbc connection:
Refer to the reference guides>Intalio|BPMS Connector for JDBC - Create Database Connection with the name as MySQLdb.
Server:
- Go to [intalio-bpms-server]\var\config\jdbc-connector and create folder with name as MySQLdb
Note: The folder name should always be similar to the name given for Database Connections in designer - Create a ‘connection.properties’ file and paste it into this folder.
Note The file can be obtained form reference guides>Intalio|BPMS Connector for JDBC - Paste mysql-connector-5.0.4. jar file under [intalio-bpms-server]\repository\com\intalio\bpms\pxe\5.1.2\pxe-5.1.2.war\WEB-INF\lib
Note: You can obtain the jar file from [intalio-bpms-server]\repository\mysql\mysql-connector\5.0.4
Process Deployment & Execution:
- Click on Deploy Project to Intalio|BPMS Server button in tool bar.
- Make sure you select all runtime files while exporting to Intalio|BPMS Server.
- Click on Finish button.
- Open a web browser, provide url as: http://localhost:8080/ui-fw which takes to login screen for workflow.
- Login with the following credentials:
username: ‘examples\ewilliams’ (without quotes).
password: ‘password’ (without quotes). - Go to Processes tab and click on “pipaform-init process Foreach/foreachprocess with form pipaform.xform”.
- This should generate a form with an input field to map input data.
- Type Name in Name field and Designation in Designation field then click on Start Process button.
- This will take you to the Tasks tab.
- Click on Refresh button and click on “Response” link available under Tasks Tab.
- The form will display the result as:
Name User is Valid [If user name entered is available in database].
Name User is Invalid [If user name entered is unavailable in database]. - Click on “Complete” button to complete the process.
