Programming Workflow Activity Guide-1
Programming Workflow Activity Guide-1
Programming Workflow Activity Guide-1
Activity Guide
n l y
e O
U s
A I
O
l &
na
D18544GC10
te r
1.0
July 2004 I n
D41910
c le
r a
O
Copyright © 2004, 2005, Oracle. All rights reserved.
This document contains proprietary information and is protected by copyright and other intellectual property laws. You may
copy and print this document solely for your own use in an Oracle training course. The document may not be modified or
altered in any way. Except where your use constitutes "fair use" under copyright law, you may not use, share, download,
upload, copy, print, display, perform, reproduce, publish, license, post, transmit, or distribute this document in whole or in part
without the express authorization of Oracle.
The information contained in this document is subject to change without notice. If you find any problems in the document,
please report them in writing to: Oracle University, 500 Oracle Parkway, Redwood Shores, California 94065 USA. This
document is not warranted to be error-free.
If this documentation is delivered to the United States Government or anyone using the documentation on behalf of the United
States Government, the following notice is applicable:
Oracle, JD Edwards, and PeopleSoft are registered trademarks of Oracle Corporation and/or its affiliates. Other names may be
trademarks of their respective owners.
n l y
e O
U s
A I
O
l &
n a
te r
I n
c l e
r a
O
CONTENTS
Lesson 7
l y
Designing Workflow Data Structures............................................................................21
Activity 5: Designing the Credit Limit Workflow Data Structures ...............................22
n
Lesson 8
e O
Creating a Workflow Process in OMW.........................................................................25
Lesson 9
U s
Activity 6: Creating the Credit Limit Workflow Object................................................26
&
Activity 8: Designing Tasks for the Credit Limit Approval Process.............................32
l
Lesson 11
a
Designing Workflow Transitions and Conditions ........................................................39
n
Activity 9: Creating Transitions and Transition Conditions..........................................40
Lesson 12
te r
Attaching a Workflow Process to an Application ........................................................45
I n
Activity 10: Attaching the Credit Limit Workflow to an Application ........................46
Lesson 13
c l e
Setting Up Distribution Lists..........................................................................................51
Activity 11: Setting Up a Credit Limit Distribution List.............................................52
Lesson 14
r a Designing Recipient Rules and Conditions ...................................................................59
O
Lesson 15
Activity 12: Designing Recipient Rules and Conditions.............................................60
n l y
e O
U s
A I
O
l &
n a
te r
I n
c l e
r a
O
Programming Workflow
• Typographical conventions.
• Visual cues.
• Currency codes.
Typographical Conventions
This table contains the typographical conventions that are used in this guide:
Typographical Convention
Bold
Description
n l y
Indicates PeopleCode function names, method names, language
Italics
s
Indicates field values, emphasis, and PeopleSoft or other book-
U
length publication titles. In PeopleCode syntax, italic items are
A I
placeholders for arguments that your program must supply.
We also use italics when we refer to words as words or letters as
KEY+KEY O
letters, as in the following: Enter the letter O.
Indicates a key combination action. For example, a plus sign (+)
l & between keys means that you must hold down the first key while
you press the second key. For ALT+W, hold down the ALT key
te
“ ” (quotation marks)
r Indicates a PeopleCode program or other code example.
Indicate lesson and chapter titles in cross-references and words that
c l e
. . . (ellipses) Indicate that the preceding item or series can be repeated any
number of times in PeopleCode syntax.
Visual Cues
Training courses contain the following visual cues.
Notes
Notes indicate information that you should pay particular attention to as you work with
the PeopleSoft system.
If the note is preceded by Important!, the note is crucial and includes information that
concerns what you must do for the system to function properly.
Warnings
n l
Warnings indicate crucial configuration considerations. Pay close attention to warning
messages.
y
Warning! Example of a warning.
e O
Cross-References
U s
A I
Training guides provide cross-references either under the heading “See Also” or on a
separate line preceded by the word See. Cross-references lead to other documents, such
O
as PeopleBooks, that are pertinent to the immediately preceding documentation.
Example:
l &
n a
te r
Example of cross-reference to a PeopleBook
I n
Currency Codes
c l e
r a Monetary amounts are identified by the ISO currency code. The following currency
codes appear in this guide:
O •
•
USD (U.S. dollars)
EUR (Euro)
Course Overview
This lesson has no activities.
n l y
e O
U s
A I
O
l &
n a
te r
I n
c l e
r a
O
Notes
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
l y
______________________________________________________________________
n
O
______________________________________________________________________
e
s
______________________________________________________________________
U
I
______________________________________________________________________
A
O
______________________________________________________________________
l &
______________________________________________________________________
n a
r
______________________________________________________________________
te
I n
______________________________________________________________________
cle ______________________________________________________________________
r a ______________________________________________________________________
O ______________________________________________________________________
Technology Overview
This lesson has no activities.
n l y
e O
U s
A I
O
l &
n a
te r
I n
c l e
r a
O
Notes
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
l y
______________________________________________________________________
n
O
______________________________________________________________________
e
s
______________________________________________________________________
U
I
______________________________________________________________________
A
O
______________________________________________________________________
l &
______________________________________________________________________
n a
r
______________________________________________________________________
te
I n
______________________________________________________________________
cle ______________________________________________________________________
r a ______________________________________________________________________
O ______________________________________________________________________
n l y
e O
U s
A I
O
l &
na
te r
I n
c l e
r a
O
Slide 37 _______________________________________________________________________________________________________
Activity Overview
Questions and Answers
Answer the following questions about business process reengineering and workflow
automation:
Question Answer
Why should a company analyze its business
processes before implementing a workflow
management system?
What is the first step in process reengineering?
Give an example of a business process.
What is an organization schematic?
n l y
What are some of the common criteria for evaluating
the performance of a business process?
e O
After completing process reengineering, processes
that have many manual steps are likely candidates
U s
for workflow automation.
1. True
A I
2. False
O
streamline business processes?
l &
In general, how does workflow management
n a
te r
This concludes the activity. Do not continue.
I n
c l e
r a
O
n l y
e O
U s
A I
O
l &
na
te r
I n
c l e
r a
O
Slide 44 _______________________________________________________________________________________________________
Activity Overview
The credit department wants to monitor requests to change a customer’s credit limit.
When a credit limit is increased or decreased, the credit manager for the account is asked
to accept or reject the change. If the credit limit change is approved, the database is
updated and notification is sent to the originator that the change was approved. If the
change was not approved, the originator is notified that the change was rejected.
Examine the Credit Limit workflow process diagram below and answer the questions that
follow:
n l y
CREDIT LIMIT APPROVAL
Enter Workflow Send Message to Approver
e O PROCESS
U s
Approve
A I Reject
l &
n a
te r
Send "Accepted" Message to
Originator
I n
Diagram of the Credit Limit Approval workflow process
cl e
Answer these questions:
O ra Question
What is the triggering event that starts the Credit
Limit workflow process?
Answer
Question Answer
What is the triggering event that starts the Credit
Limit workflow process?
Are there any transition conditions (conditional
logic) that affect the path the workflow will take?
If so, what are they?
n l y
e O
U s
A I
O
l &
n a
te r
I n
c l e
r a
O
Notes
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
l y
______________________________________________________________________
n
O
______________________________________________________________________
e
s
______________________________________________________________________
U
I
______________________________________________________________________
A
O
______________________________________________________________________
l &
______________________________________________________________________
n a
r
______________________________________________________________________
te
n
______________________________________________________________________
I
cl e______________________________________________________________________
r a ______________________________________________________________________
O ______________________________________________________________________
n l y
e O
U s
A I
O
l &
na
te r
I n
c l e
r a
O
1. Create a project.
Slide 53 _______________________________________________________________________________________________________
Activity Overview
All development in PeopleSoft EnterpriseOne is done within the context of a project.
Because you will be developing a new Credit Limit workflow process in the activities
that follow, you need to create an OMW project for the new workflow object. The project
will also contain all the other objects that you create or modify for the Credit Limit
workflow.
The system administrator has defined Object Management Workbench to function in this
way:
• New projects are named sequentially (beginning with 101) as follows: TRN<last two
•
digits of your user ID>101.
A
O
Important! The classroom workstations are set up to replicate a real business
environment. Therefore, everyone is completing this course in a shared database; any
l &
changes that you make could affect the entire class. Please do not make any changes in
the database unless instructed to do so in an activity or by the instructor.
n a
activity.
te r
Note. Use STA<last two digits of your user ID> for the user name and password in this
Creating a Project I n
c l e
To create a project:
4. Under the Object Management Workbench section of the Add EnterpriseOne Object
to the Project form, select the OMW Project option.
U s
9. Select the Attachments tab.
A I
O
10. Enter the following information: This project was created to add the Credit Limit
Approval workflow process.
l &
Adding an Owner to the Project
n a
r
To add an owner to the project:
te
I n
1. Expand the new project to reveal the Objects and Owners nodes.
c l e
3. Enter the following information on the Search tab:
O Category
Search Type
Owners
User ID
Search STA1* (TCA1* for instructor)
5. Move your user ID into the project by clicking the Add Object or User to Project
arrow.
6. On the Add User to Project form, use the visual assist to select the developer role
(02).
1. Focus on the project ID: TRN<last two digits of your user ID>101.
3. On the Confirm Status Change form, use the visual assist on the blank field to select
the programming status: 21.
n l y
e O
U s
A I
O
l &
n a
te r
I n
c l e
r a
O
n l y
e O
U s
A I
O
l &
na
te r
I n
c l e
r a
O
Slide 62 _______________________________________________________________________________________________________
Activity Overview
Review the Credit Limit Approval diagram in Activity 2 and answer these questions:
Question Answer
How many messages are there in the Credit Limit
Approval workflow process diagram?
Describe the purpose of each workflow message.
In the TRN<last two digits of your user ID>101 project, create the required message
templates for the Credit Limit Approval workflow process. Use variables in each
message, if appropriate, to provide specific data regarding:
e O
U
sequentially through the alphabet for additional messages:s
Name the messages as follows, starting with A for the first message, and continuing
• I
LM553<last two digits of your user ID>A for the first message.
A
•
O
Follow the same naming convention for subsequent messages, using the letters B, C,
and so on, at the end of each name.
l &
n a
te r
Important! The classroom workstations are set up to replicate a real business
environment. Therefore, everyone is completing this course in a shared database; any
changes that you make could affect the entire class. Please do not make any changes in
I n
the database unless instructed to do so in an activity or by the instructor.
cl e
Note. Use STA<last two digits of your User ID> for the user name and password in this
activity.
r a
O
Designing Message Templates for the Credit Limit Approval Workflow Process
To design message templates for the Credit Limit Approval workflow process, access
OMW:
2. Click Add.
3. On the Add EnterpriseOne Object to the Project form, select Data Item and then click
OK.
4. On the Data Dictionary Item Type form, click Yes to create a glossary data item.
e O
U s
A I
6. On the Item Glossary tab, enter text that is similar to the following information:
The credit limit for customer &1, &2, was changed from &3 to &4 on &5 by &6.
O
Your approval is required for this change to take effect.
&
7. Click OK to return to the OMW.
l
a
8. The LM553<last two digits of your user ID>A message should now be listed as an
n
te r
object under the Credit Limit Approval project.
I n
To create the credit limit accepted message:
cl e
1. Select the Objects node of the Credit Limit Approval project.
O ra 2. Click Add.
3. On the Add EnterpriseOne Object to the Project form, select Data Item and then click
OK.
4. On the Data Dictionary Item Type form, click Yes to create a glossary data item.
6. On the Item Glossary tab, enter text that is similar to the following information:
The credit limit for customer &1, &2, has been approved for &3.
8. The LM553<last two digits of your user ID>B message should now be listed as an
object under the Credit Limit Approval project.
2. Click Add. n l y
e O
3. On the Add EnterpriseOne Object to the Project form, select Data Item and then click
OK.
U s
4. On the Data Dictionary Item Type form, click Yes to create a glossary data item.
l&
Alias LM553<last two digits of your user ID>C
Glossary Group
n a Y
Product Code
t e r
Product Reporting Code
55
55
I n
Description Credit Limit Change Rejected
c l e
Error Level 3
r a 6. On the Item Glossary tab, enter text that is similar to the following information:
O The credit limit change to &1 for customer &2, &3, has been rejected.