Module 41 Transient Business Components and Branching
Module 41 Transient Business Components and Branching
Module 41 Transient Business Components and Branching
0 Essentials
1 of 25
Module Objectives
To describe the role of transient business components and task applets To configure branching logic in a task
3 of 25
User-Entered Data
Is typically persistent
Maps immediately to regular business component fields Is written to the database during or at the end of the task flow
May be transient
Is entered and then referenced in a subsequent step in the task flow Does not need to be stored persistently
4 of 25
5 of 25
components
Example: an applet that needs to show some quote and order fields
6 of 25
Task Applet
Is a special type of applet used to display and collect transient
data
Maps to a transient business component Displays data from only that business component
Can be assigned only to a task view
Task Applet
7 of 25
Task Applet
Differs from standard applets
Is always a form applet displaying a single record Must be based on grid Web templates Applets do not display an applet title or applet menu Is based on a specialized class: CSSSWEFrameTask
8 of 25
Branching in a Task
Task UI framework supports branching (in a task) based on user
input Input can be persistent data such as the account type Is implemented by configuring a decision point step
Follow the same procedure as in a workflow process
9 of 25
Branching in a Task
Input can also be transient data, such as the selection that the
user makes when presented a choice about the next step Requires the use of a transient business component Is implemented by configuring a decision point step
10 of 25
2. Create a Picklist
3. Create the Transient Business Component 4. Create the Task Applet 5. Create the Task View 6. Configure the Decision Point Step
11 of 25
choice Add a decision point step to evaluate the users choice Add connectors to implement the desired business flow
Example of direct branching
Task View to allow user to make choice Decision point to evaluate step
12 of 25
Loop that adds an activity and then asks user to choose again
13 of 25
2. Create a Picklist
A picklist is required when the user is presented a set of choices Select an existing picklist if available Alternatively create a new picklist
Represent the choices as members of a List Of Values type Configure the PickList object
14 of 25
business component
Should use the wizard since it assigns required values to multiple TBC properties
15 of 25
Assign name, type, and length as required Do not assign a column Will be assigned automatically after the record is saved
If required, assign the picklist
16 of 25
Identify the transient business component Identify the task in which the applet will be used Select the TBC field(s) that are to be displayed
17 of 25
Displays the members of the underlying list of values (LOV) Allows users to select a value by clicking a radio button
For other fields, manually change the HTML type to the desired
value Reposition and/or resize the label and control for each field
18 of 25
Assign zero or more regular applets as required Assign the task applet Selection is restricted to task applets assigned to the task
Select and position the Playbar applet Alternatively, add the task applet to an existing task view
19 of 25
20 of 25
and select Edit Conditions Select TBC, field, and desired value for this branch
21 of 25
on) For each task view step, bind the corresponding task view
Remember to set the Forward Button Type to Next
Assign each step to a chapter Compile all new and modified objects
22 of 25
Invoke the task in the client and verify that the task applet
23 of 25
Module Highlights
Tasks may include transient data
Data entered by users that does not need to be stored once the task completes
A transient business component is required to store data
entered by a user that is not required after the task completes A task applet is required to display data stored in a transient business component A task can include branching based on user entered values including transient data Branching requires adding a decision point step to the task flow
24 of 25
Lab
In the lab you will:
25 of 25