Programming Workflow Activity Guide
Programming Workflow Activity Guide
Programming Workflow Activity Guide
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.
8. The LM553<last two digits of your user ID>C message should now be listed as an
object under the Credit Limit Approval project.
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
Slide 71 _______________________________________________________________________________________________________
Activity Overview
Create the necessary workflow data structures for the Credit Limit Approval workflow
process according to the following guidelines:
• Add both data structure objects to your TRN<last two digits of your user ID>101
project.
• Name the key data structure WF5503<last two digits of your user ID>A.
y
AN8 mnCustomerNumber AddressNumber
n l
• O
Name the additional data structure WF5503<last two digits of your user ID>B.
e
•
s
To create the additional data structure, enter the following information:
U
Data Dictionary Alias
ALPH szCustomerName
A I
Structure Member Name Data Item
NameAlpha
ACL
O
mnOldCreditLimit AmountCreditLimt
l&
UPMJ jdDateUpdated DateUpdated
APPRACT
n a cApprovalActionCode ApprovalActionCode
ANO
ALP1
t e r mnOriginatorNumber
szOriginatorName
AddNoOriginator
Kanjialpha
In
AG mnNewCreditLimit AmountGross
AN8R mnSendToAddress RelatedAddressNo
c l e CO szCompany Company
r a
O Important! Be certain that you change the structure member names in each data
structure as shown above. Changing the structure member name will make the data item
more identifiable when you create workflow tasks.
Note. Use STA<last two digits of your user ID> for the user name and password in this
activity.
1. Select the Objects node of the TRN<last two digits of your user ID>101 Credit Limit
Approval project and click Add.
2. On the Add EnterpriseOne Object to the Project form, select Data Structure and click
OK.
n l y
4. Click OK.
e O
5. On the Design Tools tab, click Data Structure Design.
U s
A I
6. Define the data structure using data dictionary alias AN8.
O
8. Save the data structure and return to OMW.
l &
9. The WF5503<last two digits of your user ID>A data structure should now be listed
a
as an object under the Credit Limit Approval project.
n
Designing an Additional Data Structure
te r
I n
To design an additional structure:
c l e
1. Select the Objects node of the TRN<last two digits of your user ID>101 Credit Limit
Approval project and click Add.
r a 2. On the Add EnterpriseOne Object to the Project form, select Data Structure and click
O OK.
4. Click OK.
6. Define the data structure using the following data item aliases: ALPH, ACL, UPMJ,
APPRACT, ANO, ALP1, AG, AN8R, CO.
Important! Be certain that you change the structure member names in the data
structure. Changing the structure member name will make the data item more
identifiable when you create workflow tasks.
n l y
e O
U s
A I
O
l &
na
te r
I n
c l e
r a
O
Slide 78 _______________________________________________________________________________________________________
Activity Overview
Before you can develop a workflow process, you must create a workflow object in
OMW. When you create a new workflow object, you specify the key and additional data
structures that the workflow process uses.
In this activity, you will create the Credit Limit Approval workflow process in OMW and
attach the necessary key and additional data structures. Create the workflow object in the
TRN<last two digits of your user ID>101 project using the following criteria:
• Name the workflow object K5503<last two digits of your user ID>.
• Include the last two digits of your user ID at the end of the object description.
• Use WF5503<last two digits of your user ID>A for the key data structure.
•
n l y
Use WF5503<last two digits of your user ID>B for the additional data structure.
e O
describes what the workflow process does.
U s
After creating the workflow object, enter information on the Attachments tab that
activity. A I
Note. Use STA<last two digits of your user ID> for the user name and password in this
O
l &
Creating a Workflow Object in OMW
n a
te r
To create a workflow object in OMW:
I n
1. On OMW, select the Credit Limit Approval project and click Add.
c l e
2. On Add Object to the Project, click Workflow Process under the Workflow heading
and then click OK.
r a 3. To add workflow process K5503<last two digits of your user ID>. enter the
O following information:
5. Add information similar to the following on the Attachments tab to describe what the
workflow process does:
A user changes a customer’s credit limit in the Customer Master (P0301) on menu
G03B11. This is the triggering event for the workflow process. When the user clicks
OK, a message box appears advising that the change has been submitted for
approval. The credit limit does not change until it is approved.
A message is sent to the Accounts Receivable manager for the account, asking for
approval of the credit limit change. The message is sent to the manager’s Credit
Management mailbox in the Employee Work Center. Using an online form, the
manager has the option to either approve or reject the credit limit change.
n l y
If the manager approves the change, the Credit Limit field in the Customer Master
e O
table (F0301) will change from the old credit limit to the new credit limit. A message
is sent to the user that changed the credit limit to advise that the change was
approved.
U s
I
If the manager rejects the credit limit change, the Credit Limit field in the Customer
Master table retains the old credit limit value. A message is sent to the user that
A
changed the credit limit to advise that the requested change was not approved.
O
6. The K5503<last two digits of your user ID> Credit Limit Approval workflow process
&
should appear under the Credit Limit Approval project.
l
a
This concludes the activity. Do not continue.
n
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
Slide 89 _______________________________________________________________________________________________________
Activity Overview
Open the K5503<last two digits of your user ID> workflow in Workflow Modeler.
Explore the features of Workflow Modeler and then answer the following questions:
Question Answer
In Workflow Modeler, locate the Object Creation
Tools toolbar. What is the purpose of the toolbar?
How can you find out what each icon represents?
List the available icons in the order that they appear
from top to bottom on the toolbar.
Note: Do not list icons that are unavailable for
selection, because they are not available.
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
Activity Overview
Review the Credit Limit Approval diagram in Activity 2. Based on the information in the
diagram, create the following four tasks in the K5503<last two digits of your user ID>
Credit Limit Approval workflow. Name the tasks as shown in the following table:
After you have created all four tasks, configure them with the required information. n l y
e O
Note. Use STA<last two digits of your user ID> for the user name and password in this
activity.
U s
A I
Creating Tasks for the Credit Limit Approval Process
O
l &
1. In OMW, select the K5503<last two digits of your user ID> Credit Limit Approval
a
workflow process and click the Design Tools button.
n
te r
2. On the Workflow Design form, select the Design Tools tab, and then click Start
Workflow Modeler.
I n
Creating the APPROVE Task
c l e
The Approve task sends a message to the credit manager asking for approval of the credit
limit change.
2. Drop the task onto the diagram by clicking anywhere in the diagram.
4. Click OK.
e
The Workflow Task Revisions form appears.
U s
3. On the Workflow Task Revisions form, enter the following information:
Field
A I
Value or Status
Process
O K5503<last two digits of your user ID>
l&
Version 1
Task
Description
n a UPDATE
Update Credit Limit
Category Code 1
t e r Blank
In
Category Code 2 Blank
Category Code 3 Blank
r a
O 4. Click OK.
2. Drop the task onto the diagram by clicking anywhere in the diagram. The Workflow
Task Revisions form appears.
4. Click OK. n l y
The Accept task appears in the Workflow Modeler diagram.
e O
Creating the REJECT Task
U s
limit change.
A I
The Reject task sends a message to the credit manager asking for approval of the credit
O
1. In Workflow Modeler, click the Message icon.
l &
2. Drop the task onto the diagram by clicking anywhere in the diagram.
a
The Workflow Task Revisions form appears.
n
te r
3. On the Workflow Task Revisions form, enter the following information:
Field
e
Process In Value or Status
K5503<last two digits of your user ID>
c l Version 1
O ra Task
Description
REJECT
Send Rejected Message to Originator
Category Code 1 Blank
Category Code 2 Blank
Category Code 3 Blank
4. Click OK.
1. In Workflow Modeler, right-click the Approve message task that you added to the
diagram, and then select Event Rules.
U s
Active
A I
<Define Active Message> Find and select application
P98805, Form W98805A
Pass the following value:
O BF cApprovalActionCode Æ
l & cCommentRequired
n a
te r
I n
c l e
r a
O
3. Click OK.
n l y
To configure the UPDATE task:
e O
1. In Workflow Modeler, right-click the Update business function task that you added to
the diagram, and then select Event Rules.
U s
Select.
A I
2. On the Business Function Search form, find source module N03B0159 and then click
O
3. On the Business Functions form, map the parameters by entering the following
information:
Value
l & Dir Data Item
BF mnCustomerNumber
n a Æ mnCustomerNumber
te r
BF mnNewCreditLimit Æ mnNewCreditLimit
I n
BF szCompany Æ szCompany
c l e
r a 4. Click OK.
1. In Workflow Modeler, right-click the Accept message task that you added to the
diagram, and then select Event Rules.
e O
3. Click OK.
U s
Configuring the REJECT Task
A I
To configure the Reject task, you must define the contents and the recipients of the
message.
O
l &
To configure the REJECT task:
a
1. In Workflow Modeler, right-click the Reject message task that you added to the
n
te r
diagram, and then select Event Rules.
I n
Field Value Additional Information
cl e
Recipient BF mnOriginatorNumber
ra
Structure Type <Single Recipient>
Mailbox <Electronic Workbench>
O Subject
Text
<Blank>
<Blank>
Active <None>
3. After you have defined and configured all the tasks for the Credit Limit Approval
workflow process, save your changes and exit Workflow Modeler.
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
• Locate transitions and transition conditions in the Credit Limit Approval workflow
process.
Activity Overview
Review the Credit Limit Approval diagram to determine the sequence of tasks and to
locate transition conditions:
e O
Approve
U sReject
l &
a
Send "Accepted" Message to
n
te r Originator
I n
In Workflow Modeler, move each task to a location in the workspace that corresponds
c l e
with the Credit Limit Approval diagram. Create the necessary transitions between the
tasks to complete the process flow.
r a Create two transition conditions in your K5503<last two digits of your user ID> Credit
O Limit Approval workflow. For the transition condition properties, enter the following
information:
Rule Description
IFAPPROVED If credit limit change is approved
IFREJECTED If credit limit change is rejected
Attach each transition condition to the appropriate transition in the workflow process.
Consider the following information when defining the event rule logic for each transition
condition.
When you configured the Approve message task in Activity 8, you specified that the
message sent to the approver is the Generic Approval form (P98805, W98805A). The
Generic Approval form has two radio buttons: Accept and Reject. These radio buttons
represent action codes A and R respectively. The data item for the action code in the
additional data structure attached to the workflow process is cApprovalActionCode.
The IFAPPROVED and IFREJECTED task transitions appear as part of the workflow
diagram when you complete the transition conditions.
After you have added the transition conditions, validate the workflow process. If there are
errors, correct them until the “Workflow is VALID” message appears.
Note. Use STA<last two digits of your user ID> for the user name and password in this
activity.
e O
U s
K5503xx
A I
Change Credit Limit
Triggering Event
n a
te r
If Approval Action Approve Reject If Approval Action
I n
Code is equal to A Code is equal to R
r a in Database
The diamond in the middle of the diagram is the decision point, with Approve and Reject
being the two choices. If the credit manager selects the Approve radio button on the
Generic Workflow Approval form, the event rules in the application assign A as the
action code. Alternatively, if the credit manager selects Reject, the event rules assign an
R as the action code.
2. On Workflow Design, click the Design Tools tab, and then click the Start Workflow
Modeler option.
4. Connect the tasks by clicking the Transition icon on the toolbar. Click and drag the
mouse from the task at which you want to the transition to originate to the next task
in the process.
IFAPPROVED
1. Create and attach the IFAPPROVED transition condition by right-clicking the
n l y
transition between the Approve task and the Update task and then selecting Add and
Attach.
e O
s
2. To complete the Process Rule Revisions form, enter the following information:
U
Field
Process
A IValue or Status
K5503<last two digits of your user ID>
Version
O 1
Rule
Description
l & IFAPPROVED
If Credit Limit Change is Approved
Category Code 1
n a Blank
Category Code 2
te r Blank
I n
Category Code 3 Blank
c l e
3. To complete the Criteria Design form, enter the following information:
r a
O Operator
If
Left Operand
BF cApprovalActionCode
Comparison
Is equal to
Right Operand
A
IFREJECTED
1. Create and attach the IFREJECTED transition condition by right-clicking the
transition between the Approve task and the Reject task and then selecting Add and
Attach.
2. To complete the Process Rule Revisions form, enter the following information:
n l y
4. Click OK twice to return to Workflow Modeler.
e O
Results
U s
A I
After adding the IFAPPROVED and IFREJECTED transition conditions, the Credit
Limit Approval workflow diagram should appear similar to this illustration:
O
l &
n a
te r
I n
c l e
r a Workflow process with tasks, transitions, and transition conditions
O 5. Save the Credit Limit Approval workflow process and then exit Workflow Modeler.
2. If the version contains no errors, the message “Workflow is Valid” appears. This
message means that you can now attach the workflow process to an application.
3. If the version contains errors, a dialog box appears with a list of errors. Click Start
Workflow Modeler to open the version in Workflow Modeler and correct the errors.
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
Activity Overview
In the Customer Master application (P03013), the CREDLIMIT workflow process is
started by the Customer Master master business function, N0100042. This business
function is included in the event rules for the Customer Master (P03013) application. You
will examine how the workflow process is defined in the business function and where the
business function is called in the application.
To complete this activity, activate the K5503<last two digits of your user ID> workflow
process so that you will be able to use it with the Start Process system function later in
the activity.
Find business function N0100042 and interactive application P03013 in OMW and move
them into your project.
n l
In the event rules for N0100042, locate the Start Process event rules that start the
CREDLIMIT workflow (there are two occurrences). Disable both occurrences and
y
e O
replace each of them with a Start Process event rule that starts the K5503<last two digits
of your user ID>. When you exit the business function, do not save your changes because
s
performing these steps in the activity is for demonstration purposes only.
U
A I
Important! Because of logic in the N0100042 business function that is specific to the
CREDLIMIT workflow process, you cannot replace the CREDLIMIT workflow with
O
your K5503<last two digits of your user ID> workflow process and have it function
successfully. In addition, any change to a business function requires a package build to
l &
update the server and then deploy those changes to the clients. Consequently, the
following activity illustrates how to enable a workflow process in an application, but you
cannot save your changes.
n a
te r
Access the event rules for interactive application P03013 and locate the following event
n
rules:
I
c l e
•
•
The call to N0100042 (there are two occurrences).
The call to the Generic Workflow Forms application to send the Pending Notification
r a form (WF98805A).
O After locating the event rules, perform the following actions to complete the activity:
• Inactivate the K5503<last two digits of your user ID> workflow process.
Note. Use STA<last two digits of your user ID> for the user name and password in this
activity.
1. Click K5503<last two digits of your user ID> and click Design.
2. From the Design Tools tab, click Change Workflow Status to activate your process.
1. Search for the N0100042 object and move it into the Credit Limit Approval project.
2. Click Design.
It is not necessary to check out the business function because performing the
following steps in the activity is for demonstration purposes only.
3. On the Design Tools tab, click Start Business Function Design Aid.
n l y
4. Disable the current Start Process for CREDLIMIT as follows:
e O
s
a. On Business Function Design, select the row with the N0100042 record.
U
b. From the Form menu, select Edit.
A I
c. Find the two Start Process entries and click Disable.
O
The process exists in two places, so disable both of them.
l &
5. Attach system function Start Process for your credit limit process (K5503<last two
a
digits of your user ID>). Start Process needs to be added in the two places you
n
te r
disabled the original CREDLIMIT process.
r a 6. On System Functions, for the process name click, <Choose Process> in the Available
O Objects box.
a. On Process Search & Select, find the K5503<last two digits of your user ID>
process.
b. When the K5503<last two digits of your user ID> process appears in the grid,
click Select.
c. Click OK.
O
c. Click OK.
l &
n a
9. Copy the Start Process event rule to the second place where you disabled the original
te r
CREDLIMIT process.
I n
11. Since this was for demonstration purposes only, exit without saving your changes.
c l e
Note. Normally, you would have to rebuild the business function to incorporate your
r a changes. Since you did not save your changes, this step is not necessary.
O 12. In OMW, search for P03013 and add it to your project. Select Design. It is not
necessary to check out the application because you will not be making any changes.
15. In the OK button event rules, access the Button Clicked and Post Button Clicked
event rules and locate the N0100042 Customer Master business function. You can
find the business function in the event rules by selecting Edit from the event rule
menu bar and then using the Find feature to search for the word Customer.
16. The call to the Pending Notification form is attached to the OK button, Post Button
Clicked event. You can find it in the event rules by searching for P98805.
17. Exit the P03013 application without saving changes and return to OMW.
18. Because you will not be using the K5503<last two digits of your user ID> Credit
Limit Approval process, inactivate it using the following steps:
a. Click K5503<last two digits of your user ID> and then click Design.
b. From the Design Tools tab, click Change Workflow Status to make the process
inactive.
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 &
______________________________________________________________________
na
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
Activity Overview
The Accounts Receivable department wants to monitor the credit limit changes on
customer accounts. Currently anyone in the department can make a credit limit change to
a customer’s account without following a process or procedure. Consequently, the Chief
Financial Officer has established the following criteria for approval of credit limits.
• The Accounts Receivable Manager must approve all credit limit changes over 3,000.
• The Controller must approve all credit limit changes over 10,000.
n l y
•
O
The Chief Financial Officer must approve all credit limit changes over 50,000.
e
•
s
Authorization is required for all credit limit increases.
U
Only one approval is required at each level, however, a higher-level group can approve a
A I
credit limit change without prior approval from lower level groups.
l &
Accounts Receivable Supervisors:
Address Book Number
James Kellerman
n a 5055
Matthew Moore
te r
Accounts Receivable Manager:
5057
I n
Michael Josephson 4800
c l e
Controller:
Abigail Rothchild 5651
Create a distribution list for the Accounts Receivable department. To accomplish this,
perform the following tasks:
1. Add new address number 111<last two digits of your user ID> for the Accounts
Receivable department, assigning search type M.
2. Add a new distribution list structure type named C<last two digits of your user ID>.
3. Create a new distribution list for group processing according to the information given
above.
1. To create an address book record for the Accounts Receivable department in Address
Book Revisions, access the Work With Addresses form, and enter the following
information:
e O
2. Click OK.
U s
A I
Note. Ignore the warning message for the Payables field on the Additional tab.
3. Click OK again. O
4. Click Cancel.
l &
n a
Adding a New Distribution List Structure Type te r
5. On the Work With Addresses form, click Close.
I n
cl e
Application
User Defined Codes
Navigation
EnterpriseOne Menus, Foundation Systems, Tools, System Administration
r a Tools,
3. Click Find.
4. Click Add.
5. In the last row of the detail area on the User Defined Codes form, enter the following
information:
6. Click OK.
e O
Group Revisions
s
EnterpriseOne Menus, Workflow Management, Workflow Management
Setup, Group Revisions
U
A I
O
1. On the Group Revisions form, enter the following information:
l&
Field Value or Status
Parent Number
I n
cl e
2. Click Add.
O ra 3. In the header area on the Address Parent/Child Revisions form, enter the following
information:
Results
This is the completed Accounts Receivable Department distribution list:
n l y
e O
U s
A I
O
l &
n a
te r
Accounts Receivable Depart distribution list
I n
6. Click OK to return to Group Revisions.
c l e
7. On Group Revisions, click Find.
r a 8. The distribution list tree structure should display, showing all the members.
O Results
The is how the Accounts Receivable Department distribution list appears on Group
Revisions:
9. Click Close.
Important! Because only one person will be able to change the CREDLIMIT workflow
process and activate it, the instructor adds a distribution list to the APPROVE task. The
students watch as the instructor performs these steps.
In the CREDLIMIT workflow process, the instructor changes the Recipient and Structure
Type parameters to use one of the distribution lists and structure types that were created
in the steps above. The instructor performs the following steps:
1. In OMW, search for the CREDLIMIT workflow process and add it to the Credit
Limit Approval project. n l y
2. Verify that the CREDLIMIT workflow process is not active.
e O
creating a new version number).
U s
3. Copy the CREDLIMIT process to another version (leaving the name the same, but
l &
6. Right-click the APPROVE task and select Event Rules.
n a
7. Change the recipient from BF mnSendToAddress to 111<last two digits of your user
r
ID> by selecting Literal and then typing 111<last two digits of your user ID>.
te
I n
8. Change the structure type from <Single Recipient> to <Credit Limit <last two digits
of your user ID>>.
cl e
9. Click OK to return to the Workflow Modeler workspace.
14. After the CREDLIMIT workflow has been changed, validated, and activated, the
class can test the credit limit process with the new distribution list.
Note. As you are testing, you might discover that you need to make changes to the
process. After the process is active and has instances, you cannot make changes. You
have two options:
1. Use the Copy feature in OMW to create a new version of the workflow process.
Deactivate the first version. Then make changes to the new process, activate it, and
continue testing.
2. Purge the open instances of the process by using Purge Completed Tasks and
Purge Completed Processes on menu G02311. Use Purge Completed Tasks to select
by date the instances to purge. You can also access Purge Competed Processes in
OMW from the Workflow Operations tab in Workflow Design. After the purge is
complete, you can deactivate the process, make changes, and continue testing.
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
Activity Overview
When approving credit limit changes, the accounting department has decided to route
requests according to the following set of rules:
• Rule 1: Requests to increase credit limits to 60,000 USD or higher should be sent
directly to Dominique Abbot, whose address book number is 6002.
• Rule 2: The Chief Financial Officer, Jeremy Beck, is the only person who needs to
approve credit limit changes for customer 3003, The Pacific Company. Jeremy
Beck’s address book number is 4803.
• Rule 3: All requests to change the credit limit of the International Supply Company,
address book number 4341, must be approved by the Engineering Department
l y
(address book number 7405). The Engineering Department is a distribution list that
uses group processing and has WFS as its structure type.
n
e O
Use your K5503<last two digits of your user ID> workflow process to create the
necessary recipient rules and conditions to route approval requests as described above.
U s
Although you will not be able to test the workflow process with the routing options, you
O
l &
1. In Object Management Workbench, select your K5503<last two digits or your user
ID> workflow process and click Design.
n a
2. On the Design Tools form, click Workflow Modeler.
te r
Recipient Condition 1: Credit Limits of 50,000 and Higher
I n
1. Right-click the background of the Workflow Modeler diagram, select Recipient
Conditions, and then select Add.
cl e
2. For requests to increase credit limits to 50,000 or higher, enter the following
r a information:
Results
O Field
Process
Value or Status
K5503<last two digits of your user ID>
Version 1
Results
Operator Left Operand Comparison Right Operand
If BF mnNewCreditLimit Is greater than or equal to 50000
2. For credit limit changes for customer 3003, enter the following information:
Results n l y
Field Value or Status
e O
Process
Version 1
U s
K5503<last two digits of your user ID>
Rule
A IIFCUST3003
Description
Category Code 1 O If Customer Number is 3003
Blank
Category Code 2
l & Blank
Category Code 3
n a Blank
te r
I n
3. To complete the Criteria Design form, enter the following information:
c l e
Results
r a Operator
If
Left Operand
BF mnCustomerNumber
Comparison
Is equal to
Right Operand
3003
O
4. Click OK twice to return to Workflow Modeler.
2. For credit limit changes for customer 4341, enter the following information:
Results
Field Value or Status
Process K5503<last two digits of your user ID>
Version 1
Rule IFCUST4341
Description If Customer Number is 4341
Category Code 1 Blank
Category Code 2 Blank
Category Code 3 Blank
Results
Operator Left Operand Comparison Right Operand
If BF mnCustomerNumber Is equal to 4341
n l y
e O
Designing Recipient Rules
4. Click OK twice to return to Workflow Modeler.
U s
Recipient Rule 1
A I
O
Rule 1: requests to increase credit limits to 60,000 USD or higher should be sent directly
&
to Dominique Abbot, whose address book number is 6002.
l
n a
On Workflow Modeler, right-click the APPROVE task. On Workflow Recipient Rule
Revisions, enter the following information:
Results
te r
e IFOVR50000In
Recipient Condition Address Book Number
6002
Description
Abbott, Dominique
Structure Type
c l
r a
O Recipient Rule 2
Rule 2: the Chief Financial Officer, Jeremy Beck, is the only person who needs to
approve credit limit changes for customer 3003, The Pacific Company. Jeremy Beck’s
address book number is 4803.
Results
Recipient Condition Address Book Number Description Structure Type
IFCUST3003 4803 Beck, Jeremy
Recipient Rule 3
Rule 3: All requests to change the credit limit of the International Supply Company,
address number 4341, must be approved by the Engineering Department (address book
number 7405). The Engineering Department is a distribution list that uses group
processing and has WFS as its structure type.
Results
Recipient Condition Address Book Number Description Structure Type
IFCUST4341 7405 Engineering WFS
Notes
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
l y
______________________________________________________________________
n
O
______________________________________________________________________
e
s
______________________________________________________________________
U
I
______________________________________________________________________
A
O
______________________________________________________________________
l &
______________________________________________________________________
na
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
Activity Overview
The TERMBEN01 workflow process terminates the benefits of employees who are
leaving the company. Using Process Task Monitor, display the TERMBEN01 process
and answer the following questions:
Question Answer
1. How many process instances are there for the
TERMBEN01 process?
2. What is the status of the process instances?
3. At which tasks was instance 6056 terminated, and
who is responsible for these tasks?
4. What is the name of the task that follows the
SENDBENROLL task and in which process instance
does it display?
5. How can you display only the process instances
that occurred prior to 2002?
n l y
6. Process instance 8011 is waiting for Rod McLind
to respond to the SENDBENROL and
e O
SENDBENROLL tasks. How could you suspend this
process instance if Rod is on vacation and you want
U s
him to complete the tasks when he returns?
7. On what date was process instance 6056
terminated? A I
8. How can you determine if any of the process O
instances have expired?
l &
for a process?
n a
9. Why is it helpful to know the start and end times
te r
. List the seven possible valid values for current
status of a workflow process instance.
I n
c l e
This concludes the activity. Do not continue.
r a
O
Activity Overview
Using the Advanced Analysis application, display the CREDLIMIT workflow process
and answer the following questions. If you need to select options to find an answer, list
the options that you selected:
Question Answer
1. What is the average duration for all instances of
the CREDLIMIT workflow process? Options selected:
2. How can you display the average duration for each
task across instances? Options selected:
3. Can you display the user who is responsible for
tasks in a workflow process? If so, how? Options selected:
4. When you select the Actuals, Process, and Tasks
options, what displays in the form?
n l y
This concludes the activity. Do not continue.
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 ______________________________________________________________________
Administering Workflow
Processes
n l y
e O
U s
A I
O
l &
na
te r
I n
c l e
r a
O
Activity Overview
From the Workflow Management Setup menu (G0241), select Queue Security. Give
Annette Walters, address number 2006, authority to view queues 24 and 49 for the
Employee Termination group. In addition, answer the following questions about queue
security:
Question Answer
1. How can you determine which distribution lists
have been set up in the EnterpriseOne system?
2. What are the descriptions or names of the two
queues to which you gave Annette Walters
authority?
3. What is the address book number for the
Employee Termination Approval group?
n l y
4. If you select the Public Security option and give
authority to the Collection Management queue,
e O
which users in the system can view the messages in
that queue?
U s
A I
This concludes the activity. Do not continue.
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
l y
Slide 181 ______________________________________________________________________________________________________
n
Activity Overview
e O
You can use the work order system to:
U s
EnterpriseOne includes a work order system that you can use for a variety of purposes.
• Manage projects.
A I
• Repair and maintain equipment.
O
• Manufacture items.
l &
•
a
Provide support services.
n
te r
Your company has decided to use the basic work order system to track capital projects.
Because the costs associated with capital projects can be very high, these projects must
I n
be approved before any work is started. In this activity, you will create a workflow
process to automate the approval process for this type of project.
cle
Work orders consist of a work order header, which contains:
O ra •
•
The business unit to be charged.
The information entered into the header depends on the type of project or the type of
work being performed. Each work order has a unique number for tracking and reporting
purposes.
Note. Work order entry actually uses two applications: the Work With Work Orders
(P48201) application and one of three work order entry programs. P48201 uses a
processing option to determine which work order entry program to call. The work order
entry program that you will use in this activity is Project Task Details (P48014).
At your company, the approval process for capital projects begins when the project is
entered into the work order system. The work order contains basic information about the
work to be done. Obtaining the necessary approvals is managed through the workflow
process. The approval routing and status of the work order are determined by the
following factors:
This category code is assigned when the work order is created. All type 3 work
orders must be approved.
• Type 3 work orders created for business units 1 or 9 must be approved by the
Accounting department.
• Michael Josephson approves the type 3 work orders for all other business units.
• For business units 1 or 9, the estimated dollar amount of the work order determines
which people on the distribution list need to approve it.
n l y
You will set up a distribution list specifying the people on the list and their threshold
amounts.
e O
•
s
The originator must be notified when the project is accepted or rejected.
U
•
I
The status of the work order must be pending (E3) until it is accepted or rejected.
A
If rejected, the status must change to disapproved (D). If accepted, the status must
O
change to approved (E4). The table for work order information is the Work Order
Master table (F4801).
te r
An order entry clerk enters a work order into P48014, Project Task Revisions.
I n• If the work order type is 3 (Capital Projects), the work order enters into
c l e •
workflow.
O A message informs the clerk that the order has entered the work order workflow
process.
Approval is required for capital work orders. The approval form is sent either to a
distribution list or to Michael Josephson, depending on the business unit that was
entered on the work order.
• If the business unit entered on the work order is equal to 1 or 9, the approval
form is sent to the Accounting department distribution list (address book number
112<last two digits of your user ID>.
• If the business unit is not equal to 1 or 9, the approval form is sent to Michael
Josephson.
The database is updated by a business function. The business function takes the
values from the approval form and updates the database with an E4 (approved) or D
(disapproved).
6. The order entry clerk, the originator of the work order, is sent a message that the
work order has either been approved or rejected.
e O
Create Capital Projects
Work Order
U s Triggering Event
O PROCESS
l &
n a
Approve Reject
te r
I n
c le
r a
O Exit Workflow Process
Create a Project
Create a project for the new workflow object. The project should contain all the objects
that you create or modify for the Capital Projects Approval workflow.
e O
s
Create Capital Projects
Triggering Event
Work Order
I U
Enter Workflow
A
Send Message to Approver
O
WORK ORDER APPROVAL
PROCESS
l &
n a
Approve Reject
te r
Send Accepted Message to
Originator
Send Rejected Message to Originator
I n
c l e
r a Update Work Order
Status to E4 or D
Use variables in each message to provide specific data regarding each instance of the
process. Name each message template as follows:
You need a message to request approval from the recipient. Create LM561<last two
digits of your user ID>A as the message to the approver with text similar to the
following:
WORK ORDER
WO Number: &1
You need a message to notify the originator if the work order is approved, which
means that it is accepted. Create LM561<last two digits of your user ID>B for the
Accepted message, with text similar to the following:
WORK ORDER
The Capital Project work order &1 for the estimated amount of &2 has been
approved.
n l y
You need a message to notify the originator if the work order is rejected. Create
to the following:
e O
LM561<last two digits of your user ID>C for the rejected message, with text similar
WORK ORDER
U s
rejected.
A I
The Capital Project work order &1 for the estimated amount of &2 has been
n a
•
•
te r
Name the key data structure WF5601<last two digits of your user ID>A.
I n
Data Dictionary Alias Structure Member Name Data Item
r a
O • Name the additional data structure WF5601<last two digits of your user ID>B.
Important! Be certain that you change the structure member names in each data
structure as shown below. Changing the structure member name will make the data item
more identifiable when you create workflow tasks.
• Answer these questions about the data dictionary items in the Capital Projects
Approval workflow process:
l &
n a
te r
Create a Workflow Object in OMW
Perform the following steps to create a workflow object:
I n
1. In the TRN<last two digits of your user ID>102 project, create the Capital Projects
c l e Approval workflow process. Name it K5601<last two digits of your user ID> and
enter the following information:
O Process
Version
K5601<last two digits of your user ID>
1
Description Capital Projects Approval <last two digits of your
user ID>
3. After creating the workflow object, on the Attachments tab enter information to
describe what the workflow process does.
A named event rule is needed to update the status code in the Work Order Master table
(F4801) when the work order has been approved or rejected. Create a data structure and
named event rule to update the status code in the Work Order Master table. The status
code will change to E4 (Approved) if the work order is approved, or D (Disapproved) if
the work order is rejected.
e O
information:
U s
1. On the Add EnterpriseOne Object to the project form, enter the following
Field
A I Value or Status
Object Name
Description O D564801<last two digits of your user ID>
Work Order Approval Data Structure
Product Code
l& 56
na
Product Reporting Code 56
Object Use
t e r
Regular Data Structure
360
Selected
I n
c le
2. Include the following items in the data structure:
O APPRACT
SRST
cApprovalActionCode
szStatusCode
ApprovalActionCode
StatusCode
DOCO mnDocumentOrderInvoiceE DocumentOrderInvoiceE
3. Create named event rule N56480<last two digits of your user ID>to update the status
code to E4 if the work order is approved, or update the status code to D if the work
order is rejected.
Note. You need a business function to pass the values of the Approved and Rejected
options from the approval form to the status field in the table. As mentioned earlier,
the options on the form return a value of A for Approved and R for Rejected.
However, the Work Order Master table (F4801) table requires status codes of E4 for
Approved and D for Disapproved. You will use assignments to associate these values
before updating the table.
a. On the Add EnterpriseOne Object to the project form, enter the following
information:
n l y
e O
b. On Business Function Design, use STA1<last two digits of your user ID> as the
Parent DLL.
U s
Field A I
c. To define the business function, enter the following information in the grid:
Value or Status
Function Name O F4801UpdateWOStatusCode<last two digits of
te r 3
I n
c l e d. Select Parameters from the Row menu and attach data structure D564801<last
two digits of your user ID>.
r a e. Select Edit from the Row menu and enter the following event rules:
BF szStatusCodeWo = “D”
End If
End If
F4801.Update
Note. To create the F4801 Table I/O event rule, follow these steps:
2. Click Next.
4. Click Next.
DocumentOrderInvoiceE = BF mnDocumentOrderInvoiceE
StatusCodeWO Å BF szStatusCodeWO
6. Click Finish.
4. When the business function is complete, build it by using the Build Business
Function option.
O
Consider the following when you configure the tasks:
•
l &
What types of tasks do you need to create (message, business function, or batch
a
application, and so on)?
n
•
•
te r
Should the Generic Workflow Approval (P98805) form be attached to the task?
I n
c e
Note. For the time being, use address book number 1001 for the recipient of the Askaprvl
l
task. After you complete the workflow process and test it, you will design a distribution
list and recipient conditions for the task to route messages correctly.
r a
O •
•
Should a message template be attached to the task?
• Attach N56480<last two digits of your user ID> to the update activity to update
the work order status to E4 or D.
3. Before creating the tasks in Workflow Modeler, enter the necessary information
about each task in the table below.
Use the description and the diagram of the workflow process to determine the task
flow.
e O
Triggering Event
Enter Workflow
U s
WORK ORDER APPROVAL PROCESS
A I
Send Message to Approver
Task: ASKAPRVL
If Approval Action
Code is equal to A IFAPPROVED O IFREJECTED
If Approval Action
Code is equal to R
l &
n
Originator
a
Send "Accepted" Message to Send "Rejected" Message to
Originator
te r
Task: ACCEPTED Task: REJECTED
c l e Status to E4 or D
Task: UPDATE
• After you have added the transitions and transition conditions, validate the workflow
process.
If there are errors, correct them and rerun the validation until the message “Workflow
is Valid” appears.
3. Calling the Pending Review Notification form if you are using standard workflow
notification messages.
Note. Work Order entry actually uses two applications: the P48201 Work With Work
Orders application and one of three work order entry programs. The P48201 uses a
processing option to determine which work order entry program to call. The work order
entry program that you will use in this activity is P48014 Project Task Details. To use the
l y
P48201 and the P48014 to enter work orders in the training environment, you must copy
n
both applications and then change some of the event rules, as described below.
e O
1. In Object Management Workbench, search for the Work With Work Orders (P48201)
application and then add it to the TRN<last two digits of your user ID>102 Capital
Projects Approval project.
U s
A I
2. Copy the application and its associated processing option template and name them
P56481<last two digits of your user ID> and T56481<last two digits of your user
ID> respectively.
O
&
3. Click OK to return to Object Management Workbench.
l
a
4. Remove P48201 from your project.
n
te r
5. In OMW, search for the Project Task Details (P48014) application and then add it to
the TRN<last two digits of your user ID> 102 Capital Projects Approval project.
I n
6. Copy the application and its associated processing option template and name them
P56482<last two digits of your user ID> and T56482<last two digits of your user
c le ID> respectively.
9. Search for WOACTRULES, the workflow process used by Project Task Details
(P48014), and move it into the TRN<last two digits of your user ID>102 Capital
Projects Approval project.
10. Deactivate WOACTRULES so that it does not interfere with your new process.
Note. In the client/server training environment, only one person will be able to
deactivate the process. Check the process to see if the status is active or inactive. If it
is active, deactivate it. If the status is already inactive, do not change it.
11. Verify the K5601<last two digits of your user ID> workflow process is active.
12. Click P56482<last two digits of your user ID> and enter the design mode to attach
the workflow process, using the following steps.
a. Add the event rules to the OK button, Post Button Clicked event.
c. Add event rules to start the workflow process only if the work order type is equal
to 3.
d. Add event rules to start the K5601<last two digits of your user ID> Capital
Projects Approval workflow process.
This form sends the originator the Pending message when the work order enters
the workflow process. No parameters are passed.
f.
l y
Save your changes and exit P56482<last two digits of your user ID> to return to
OMW.
n
click Design.
e O
13. Click P56481<last two digits of your user ID> Work With Work Orders and then
U s
14. Change the event rules to call the P56482<last two digits of your user ID> Project
Task Details form, using the following steps:
A I
a. On the Dialog is Initialized form, add the following assignment at the beginning
O
of the event rules to set the processing option value to call the Project Task
Details form:
l &
PO Work Order Program = 2
n a
te r
b. On the Add button -- Button Clicked event, locate the Call Simple Work Order
Entry section. Disable the form interconnect to Project Task Details (P48014).
I nc. On the Add button -- Button Clicked event, create a form interconnect to
c l e P56482<last two digits of your user ID> Project Task Details in the Call Simple
Work Order Entry section.
c. Click OK.
n
Remodel Gym/Upgrade Equipment
General Tab W.O. Status E3
e O
Type
Charge to BU
U
3
3s
Dates/Assignments Tab
Ext. Amount
Originator
A I 50000
2011<last two digits of your user ID>
O
b. Click OK.
l &
n a
te r
c. You should receive a message indicating that the order is pending approval.
I n
e. Click Close.
cle f. After you have entered both work orders and received the Pending Notification
r a form, go to menu G02 and select Workflow Advanced & Technical Operations.
g. Select Process Task Monitor and verify that the K5601<last two digits of your
O user ID> process has begun.
h. From the Employee Queue Manager on menu G02, find address book number
1001 and select View Mail from the Row menu.
i. On the Employee Queue Manager [Work Center] form, open the Work Order
Approval folder.
You can see two work order approval requests. Both should be the LM561<last
two digits of your user ID>A message that you created previously.
j. Click the first work order approval request and approve it.
k. Click the second work order approval request and reject it.
The first message should be the LM561<last two digits of your user ID>B
approved message that you created in a previous activity. The second message
should be the LM561<last two digits of your user ID>C rejected message, which
you created in the same activity.
o. In Universal Table Browser (UTB), find the Work Order Master table (F4801)
table and see if the status in the WASRST column for each work order has been
updated from E3 to either E4 or D.
If all the appropriate messages were sent and the database was updated with the correct
status codes, your work order process is successful.
•
U s
Accounting supervisors must approve all capital projects.
•
A I
The Accounting Manager must approve all capital projects over 10,000.
•
O
The Controller must approve all capital projects over 100,000.
•
l &
The Chief Financial Officer must approve all capital projects over 500,000.
•
n a
The President must approve all capital projects over 1,000,000.
•
te r
Authorization is required for all capital projects.
•
I nOnly one approval is required at each level. However, a higher-level group can
c l e approve a capital project without prior approval from lower level groups.
O Accounting Supervisors:
Josephine Breton 4801
Chester Ebby 5127
After the Capital Projects Approval process has been tested to verify that it works
correctly, create a distribution list for the Accounting department using the criteria
specified above. Follow these steps:
n l y
Tax ID
Search Type
Blank
M
e O
Business Unit 9
U s
A I
2. Create a distribution list structure type by entering the following information:
O
Field
Codes
l & Value or Status
W<last two digits of your user ID>
Description 1
n a Capital Projects <last two digits of your user ID>
Special Handling
te r
I n
Hard Coded N
c le
3. To create the distribution list, enter AMTO in the Associated Data Item field.
r a 4. Add the distribution list to the appropriate task in the K5601<last two digits of your
O user ID> workflow process.
7. Test the process with the new distribution list by selecting P56481<last two digits of
your user ID> and Run the Application on the Design Tools tab.
c. Click OK.
e
Header Order Number
Description
U s
115<last two digits of your user ID>
Remodel Cafeteria
General Tab W.O. Status
Type A I E3
3
Charge to BU O 3
l&
Ext. Amount 40000
na
Dates/Assignments Tab Originator 2011<last two digits of your user ID>
e r
I nt
b. Click OK.
c l e You should receive a message indicating that the order is pending approval.
d. Click Close.
O e. After you have entered both work orders and received the Pending Notification
form, go to menu G02 and select Workflow Advanced & Technical Operations.
f. Select Process Task Monitor and verify that the K5601<last two digits of your
user ID> process has begun.
g. From the Employee Queue Manager on menu G02, find address book number
4801 and select View Mail from the Row menu.
h. On the Employee Queue Manager [Work Center] form, open the Work Order
Approval folder.
You should see two work order approval requests. Both should be the
LM561<last two digits of your user ID> A message that you created previously.
i. Click the first work order approval request and approve it.
j. Click the second work order approval request and approve it.
l. Find address book number 4802 and select View Mail from the Row menu.
There should be one work order approval request in the amount of 40,000.
n l y
One should be the LM561<last two digits of your user ID> C approved message
s
p. Go to menu G02 and select Workflow Advanced & Technical Operations.
U
A I
q. Select Process Task Monitor and verify that the K5601<last two digits of your
user ID> process instances are at a Completed status.
O
Note. As you are testing, you might discover that you need to make changes to the
n a
te r
Use the Copy feature in OMW to create a new version of the K5601<last two digits of
your user ID> process. Deactivate the first version. Then make changes to the new
process, activate it, and continue testing.
I n
c e
Purge the open instances of the K5601<last two digits of your user ID> process by using
l
Purge Completed Tasks and Purge Completed Processes on menu G02311. Use Purge
Completed Tasks to select by date the instances to purge. You can also access Purge
r a Completed Processes in OMW from the Workflow Operations tab in Workflow Design.
O When the purge is complete, you can deactivate the process, make changes, and continue
testing.
4. In OMW, click P56481<last two digits of your user ID> Work With Work Orders
and then click Design.
Location on Form
Header
Field
Order Number
Value or Status
n l y
116<last two digits of your user ID>
Description O
Replace Window
e
General Tab W.O. Status
Type
U s
E3
3
Charge to BU
Ext. Amount A I 1
700
Dates/Assignments Tab Originator O 2011<last two digits of your user ID>
l &
n a
c. Click OK.
te r
You should receive a message that the order is pending approval.
I n Because the value of the work order is 700, only the people in Group 1 of the
b. Click OK
You should receive a message indicating that the order is pending approval.
Because the business unit is not 1 or 9, only Michael Josephson should get the
approval message.
d. Click Close.
When the workflow process sends the correct messages and updates the Work Order
Master (F4801) table appropriately, you have successfully completed the Final Activity.
U s
Enter Workflow
A I
Send Message to Approver
WORK ORDER APPROVAL
PROCESS
O
l
Approve& Reject
n a
te r
Send Accepted Message to
Originator
Send Rejected Message to Originator
I n
c le Update Work Order
r a Status to E4 or D
1. From Solution Explorer, select Object Management Workbench from the Tools
menu.
3. Under the Object Management Workbench section of the Add EnterpriseOne Object
to the Project form, select the option OMW Project.
n l y
6. Access the Dates tab.
e O
7. Enter the following information:
U s
Field
Date Started
A I
Value or Status
(Populated by the system)
Planned Completion Date
O <5 days past start date>
Date Entered
Completion Date
l & (Populated by the system)
Blank
n a
te r
8. Access the Attachments tab.
I n
9. Enter the following information: This project was created to add the Capital Projects
a
Adding an Owner to Your Project
r
O To add an owner to your project:
1. Expand your new project to reveal the Objects and Owners nodes.
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).
n l y
3. On the Confirm Status Change form, use the visual assist on the blank field to select
the programming status: 21.
A I
2. On Add EnterpriseOne Object to the project, select Data Item and click OK.
O
3. Answer Yes to the Glossary Item message.
l &
4. On the Item Specifications tab, enter the following information:
a
Field
Alias
t e rn Value or Status
LM561<last two digits of your user ID>A
I n
Glossary Group Y
c le
Product Code
Product Code Reporting
56
56
O Error Level 3
5. Complete the Glossary tab with the text-substituted message specified in the Activity
Overview.
6. Click OK.
7. Repeat steps 1 through 6 to create messages LM561<last two digits of your user
ID>B and LM561<last two digits of your user ID>C.
1. Select the Objects node of the TRN<last two digits of your user ID>102 Capital
Projects Approval project and click Add.
2. On the Add EnterpriseOne Object to the Project form, select Data Structure and click
OK.
e O
Regular Data Structure Selected
U s
4. Click OK.
A I
O
5. On the Design Tools tab, click Data Structure Design.
l &
6. Define the data structure using data dictionary alias DOCO.
n a
7. Change the structure member name to mnWorkOrderNumber.
te r
8. Save the data structure and return to Object Management Workbench.
I n
9. The WF5601<last two digits of your user ID>A data structure should now be listed
r a 1. Select the Objects node of the TRN<last two digits of your user ID>102 Capital
O Projects Approval project and click Add.
2. On the Add EnterpriseOne Object to the Project form, select Data Structure and click
OK.
4. Click OK.
Important! Be certain that you change the structure member names in each data
structure as shown below. Changing the structure member name will make the data item
more identifiable when you create workflow tasks.
U s StatusCodeWOs
APPRACT cApprovalActionCode
A I ApprovalActionCode
O
&
7. Save the data structure and return to Object Management Workbench.
l
n a
8. The WF5601<last two digits of your user ID>B data structure should now be listed as
an object under the Capital Projects Approval project.
te r
9. The reasons for including the data items in the workflow process are as follows:
I n
1. Why is the WorkOrderNumber data item included The work order number is used to track each capital
cle
in the Capital Projects Approval workflow process?
2. Why is the Work Order Type data item included
project.
The only work orders being tracked are capital
O Capital Projects Approval workflow process? projects with business unit 1 or 9. Michael Josephson
approves all others.
4. Why is the Estimated Amount data item included The amount of the capital project determines who
in the Capital Projects Approval workflow process? needs to approve it.
5. Why is the Originator data item included in the A notice is sent to the originator indicating whether
Capital Projects Approval workflow process? the project was approved or rejected.
6. Why is the Work Order Status data item included The status code is necessary because it is updated
in the Capital Projects Approval workflow process? from “pending” (E3) to either “accepted” (E4) or
“rejected” (D).
7. Why is the Approval Action Code data item Approval Action Code is needed to indicate the
included in the Capital Projects Approval workflow action the approver takes (A = Accept, R = Reject).
process?
2. On the Add Object to the Project form, click Workflow Process under the Workflow
heading and then click OK.
4. For the key data structure, enter WF5601<last two digits of your user ID>A.
5. For the additional data structure, enter WF5601<last two digits of your user ID>B.
e
s
9. The K5601<last two digits of your user ID> Capital Projects Approval workflow
process should display under the Capital Projects Approval project.
U
Designing a NER Business Function
A I
O
Create the D564801<last two digits of your user ID>data structure for the business
function as described in the Activity Overview.
l &
Designing the Business Function
n a
te r
1. Create the named event rule N56480<last two digits of your user ID> object:
a. In OMW, focus on the Objects node of the Capital Projects Approval project and
I n click Add.
O d. Click OK.
2. To define the business function, select the Design Tools tab and click Start Business
Function Design Aid.
a. On Business Function Design, use STA1<last two digits of your user ID> as the
Parent DLL.
b. On Business Function Design Aid, complete the fields in the grid as described in
the Activity Overview.
3. To attach the D564801<last two digits of your user ID> data structure to the business
function:
a. Select the row with the N56480<last two digits of your user ID> business
function and select Parameters from the Row menu.
b. On the Select Business Function Parameters form, type D564801<last two digits
of your user ID> in the QBE column for the Template Name field, and click
Find.
c. After the D564801<last two digits of your user ID> data structure appears in the
grid, click Select.
a. Select the row with the N56480<last two digits of your user ID> business
function and select Edit from the Form menu.
b. On the Named Events Rule Design form, enter the event rules shown in the
n l y
Activity Overview.
O
b. After the business function builds successfully, exit the Busbuild application.
Workbench.
l &
6. On the Business Function Design form, click OK to return to Object Management
n a
te r
7. N56480<last two digits of your user ID> should now appear as an object in the
Capital Projects Approval project.
O ra Name of Task
ASKAPRVL
Type
Message
Description
Send message to ask approval
for a work order request
Additional Information
Use message template
LM561<last two digits of your
user ID>A
1. In Object Management Workbench, select the K5601<last two digits of your user
ID> Capital Projects Approval workflow process and click Design.
2. On the Workflow Design form, click the Design Tools tab, and then click Start
Workflow Modeler.
2. Drop the task onto the diagram by clicking anywhere in the diagram.
e O
Process
Version 1
U s
K5601<last two digits of your user ID>
Task
Description
A IASKAPRVL
Work Order Approval Request
Category Code 1
O Blank
Category Code 2
l& Blank
na
Category Code 3 Blank
And Join (Y/N)
e r Blank
I
4. Click OK.
nt
c l e The Askaprvl task appears in the Workflow Modeler diagram.
r a
Creating the UPDATE Task
O 1. In Workflow Modeler, click the Message icon.
2. Drop the task onto the diagram by clicking anywhere in the diagram.
4. Click OK.
2. Drop the task onto the diagram by clicking anywhere in the diagram.
n l y
The Workflow Task Revisions form appears.
e O
3. On the Workflow Task Revisions form, enter the following information:
Field
U s
Value or Status
Process
Version A I
K5601<last two digits of your user ID>
1
Task O ACCEPEDT
Description
l& Send WO Accepted Message
na
Category Code 1 Blank
Category Code 2
e r Blank
nt
Category Code 3 Blank
e I
And Join (Y/N) Blank
c l
r a 4. Click OK.
O
Creating the REJECTED Task
The Accepted task appears in the Workflow Modeler diagram.
2. Drop the task onto the diagram by clicking anywhere in the diagram.
4. Click OK.
l y
To configure the Askaprvl message task, you must define the contents and the recipient
of the message.
n
diagram, and then select Event Rules.
e O
1. In Workflow Modeler, right-click the Askaprvl message task that you added to the
te r <Blank>
I n
Active <Define Active Message> Find and select application
P98805, Form W98805A.
r a cCommentRequired
3. Click OK.
1. In Workflow Modeler, right-click the Update business function task that you added to
the diagram, and then select Event Rules.
2. On the Business Function Search form, find source module N564801<last two digits
of your user ID> and then click Select.
BF cApprovalActionCode Æ
O
cApprovalActionCode
e
BF szWorkOrderStatus
BF mnWorkOrderNumber
Æ
Æ
U s
SzStatusCodeWo
mnDocumentOrderInvoiceE
A I
4. Click OK.
O
Configuring the ACCEPTED Task
l &
n a
1. In Workflow Modeler, right-click the Accepted message task that you added to the
r
diagram, and then select Event Rules.
te
n
2. Enter the following information:
I
cle
Field
Recipient
Value
BF mnOriginatorNumber
Additional Information
O ra Structure Type
Mailbox
Subject
<Single Recipient>
<Electronic Workbench>
<Blank>
Text <Blank>
Active <None>
3. Click OK.
1. In Workflow Modeler, right-click the Rejected message task that you added to the
diagram, and then select Event Rules.
e O
Subject
Text
<Blank>
<Blank>
U s
Active
Message
<None>
A
<Define Message>
I Type LM561<last two digits of
te r message.
Assign the following values:
In
&1: BF mnWorkOrderNumber
&2: BF mnEstimatedAmount
r a
O 3. Save your changes and exit Workflow Modeler.
Results
The following illustration shows the completed tasks for the Capital Projects Approval
workflow:
A I
2. On the Workflow Design form, click the Design Tools tab, and then click Start
Workflow Modeler.
O
l &
3. On Workflow Modeler, move each task to a location in the workspace that
corresponds with the workflow diagram.
n a
You might find it easier to create the diagram horizontally rather than vertically in
r
the workspace.
te
n
4. Connect the tasks by clicking the Transition icon on the toolbar.
I
c le Click and drag the mouse from the task at which you want the transition to originate
to the next task in the process.
r a
Adding and Attaching Transition Conditions
O Create and attach the two transition conditions to the workflow diagram as follows:
IFAPPROVED
To create and attach the IFAPPROVED condition:
1. Right-click the transition between the Askaprvl task and the Accepted task, and then
select Add and Attach.
2. To complete the Process Rule Revisions form, enter the following information:
n l y
4. Click OK twice to return to Workflow Modeler.
e O
IFREJECTED
U s
A I
To create and attach the IFREJECTED transition condition:
1. Right-click the transition between the Askaprvl task and the Reject task, and then
select Add and Attach.
O
l &
This Transition Condition evaluates the approval action code. If a value of R is
a
returned, the Rejected message is sent to the originator.
n
Field
te r
2. To complete the Process Rule Revisions form, enter the following information:
Value or Status
I n
Process K5601<last two digits of your user ID>
c l e
Version 1
r a Rule
Description
IFREJECTED
If Credit Limit Change is Rejected
O Category Code 1
Category Code 2
Blank
Blank
Category Code 3 Blank
Results
After adding the IFAPPROVED and IFREJECTED transition conditions, the Capital
Project Approval workflow diagram should appear similar to the following illustration:
n l y
Validating the Workflow Process
• A I
message means that you can now attach the workflow process to an application.
If the version contains errors, a dialog box appears with a list of errors. Click
O
Start Workflow Modeler to open the version in Workflow Modeler and correct
the errors.
l &
Workbench.
n a
2. On the Workflow Design form, click OK to return to Object Management
te r
Attach the Workflow Process to an Application
I n
1. In Object Management Workbench, search for the Work With Work Orders (P48201)
c le application and then add it to the TRN<last two digits of your user ID>102 Capital
Projects Approval project.
O Name the copies P56481<last two digits of your user ID> and T56481<last two
digits of your user ID> respectively.
5. In Object Management Workbench, search for the Project Task Details (P48014)
application and then add it to the TRN<last two digits of your user ID>102 Capital
Projects Approval project.
Name the copies P56482<last two digits of your user ID> and T56482<last two
digits of your user ID> respectively.
9. Verify that your K5601<last two digits of your user ID>workflow process is active.
Click P56482<last two digits of your user ID> and enter the design mode to attach the
K5601<last two digits of your user ID>workflow process.
1. Add the event rules to the OK button, Post Button Clicked event.
l y
3. Create an event rule to start the workflow process only if the work order type is equal
to 3.
n
Results
e O
The bolded lines show the event rules to disable the WOACTRULES workflow
s
process and to start the workflow process only if the work order type is equal to 3.
U
FORM: I
=======================================================================
A
PROJECT TASK DETAILS [FIX INSPECT] (P55482xx)
O
=======================================================================
CONTROL: HYPITEM &OK
EVENT:
l &
Post Button Clicked
n a
-----------------------------------------------------------------------
Show Control (FC Pre Order Number)
te r
If SV Form_Mode is not equal to CO ADD_MODE And VA
frm_cX4801ErrorCode_ERRC is not equal to “1,2”
I nEnd If
Press Button(HC &Cancel)
c l e //
// Call Workflow
r a //
O
If SV Form_Mode is equal to CO ADD_MODE Or SV Form_Mode is equal to CO
COPY_MODE
If FC Type is equal to “3”
! Start Process(WOACTRULES, <Mapped, <Mapped>)
End If
End If
If SV Form_Mode is equal to CO UPDATE_MODE
If FC Type is equal to “3”
! Start Process(WOACTRULES, <Mapped, <Mapped>)
End If
4. Enter the event rules to start the K5601<last two digits of your user ID> Capital
Projects Approval workflow process as follows.
e. Enter K5601<last two digits of your user ID> in the QBE column.
f. Click Find.
g. Double-click to select the K5601<last two digits of your user ID> process.
h. Click OK.
e O
WorkOrderNumber
U s
A I
k. For Additional Data Structure, double-click <Define Mapping>.
l.
O
On Data Structure Mapping, enter the following information:
Value
na
FC Type Æ WorkOrderType (cTypeWO)
FC Business Unit
e r Æ ChargetoBU (szCostCenter)
nt
FC Est. Amount Æ EstimatedAmount (mnAmountOriginalDollars)
e I
FC Originator
FC Status
Æ
Æ
OriginatorNumber (mnAddNoOriginator)
WorkOrderStatus (szStatusCodeWO)
c l
<NOT Assigned> 0 ApprovalActionCode (cApprovalActionCode)
r a
O
n. Click OK.
Results
The bolded line shows the event rules to start the K5601<last two digits of your
user ID> workflow process.
=====================================================================
FORM: PROJECT TASK DETAILS [FIX INSPECT] (P55482xx)
=====================================================================
CONTROL: HYPITEM &OK
EVENT: Post Button Clicked
---------------------------------------------------------------------
Show Control (FC Pre Order Number)
If SV Form_Mode is not equal to CO ADD_MODE And VA
frm_cX4801ErrorCode_ERRC is not equal to “1,2”
Press Button(HC &Cancel)
End If
n l y
//
// Call Workflow
e O
//
U s
If SV Form_Mode is equal to CO ADD_MODE Or SV Form_Mode is equal to
I
CO COPY_MODE
A
If FC Type is equal to “3”
Start Process(K5601xx, <Mapped>, <Mapped>)
!
O
Start Process(WOACTRULES, <Mapped, <Mapped>)
End If
End If
l &
a
If SV Form_Mode is equal to CO UPDATE_MODE
n
BC
te r
If VA frm_mnOriginalAmount_AMTO is not equal to BC Amount –
Estimated(F4801) Or VA frm_szOriginalStatus_SRST is not equal to
O End If
End If
This form sends the originator the Pending message when the work order enters the
workflow process. No values are passed.
c. Click Select.
e. Click OK.
Results
The bolded lines show the event rule to create a form interconnect to the
Workflow Pending Review Notification form (P98805, Form W98805B).
=====================================================================
FORM: PROJECT TASK DETAILS [FIX INSPECT] (P55482xx)
=====================================================================
CONTROL: HYPITEM &OK
EVENT: Post Button Clicked
---------------------------------------------------------------------
Show Control (FC Pre Order Number)
If SV Form_Mode is not equal to CO ADD_MODE And VA
n l y
frm_cX4801ErrorCode_ERRC is not equal to “1,2”
Press Button(HC &Cancel)
e O
End If
//
U s
// Call Workflow
//
A I
O
If SV Form_Mode is equal to CO ADD_MODE Or SV Form_Mode is equal to
CO COPY_MODE
&
If FC Type is equal to “3”
l
a
Start Process(K5601xx, <Mapped>, <Mapped>)
!
r n
Call(App:P98805, Form W98805B)
Start Process(WOACTRULES, <Mapped, <Mapped>)
I n te
End If
End If
If SV Form_Mode is equal to CO UPDATE_MODE
r a BC
Status Code W.O.(F4801)
End If
End If
End If
f. Save your changes and exit P56482<last two digits of your user ID> to return to
Object Management Workbench.
6. Click P56481<last two digits of your user ID> Work With Work Orders and then
click Design.
7. Change the event rules to call the P56482<last two digits of your user ID> Project
Task Details form. Use the following steps:
Results
The bolded line shows the event rule that assigns the processing option to call the
Project Task Details form.
=====================================================================
FORM: WORK WITH WORK ORDERS [FIND BROWSE] (W55481xxA)
=====================================================================
CONTROL: FORM
EVENT: Dialog is Initialized
l
---------------------------------------------------------------------
//==============================================================
n y
// Revisions Log
e O
//==============================================================
l &
//-------------------------------------------------------------------
If PO CategoriesWorkOrder001 is not equal to <Blank> And PO
a
CategoriesWorkOrder001 is not equal to <Null>
n
te r
b. On the Add button -- Button Clicked event, locate the Call Simple Work Order
I n Entry section.
Results
The bolded lines show the event rules to disable the form interconnect to P48014
and add a form interconnect to P56482<last two digits of your user ID> Project
Task Details.
=====================================================================
FORM: WORK WITH WORK ORDERS [FIND BROWSE] (P55481xx)
=====================================================================
CONTROL: HYPITEM &Add
EVENT: Button Clicked
---------------------------------------------------------------------
//===============================================================
// Call Work Order Entry
//===============================================================
.
.
//===============================================================
// Call Simple Work Order Entry
//===============================================================
If PO Work Order Program is equal to “2”
Check Object Version
If VA frm_cVersionExists_EV01 is not equal to “1”
Set Control Error(HC &Add, “016F”)
Stop Processing
End If
n l y
O
! Call(App:P48014, Form:W48014A)
Call(App:P55482xx, Form:W55482xxA)
End If
//
s e
I U
e. Save your changes and then exit Form Design Aid.
l &
n a
1. To create an address book record for the Accounting department, select Address
Book Revisions on menu G01:
te r
a. On menu G01, select Address Book Revisions.
I n
b. On the Work With Addresses form, click Add.
cle c. Create an address book record using the values shown in the Activity Overview.
O ra d. Click OK.
Note. Ignore the warning message for the Payables field on the Additional tab.
e. Click OK again.
a. Use Fast Path UDC or menu GH9011 to access User Defined Codes and to add a
new structure type to UDC 01/TS.
b. Use Fast Path UDC or menu GH9011 to access Work With User Defined Codes.
c. Type 01 for Product Code and TS for User Defined Codes and then click Find.
d. Click Add.
e. On the User Defined Codes form, complete the last row in the detail area as
specified in the Activity Overview.
f. Click OK.
e O
112<last two digits of your user ID>
Structure Type
U s
W<last two digits of your user ID>
First Response
O Selected
l&
Higher Level Override Selected
na
Authorization Required Selected
e r
I nt
d. Enter the members of the distribution list and their threshold values, and then
c l e
Results
assign them to the appropriate groups.
g. The distribution list tree structure should display, showing all the members.
n l y
a. In OMW, select the K5601<last two digits of your user ID> workflow process in
the Capital Projects Approval project.
b. Click Design.
e O
U
c. On the Design Tools form, click Workflow Modeler. s
I
d. Right-click the ASKAPRVL task and select Event Rules.
A
O
e. To change the recipient from 1001 to 112<last two digits of your user ID>, select
Literal and enter 112<last two digits of your user ID>.
f.
l &
Change the structure type from <Single Recipient> to <Capital Projects <last
a
two digits of your user ID>>.
n
te r
g. Click OK to return to the Workflow Modeler workspace.
I n
h. Save and exit from Workflow Modeler.
c le
5. On the Design Tools form, click Validate Workflow.
1. In OMW, select the K5601<last two digits of your user ID> workflow process in the
Capital Projects Approval project.
2. Click Design.
n l y
6. Click OK.
e O
Operator Left Operand Comparison
s
7. On the Criteria Design form, enter the following information:
U Right Operand
If BF szChargetoBU
A I
Is equal to “ 1, 9”
O
l &
8. Click OK twice to return to Workflow Modeler.
I n
1. Right-click the background of the Workflow Modeler diagram, select Recipient
O Process
Version
K5601<last two digits of your user ID>
1
Rule BUNOT1OR9
3. Click OK.
2. On the Workflow Recipient Rule Revisions form, enter the following information: n l y
Recipient Condition Address Book Number Description
e O Structure Type
BU1OR9 112<last two digits of your
user ID>
U s
Accounting Department
<last two digits of your
W<last two digits
of your user ID>
BUNOT1OR9 4800
A I user ID>
Josephson, Michael
O
3. Click OK.
l &
n a
r
This concludes the activity. Do not continue.
te
I n
c le
r a
O
Course Review
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 ______________________________________________________________________