Business event don't fire, when updating the a lease through API.
When we amend a lease the business event of a standard concurrent request is fired, from Applications, but when the same is done by API the business event is not fired.
We have a custom concurrent request, which is fired as a result of business event completion.
business event:
oracle.apps.fnd_request_completed
The following is our code:
FUNCTION process
(
p_subscription_guid in RAW,
p_event in out WF_EVENT_T
) RETURN VARCHAR2 is
l_event_data CLOB;
lv_tag VARCHAR2(100);
l_param_list wf_parameter_list_t;
l_param_name VARCHAR2 (240);
l_param_value VARCHAR2 (2000);
l_event_name VARCHAR2(100);