DBA Data[Home] [Help]

PACKAGE: APPS.AS_SCORECARD_CUHK

Source


1 PACKAGE AS_SCORECARD_CUHK AUTHID CURRENT_USER AS
2 /* $Header: asxcscds.pls 115.6 2002/11/06 00:40:32 appldev ship $ */
3 
4 -- Start of Comments
5 -- Package Name     : AS_SCORECARD_CUHK
6 --
7 -- Purpose          : If user want to implement custom scoring engine, create
8 --                    a package body for this spec.
9 --
10 -- NOTE             : Please do not 'commit' in the package body. Once the
11 --                    transaction is completed, Oracle Application code will
12 --                    issue a commit.
13 --
14 --                    This user hook will be called while creating and updating
15 --                    lead from OSO leads tab, Telesales leads tab, and lead
16 --                    import program when scoring engine is called.
17 --                    The calling package: AS_SCORECARD_PVT.Get_Score
18 --
19 -- History          :
20 --       08/14/2001   SOLIN   Created
21 -- End of Comments
22 
23 /*-------------------------------------------------------------------------*
24  |
25  |                             PUBLIC CONSTANTS
26  |
27  *-------------------------------------------------------------------------*/
28 
29 /*-------------------------------------------------------------------------*
30  |
31  |                             PUBLIC DATATYPES
32  |
33  *-------------------------------------------------------------------------*/
34 
35 /*-------------------------------------------------------------------------*
36  |
37  |                             PUBLIC VARIABLES
38  |
39  *-------------------------------------------------------------------------*/
40 
41 /*-------------------------------------------------------------------------*
42  |
43  |                             PUBLIC ROUTINES
44  |
45  *-------------------------------------------------------------------------*/
46 
47 -- Start of Comments
48 --
49 --   API name   : Get_Score_Pre
50 --   Parameters :
51 --   IN         :
52 --       p_api_version_number: For 11i Oracle Sales application, this is 2.0.
53 --       p_init_msg_list     : Initialize message stack or not. It's
54 --                             FND_API.G_FALSE by default.
55 --       p_validation_level  : Validation level for pass-in values.
56 --                             It's FND_API.G_VALID_LEVEL_FULL by default.
57 --       p_commit            : Whether commit the whole API at the end of API.
58 --                             It's FND_API.G_FALSE by default.
59 --
60 --                             The above four parameters are standard input.
61 --       p_sales_lead_id     :
62 --                             This is the sales lead identifier. Pass the
63 --                             sales_lead_id which you want to compute the
64 --                             score.
65 --       p_scorecard_id      :
66 --                             Pass the scorecard_id of the scorecard which
67 --                             you want to use for scoring the lead.
68 --   OUT        :
69 --       x_score             :
70 --                             This is the score of the lead. User's score
71 --                             engine should return this score and Oracle API
72 --                             will rank the lead base on this score.
73 --       x_return_status     :
74 --                             The return status. If your code completes
75 --                             successfully, then FND_API.G_RET_STS_SUCCESS
76 --                             should be returned; if you get an expected error,
77 --                             then return FND_API.G_RET_STS_ERROR; otherwise
78 --                             return FND_API.G_RET_STS_UNEXP_ERROR.
79 --       x_msg_count         :
80 --                             The message count.
81 --                             Call FND_MSG_PUB.Count_And_Get to get the message
82 --                             count and messages.
83 --       x_msg_data          :
84 --                             The messages.
85 --                             Call FND_MSG_PUB.Count_And_Get to get the message
86 --                             count and messages.
87 --
88 --                             The above three parameters are standard output
89 --                             parameters.
90 --
91 PROCEDURE Get_Score_Pre(
92     p_api_version_number    IN  NUMBER,
93     p_init_msg_list         IN  VARCHAR2 := FND_API.G_FALSE,
94     p_validation_level      IN  VARCHAR2 := FND_API.G_VALID_LEVEL_FULL,
95     p_commit                IN  VARCHAR2 := FND_API.G_FALSE,
96     p_sales_lead_id         IN  NUMBER,
97     p_scorecard_id          IN  NUMBER,
98     x_score                 OUT NUMBER,
99     x_return_status         OUT VARCHAR2,
100     x_msg_count             OUT NUMBER,
101     x_msg_data              OUT VARCHAR2);
102 
103 
104 END AS_SCORECARD_CUHK;
105