TutorialBusinessObject - uoForms/ebc6230-bpm GitHub Wiki
Tutorial for Complex Business Object
This tutorial explains how complex data can be created and used in the business process.
Creating Business Data
Step 1: Click on '+' under 'Data' section and select 'Business Object' from the list.
Provide valid Business Object name 'StudentInformation' and click on 'Finish'.
Step 2: Click on 'Add' button in the 'StudentInformation' business object page. Add the related data to that business object under 'Parameter' as shown in the screenshot below:
At this stage, Complex Business Data is ready.
The following section explains how this created business data can be used in the business process
Using the created Business Data in the Business Process
Step 3: Create a business process where in a student fills in his information and submits it to the professor for review.
(i) Let the business process have 2 participants say, Student and Professor (ii) The student should be provided with a form to fill in his details. The information should then be passed on to his professor for approval. (iii) The professor should be able to view the student submitted information and review the same.
Let us construct this business process using the above created complex data..
Step 1: Create a business process. Say 'Example of using Complex Data' as shown in the screenshot:
Step 2: Let us have two swimlanes. One for each participant(Student and professor).
Start constructing the business flow as shown in the screenshot below:
Variables on the process level:
Create appropriate user interfaces/human coach for each of the above shown activities.
Fill Form human interface:
Variables within the coach:
As seen here, the variable is a list and is of complex data type. It can be basically dragged and dropped onto the coach for use.
Coach view:
Review human interface:
Variables within the caoch:
As seen here, the variable is a list and is of complex data type. It can be basically dragged and dropped onto the coach for use.
Coach view:
Running the business process
Step 1: Click on 'run' button.
you will now be taken to the inspector mode as shown here:
Step 2: Select the instance and run the same. You will provided with browser interface as seen here:
(1) Student filling the form:
As seen in the screen shot, the student needs to click on '+' symbol to edit the columns.
(2) Professor reviewing the form:
As seen here, the prof would see the student information. He can check the checkbox 'Reviewed' and submit the same.
Note 1
The parameters of business object can be accessed separated. Say for Eg: You want to access only 'studentNumber' from 'StudentInformation' business object variable. This can be achieved by using: tw.local.StudentInformation.studentNumber
Note 2
A variable can be a list of business object type. Users may come across a list of items being displayed out of which 1 item needs to be selected. In such a scenario, the selected item can be obtained by using: tw.local..listAllSelected
Note 3
A variable can be a list of business object type. A parameter of such a list of business object can be accessed separated. Say for Eg: You want to access only 'studentNumber' from 'StudentInformation' business object list variable. This can be achieved by using: tw.local.StudentInformation0.studentNumber