8401: -- fnd_message.set_name('ENG','ENG_NIR_CANNOT_APPROVE');
8402: -- app_exception.raise_exception;
8403:
8404: l_message_text := fnd_message.get_String('ENG','ENG_NIR_CANNOT_APPROVE');
8405: wf_core.token('ERRCODE', l_message_text);
8406: wf_core.raise('WFENG_NOTIFICATION_FUNCTION');
8407:
8408: end if;
8409:
8402: -- app_exception.raise_exception;
8403:
8404: l_message_text := fnd_message.get_String('ENG','ENG_NIR_CANNOT_APPROVE');
8405: wf_core.token('ERRCODE', l_message_text);
8406: wf_core.raise('WFENG_NOTIFICATION_FUNCTION');
8407:
8408: end if;
8409:
8410:
9648: end if;
9649:
9650: -- SYNCHMODE: Not allowed
9651: if (itemkey = wf_engine.eng_synch) then
9652: Wf_Core.Token('OPERATION', 'Wf_Standard.VotForResultType');
9653: Wf_Core.Raise('WFENG_SYNCH_DISABLED');
9654: end if;
9655:
9656: -- Always clear the cache first
9649:
9650: -- SYNCHMODE: Not allowed
9651: if (itemkey = wf_engine.eng_synch) then
9652: Wf_Core.Token('OPERATION', 'Wf_Standard.VotForResultType');
9653: Wf_Core.Raise('WFENG_SYNCH_DISABLED');
9654: end if;
9655:
9656: -- Always clear the cache first
9657: -- Bug2885157
9823: return;
9824:
9825: exception
9826: when wf_invalid_command then
9827: Wf_Core.Context('Wf_Standard', 'VoteForResultType', itemtype,
9828: itemkey, to_char(actid), funcmode);
9829: Wf_Core.Token('COMMAND', l_voting_option);
9830: Wf_Core.Raise('WFSQL_COMMAND');
9831: when others then
9825: exception
9826: when wf_invalid_command then
9827: Wf_Core.Context('Wf_Standard', 'VoteForResultType', itemtype,
9828: itemkey, to_char(actid), funcmode);
9829: Wf_Core.Token('COMMAND', l_voting_option);
9830: Wf_Core.Raise('WFSQL_COMMAND');
9831: when others then
9832: Wf_Core.Context('Wf_Standard', 'VoteForResultType',itemtype,
9833: itemkey, to_char(actid), funcmode);
9826: when wf_invalid_command then
9827: Wf_Core.Context('Wf_Standard', 'VoteForResultType', itemtype,
9828: itemkey, to_char(actid), funcmode);
9829: Wf_Core.Token('COMMAND', l_voting_option);
9830: Wf_Core.Raise('WFSQL_COMMAND');
9831: when others then
9832: Wf_Core.Context('Wf_Standard', 'VoteForResultType',itemtype,
9833: itemkey, to_char(actid), funcmode);
9834: raise;
9828: itemkey, to_char(actid), funcmode);
9829: Wf_Core.Token('COMMAND', l_voting_option);
9830: Wf_Core.Raise('WFSQL_COMMAND');
9831: when others then
9832: Wf_Core.Context('Wf_Standard', 'VoteForResultType',itemtype,
9833: itemkey, to_char(actid), funcmode);
9834: raise;
9835:
9836:
10022:
10023:
10024: exception
10025: when others then
10026: wf_core.context('Eng_Workflow_Util',
10027: 'PeopleLevelVoteCount',
10028: to_char(gid),
10029: ResultCode );
10030: raise;
10116: end if;
10117:
10118: -- SYNCHMODE: Not allowed
10119: if (itemkey = wf_engine.eng_synch) then
10120: Wf_Core.Token('OPERATION', 'Eng_Workflow_Util.PeopleLevelVoteForResultType');
10121: Wf_Core.Raise('WFENG_SYNCH_DISABLED');
10122: end if;
10123:
10124: -- Always clear the cache first
10117:
10118: -- SYNCHMODE: Not allowed
10119: if (itemkey = wf_engine.eng_synch) then
10120: Wf_Core.Token('OPERATION', 'Eng_Workflow_Util.PeopleLevelVoteForResultType');
10121: Wf_Core.Raise('WFENG_SYNCH_DISABLED');
10122: end if;
10123:
10124: -- Always clear the cache first
10125: -- Bug2885157
10342:
10343:
10344: exception
10345: when wf_invalid_command then
10346: Wf_Core.Context('Eng_Workflow_Util', 'PeopleLevelVoteForResultType', itemtype,
10347: itemkey, to_char(actid), funcmode);
10348: Wf_Core.Token('COMMAND', l_voting_option);
10349: Wf_Core.Raise('WFSQL_COMMAND');
10350: when others then
10344: exception
10345: when wf_invalid_command then
10346: Wf_Core.Context('Eng_Workflow_Util', 'PeopleLevelVoteForResultType', itemtype,
10347: itemkey, to_char(actid), funcmode);
10348: Wf_Core.Token('COMMAND', l_voting_option);
10349: Wf_Core.Raise('WFSQL_COMMAND');
10350: when others then
10351: Wf_Core.Context('Eng_Workflow_Util', 'PeopleLevelVoteForResultType',itemtype,
10352: itemkey, to_char(actid), funcmode);
10345: when wf_invalid_command then
10346: Wf_Core.Context('Eng_Workflow_Util', 'PeopleLevelVoteForResultType', itemtype,
10347: itemkey, to_char(actid), funcmode);
10348: Wf_Core.Token('COMMAND', l_voting_option);
10349: Wf_Core.Raise('WFSQL_COMMAND');
10350: when others then
10351: Wf_Core.Context('Eng_Workflow_Util', 'PeopleLevelVoteForResultType',itemtype,
10352: itemkey, to_char(actid), funcmode);
10353: raise;
10347: itemkey, to_char(actid), funcmode);
10348: Wf_Core.Token('COMMAND', l_voting_option);
10349: Wf_Core.Raise('WFSQL_COMMAND');
10350: when others then
10351: Wf_Core.Context('Eng_Workflow_Util', 'PeopleLevelVoteForResultType',itemtype,
10352: itemkey, to_char(actid), funcmode);
10353: raise;
10354:
10355:
10572: --
10573: -- If call to CompleteActivity cannot find activity, return null
10574: -- and wait for master flow
10575: --
10576: if ( wf_core.error_name = 'WFENG_NOT_NOTIFIED' ) then
10577: wf_core.clear;
10578: x_resultout := wf_engine.eng_null;
10579: IF g_debug_flag THEN
10580: Write_Debug('call to CompleteActivity cannot find activity. . . ');
10573: -- If call to CompleteActivity cannot find activity, return null
10574: -- and wait for master flow
10575: --
10576: if ( wf_core.error_name = 'WFENG_NOT_NOTIFIED' ) then
10577: wf_core.clear;
10578: x_resultout := wf_engine.eng_null;
10579: IF g_debug_flag THEN
10580: Write_Debug('call to CompleteActivity cannot find activity. . . ');
10581: END IF ;
11408: END IF ;
11409:
11410: -- Get Web Agent
11411: l_apps_web_agent := fnd_web_config.plsql_agent(help_mode => 'APPS') ;
11412: l_wf_web_agent := WF_CORE.Translate('WF_WEB_AGENT') ;
11413:
11414:
11415:
11416: IF p_url_type = Eng_Workflow_Util.G_MONITOR_ACCESSKEY