Oracle Approvals Management Engine (AME)
Oracle Approvals Management Engine (AME)
10
Steps 1-4 are only covered briefly here and are quite involved, we are going to instead concentrate on step 5
11
13
14
For quoting there are several others to setup, these are module specific
'ASO : Enable Approvals' = Yes 'ASO : Allow Skip Approvers' = No
15
AME Approvers
AME Approvers must be setup as FND_USERs
16
Each OraApps module has different specific values, but the same general setup process holds true for each.
17
18
20
AME Dashboard
21
AME Attributes
AME Attributes are the variables which are evaluated by your AME Process as it runs AME Attributes can be Header or Line Item Dynamic Attributes are filled in at run time by an SQL query AME Attribute values are all stored internally as string values limited to a length of 100 characters Most customization activity is around Attributes
22
Boolean
Currency
Date
True or False (amount,denomination,conversion method) YYYY:MON:DD:HH24:MI:SS Integer or decimal (using users character set decimal point)
Number
String
23
Currency Attributes
An SQL routine which populates a Currency Attribute must return three columns:
Amount = decimal value Denomination = 3 Char Currency Code Conversion Method = Corporate
24
Number Attributes
SQL routines should run the numeric values through the PL/SQL function: fnd_number.number_to_canonical
25
Date Attributes
Stored as a string There is a PL/SQL date format mask you can use to format dates:
ame_util.versionDateFormatModel YYYY:MON:DD:HH24:MI:SS
26
Dynamic Attributes
Dynamic attributes can be populated by an SQL expression.
Select to_char(sysdate, ame_util.versionDateFormatModel) from dual;
All Attributes are stored internally as strings. Must return one row. The :transactionid is passed as a bind variable to the query. This is the key for the AME processes execution. Limitation on SQL of 2000 characters
27
PL/SQL Usage
It is often advantageous to call a PL/SQL function rather than embed an SQL script in the attribute definition. This has the added benefit of preventing functional users who can setup AME from modifying the underlying SQL.
Drawback is that Currency values require three PL/SQL function calls.
28
PL/SQL Example
29
30
Conditions
There are two types of conditions: Regular Conditions Simple logic statements
Technical Review Required = Y Discount is greater than -12 and less than or equal to -7.23
31
Regular Conditions
32
Regular Conditions
33
34
Action Types
Action Types are groups of similar actions that build your approval list for you. Common Predefined Action Rule Types are:
Chain of authority action types List Modification action types Post List Approval Group Pre List Approval Group
35
Position hr position
hr position level
chain of authority includes requestor's manager and then the final approver chains of authority based on number of supervisory levels
36
Job Level
37
38
approvals up to at most level 2 approvals up to at most level 3 approvals up to at least level 2 approvals up to at least level 3
39
nonfinal authority
extend the chain of authority past an approver
40
41
42
43
Approval Groups
Either static or dynamic lists of approvers Approvals can be:
Serial Voting (one after another, all for approval) Consensus Voting (majority wins) First-Responder-Wins Voting (parallel voting) Order-Number Voting
(one after another, all for approval) (allows for parallel voting)
44
Approval Groups
45
Rules
Rules are where one or more conditions result in an action. This is what everyone has been waiting for.
46
47
48
49
50
51
52
My Suggestion
AME is complex, dont try to understand it all at once Put in some OraApps Module Transactions Dive into AME and just try some simple test cases You will end up making changes With the Test Workbench you can easily see how your setups are working
53
Approvals Management Engine allows for complex approval processes Customizations are primarily accomplished with minimal code to pull in new Attribute values This product is complex and the documentation is very difficult to understand, hopefully this presentation has given you a brief introduction to Approvals Management Engine
54
Summary
My contact information:
John Peters [email protected] http://www.jrpjr.com
55