1 package AS_LEAD_ABANDON_WF AUTHID CURRENT_USER as
2 /* $Header: asxslabs.pls 115.2 2002/11/06 00:49:25 appldev ship $ */
3
4
5 -- PROCEDURE StartProcess
6 --
7 -- DESCRIPTION: Procedure is called to start the structured inbound workflow
8 -- process. Assigns attributes such as message ID, message size,
9 -- sender name, domain name, user id , pwd and priority. Creates
10 -- and kicks of the workflow.
11 --
12 -- IN
13 -- sales_lead_id - unique identifier of the sales_lead.
14 -- OUT
15 --
16 -- None
17
18 PROCEDURE StartProcess(
19 p_sales_lead_id in INTEGER,
20 p_assigned_resource_id in INTEGER,
21 x_return_status in out VARCHAR2,
22 x_item_type out VARCHAR2,
23 x_item_key out VARCHAR2 ) ;
24
25
26 -- PROCEDURE GetAbandonTime
27 --
28 -- DESCRIPTION Retrieves Time to abandon lead
29 --
30 -- IN
31 -- itemtype - type of the current item
32 -- itemkey - key of the current item
33 -- actid - process activity instance id
34 -- funcmode - function execution mode. Set by the engine as either 'RUN',
35 -- 'CANCEL', or 'TIMEOUT'
36 -- OUT
37 -- result
38 -- - COMPLETE[:<result>]
39 -- activity has completed with the indicated result
40 -- - WAITING
41 -- activity is waiting for additional transitions
42 -- - DEFERED
43 -- execution should be defered to background
44 -- - NOTIFIED[:<notification_id>:<assigned_user>]
45 -- activity has notified an external entity that this
46 -- step must be performed. A call to wf_engine.CompleteActivty
47 -- will signal when this step is complete. Optional
48 -- return of notification ID and assigned user.
49 -- - ERROR[:<error_code>]
50 -- function encountered an error.
51 -- None
52
53 PROCEDURE GetAbandonTime (
54 itemtype in VARCHAR2,
55 itemkey in VARCHAR2,
56 actid in NUMBER,
57 funcmode in VARCHAR2,
58 result out VARCHAR2 );
59
60
61 -- PROCEDURE GetAbandonAction
62 --
63 -- DESCRIPTION Retrieves abandon decision
64 --
65 -- IN
66 -- itemtype - type of the current item
67 -- itemkey - key of the current item
68 -- actid - process activity instance id
69 -- funcmode - function execution mode. Set by the engine as either 'RUN',
70 -- 'CANCEL', or 'TIMEOUT'
71 -- OUT
72 -- result
73 -- - COMPLETE[:<result>]
74 -- activity has completed with the indicated result
75 -- - WAITING
76 -- activity is waiting for additional transitions
77 -- - DEFERED
78 -- execution should be defered to background
79 -- - NOTIFIED[:<notification_id>:<assigned_user>]
80 -- activity has notified an external entity that this
81 -- step must be performed. A call to wf_engine.CompleteActivty
82 -- will signal when this step is complete. Optional
83 -- return of notification ID and assigned user.
84 -- - ERROR[:<error_code>]
85 -- function encountered an error.
86 -- None
87
88 PROCEDURE GetAbandonAction (
89 itemtype in VARCHAR2,
90 itemkey in VARCHAR2,
91 actid in NUMBER,
92 funcmode in VARCHAR2,
93 result out VARCHAR2 );
94
95
96 -- PROCEDURE GetResourceGroup
97 --
98 -- DESCRIPTION Retrieves abandon decision
99 --
100 -- IN
101 -- itemtype - type of the current item
102 -- itemkey - key of the current item
103 -- actid - process activity instance id
104 -- funcmode - function execution mode. Set by the engine as either 'RUN',
105 -- 'CANCEL', or 'TIMEOUT'
106 -- OUT
107 -- result
108 -- - COMPLETE[:<result>]
109 -- activity has completed with the indicated result
110 -- - WAITING
111 -- activity is waiting for additional transitions
112 -- - DEFERED
113 -- execution should be defered to background
114 -- - NOTIFIED[:<notification_id>:<assigned_user>]
115 -- activity has notified an external entity that this
116 -- step must be performed. A call to wf_engine.CompleteActivty
117 -- will signal when this step is complete. Optional
118 -- return of notification ID and assigned user.
119 -- - ERROR[:<error_code>]
120 -- function encountered an error.
121 -- None
122
123 PROCEDURE GetResourceGroup (
124 itemtype in VARCHAR2,
125 itemkey in VARCHAR2,
126 actid in NUMBER,
127 funcmode in VARCHAR2,
128 result out VARCHAR2 );
129
130 END AS_LEAD_ABANDON_WF ;
131