Professional Documents
Culture Documents
Programming Workflow Activity Guide - 2
Programming Workflow Activity Guide - 2
Programming Workflow Activity Guide - 2
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