I have created one package.
In the package specification I declared one variable l_emp_name varchar2(100);
which I am using in the package body in various procedures.
In first procedure launch_workflow()
I assign a value to that variable.
e.g. l_emp_name:='Sanket Katariya';
After that workflow launches.
in approver_1 procedure
I get value of l_emp_name
as 'sanket katariya'
, but in apporver_2 procedure
I am getting a null
value.
If I set l_emp_name:='Sanket Katariya';
in approver_1
again than I get its value in rest of procedure approver_2, approver_3,etc.
So logically that variable should be accessible in all procedures, right?
Please help me to understand this. Why do I need to set value to in approver_1 procedure
?