cancel
Showing results for 
Search instead for 
Did you mean: 

Leave WF: Issue in sending Leave doc to a manager otherthan imm.superior

former_member696081
Participant
0 Kudos
65

Hi Experts,

I am working on Leave workflow. My issue is when an employee applies for leave of Past date then it should go to DGM other than Immediate superior. Its sending a workitem to DGM correctly but in Portal manager coloumn is mandatory if the employee enters the immediate manager id overthere then that manager is also getting the workitem. In this case manager should not get the workitem. And if the employee enters a manager name other than his reporting than its not sending the workitem to the immediate superior.

How can I control this?

Can anybody please suggest me how to overcome this?

Regards.

Ranganadh.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member554978
Active Contributor
0 Kudos

Hi,

Inside your workflow , put the check condition before you send the workitem.

Condition shud be like this:

if manager ID EX(It has value) and

DGM ID EX.

Then in your activity you shud pass the agent as DGM, thru your binding

Thanks and Regards,

Swaminathan

former_member696081
Participant
0 Kudos

Hi Swaminathan,

Thank You for the reply.

Through workflow its sending workitem to DGM only. But in the portal in managers inbox when he clicks on any workitem of leaves its triggering an RFC in that RFC its displaying the total list of documents in that list only the workitem is appearing.

the RFC is "Pt_Arq_Reqlist_Get".

in Agents I can able to see only DGMs ID. So I think that workitem is received by DGM only but as per the logic in the RFC manager is getting the workitem details.

Can you please suggest me anything on this?

Thank you.

Regards.

Ranganadh.