Tuesday Jul 02, 2013

Navigational Flows in Web Forms

Navigation flows in the Web UI is a common requirement. In 11.1.1.7 we do not have out of the box support for navigational flows but this is surely on our road-map.Until then this simple approach might meet some of the requirements. In this sample we use a trigger control and Web Form rules show navigation flow for Customer, Orders and Line Items.

Start by creating  a new Web Form and adding 3 tabs as Customer,Order,Line Items.Add the elements to each tab.

Change the visibility for Order and Line Items to false

Tab1 : Customer

Tab 2 : Order

Tab 3 : Line Item

N    Notice we have added trigger controls for Next & Back Buttons.

       Now write form rules to change the visibility and selection of tabs based on the clicks of trigger

You can now navigate through the forms using the trigger control.


a

So Solution to this sample can be downloaded from here.

Reusing Web Forms across BPM Roles

Recently Varsha(another BPM Product Manager) approached me with a requirement where she wanted to reuse same Web Form for different task activity.We both knew this is easily achievable.The human task outcomes can differ to distinguish the submission based on roles.Her requirement was slightly more than this, she wanted to hide some data based on the logged in user. If you have worked on Web Form rules, dynamically showing and hiding data is common requirement and easily achievable using Form Rules. In this case the challenge was accessing BPM role inside the Web Form. Although, will be addressing this requirement in future release she wanted a immediate solution(Aha, after all customers are not the only one's who can not wait). Thankfully we managed to come-up with a solution and I hope this will be helpful to larger audience.

Solution has 3 steps :

Step 1: We added a hidden attribute in our form (Role). The purpose of this attribute is just to store the current logged in user's role and we pass the value during data association.

Step 2 : In your data association step, pass the role value based on the Swimlane

Step 3 : Now use this hidden attribute value in your Web Form rule for dynamic behavior


Detailed steps and sample can be downloaded from Java.net.


About

Technical and in-depth articles and samples on BPM 11g.

Search

Archives
« July 2013 »
SunMonTueWedThuFriSat
 
1
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
   
       
Today