Before You Begin
This 15-minute tutorial shows you how to create tables to display processes and tasks.
Background
In Visual Builder, a tab set component allows you to create two tables, one for processes and one for tasks. Only one table is visible at any one time. Beneath the tasks table, a text element displays the contents of the message used in the message start event for a specific task. A Refresh button updates the table data.
What Do You Need?
- Access to Oracle Integration
- A supported browser
- Completion of the previous tutorials in this Learning Path
Create
a Tab Set to Display Processes and Tasks
- On the main-start page, drag a Button from the Common components to below the horizontal rule you created at the end of the previous tutorial.
- In the General tab of the Properties
pane, enter
Refresh
in the Text field. You'll create an action chain for the button later. - From the Layout components, drag a Tabs with
Content component under the button.
Description of the illustration vbpb7_sec1_s3.png - Click the Tab Bar component, then under Tabs in the Properties pane,
change Tab 1 to
Processes
and Tab 2 toTasks
. Click the Deleteicon for Tab 3 to delete it.
Description of the illustration vbpb7_sec1_s4.png
Create
a Table to Display Processes
- Click the Processes tab of the tabset if it isn't already selected.
- From the Collection components, drag a Table
to just under the Processes tab, into the Standard
Layout component in the Grid Row in
Switcher Slot area.
Description of the illustration vbpb7_sec2_s2.png - Click Add Data to use a quick start to
populate the table.
Description of the illustration vbpb7_sec2_s3.png - On the Locate Data page of the quick start, select the process
instance icon under Process Objects,
and then click Next.
Description of the illustration vbpb7_sec2_s4.png - On the Bind Data page, select the id, label,
and state check boxes, in that order. From
the Primary Key drop-down list, select id
if it isn't already selected. Click Next.
Description of the illustration vbpb7_sec2_s5.png - On the Define Query page, expand the parameters
node under Target and select alias.
Description of the illustration vbpb7_sec2_s6.png - Enter
["TravelProcess"]
in the expression area at the bottom. Select the Expression option. Click Finish.Description of the illustration vbpb7_sec2_s7.png This string value is substituted for the
processInfo.processId
variable in each task title that you specified in Processes in Oracle Integration.The table is empty, since you didn't create any processes in the first module.
Create
a Table to Display Tasks
- Click Live, select the Tasks tab, then click Design to return to design view.
- From the Collection components, drag a Table to just under the Processes tab, into the Standard Layout component in the Grid Row in Switcher Slot area, just as you did in the previous section.
- Click Add Data to use a quick start to populate the table.
- On the Locate Data page of the quick start, select the task icon under Process Objects, and then click Next.
- On the Bind Data page, select the id, label, and state check boxes, in that order. From the Primary Key drop-down list, select id, if necessary. Click Next.
- On the Define Query page, expand parameters under Target and select alias.
- Enter
["TravelProcess"]
in the expression area at the bottom. Select the Expression option. Click Finish. - Click the table and the Quick Start tab
if necessary, and then click the Add Task Actions
quick start. (If you don't see the Add Task Actions
quick start right away, click another tab, and then click the
Quick Start tab again. If you still don't see it, try refreshing your browser.)
Description of the illustration vbpb7_sec3_s8.png - On the Configure Task Actions page, click Finish
to accept the default settings.
Description of the illustration vbpb7_sec3_s9.png The Tasks table now has a Choose an Action drop-down list and a Submit button next to it. Both are disabled.
Description of the illustration vbpb7_sec3_s9_result.png - Click the Variables tab. In addition to the variables created for the task actions
and the tab set, you can see the Process Data Provider
variables created for the two tables:
processInstanceListPDP
andtaskListPDP
. Don't worry if the list doesn't look exactly like the one shown.
Description of the illustration vbpb7_sec3_s10.png
Create
a Text Area to Display Message Data
- On the Variables page, click + Variable to add a new page variable to display the message contents.
- Enter
taskDescription
in the ID field, accept the default String type, and click Create. - Click the Page Designer tab.
- From the Common components, drag a Text
component just under the table, but still within the Tabs
with Content component. This is tricky, because the
drop target is narrow.
Description of the illustration vbpb7_sec4_s4.png - By default, the Text component takes up
two grid columns. Select and drag the right handle so the component takes up 6 columns.
The Cell [2] component changes to Cell [6].
- In the Structure view, click the Bind Text component, then in the Properties pane, click the Select
Variable
icon for the Value field.
- From the Page Variables list, select taskDescription.
- Click the Tasks table, click the Events
tab, click + New Event, and select Quick
Start: 'first-selected-row'. There's already a
first-selected-row action chain; you're adding another one.
Description of the illustration vbpb7_sec4_s8.png - From the General actions list, drag an Assign Variables action to the + sign.
- Click the Assign link next to Variables.
- Drag rowData from the Sources side to taskDescription on the Target side.
- In the Expression area, add
.description
after$variables.rowData
. The expression is$variables.rowData.description
Description of the illustration vbpb7_sec4_s12.png In Visual Builder, this
description
attribute is mapped to theexecData.longsummary
that you configured in Processes in Oracle Integration. - Click Save.
Configure
the Refresh Button
- Click the Page Designer tab to return to the main-start canvas, and then click the Refresh button.
- Click the Events tab if necessary, then click + New Event. From the menu, select Quick Start: 'ojAction'.
- From the General actions list, drag a Fire Data Provider Event action to the + sign.
- Under Type, select the Refresh
option. Click the Select Variable
icon for the Event Target field.
- From the Page Variables list, select processinstanceListPDP.
Description of the illustration vbpb7_sec5_s5.png - From the General list, drag another Fire Data Provider Event action to the + sign, under the first Fire Data Provider Event.
- Under Type, select the Refresh
option. Click the Select Variable
icon for the Event Target field.
- From the Page Variables list, select taskListPDP.
The Refresh button now fetches the current processes and tasks. This completes the page creation in Visual Builder. Click the Page Designer tab to return to the main-start page.