21: BEGIN
22: IF (funmode = 'RUN')
23: THEN
24: -- Get the customer id from wf attribute
25: l_customer_id := WF_ENGINE.GetItemAttrNumber (
26: itemtype
27: ,itemkey
28: ,CCT_INTERACTIONKEYS_PUB.KEY_CUSTOMER_ID
29: );
41:
42: IF l_overdue
43: THEN
44: -- Customer is Overdue return Yes to workflow
45: resultout := wf_engine.eng_completed || ':Y';
46: ELSE
47: -- Customer is Not Overdue return No to workflow
48: resultout := wf_engine.eng_completed || ':N';
49: END IF;
44: -- Customer is Overdue return Yes to workflow
45: resultout := wf_engine.eng_completed || ':Y';
46: ELSE
47: -- Customer is Not Overdue return No to workflow
48: resultout := wf_engine.eng_completed || ':N';
49: END IF;
50:
51: END IF;
52:
76: BEGIN
77: IF (funmode = 'RUN')
78: THEN
79: -- set default result
80: resultout := wf_engine.eng_completed ;
81:
82: -- Get the customer id from wf attribute
83: l_customer_id := WF_ENGINE.GetItemAttrNumber (
84: itemtype
79: -- set default result
80: resultout := wf_engine.eng_completed ;
81:
82: -- Get the customer id from wf attribute
83: l_customer_id := WF_ENGINE.GetItemAttrNumber (
84: itemtype
85: ,itemkey
86: ,CCT_INTERACTIONKEYS_PUB.KEY_CUSTOMER_ID
87: );
86: ,CCT_INTERACTIONKEYS_PUB.KEY_CUSTOMER_ID
87: );
88:
89: -- Get the customer id from wf attribute
90: l_call_id := WF_ENGINE.GetItemAttrText (
91: itemtype
92: ,itemkey
93: ,'OCCTMEDIAITEMID'
94: );