Skip to Content
author's profile photo Former Member
Former Member

Leave Request Workflow: Rule resolution is note working

Hi Everyone,

I have a small query but at this point of time, it is very critical as we have our Client go live by 18 Oct.

I have created a rule to detemine the agent of the Approval Task. When I simulate the rule it gives the expected result but when LR workflow is triggered from Portal at that point of time Rule resolution is not working and since I made the task as General task hence WF is sending the Workitem to all the system user.

Please help me getting the solutionfor the said issue ASAP.

Waiting for any kind of help on this!!

Thanks & Regards,

Vikash

Edited by: VIKASH GUPTA on Oct 5, 2009 12:39 PM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Oct 05, 2009 at 10:55 AM

    Please check the container values of that particular step.

    Because input to the rules might not be transfered and also check the binding from task to rule.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Dirk,

      Thanks for your inputs.

      My rule is working now. The problem with my rule was in the the Importing parameter of my rule I declare MANAGER as mandatory parameter but when no manager was supplied from the WF, in that case RULE was not working.

      I handled the code in such a way that if manager is not supplied from ESS portal then find the manager of WF initiator in rule itself and if no manager is found at any level then populate the WF-ADMIN User ID in the Actor tab.

      Anyways thanks alot for your input!

      Cheers,

      Vikash

  • author's profile photo Former Member
    Former Member
    Posted on Oct 06, 2009 at 01:38 PM

    My rule is working now. The problem with my rule was in the the Importing parameter of my rule, I declared MANAGER as mandatory parameter but when no manager was supplied from the WF, in that case RULE was not working.

    I changed the Manadatory parameter to optional and it workded out.

    If you are not sure that a perticular value will be available to a container from which binding is done, NEVER declare parameters as mandatory.

    Cheers,

    Vikash.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Just want to share my solution to the same problem. My user decision was also getting stuck with "WF-BATCH" user and agents were not being resolved. The rule was just determining immediate supervisor of the user currently executing the step. For this, i was calling a BAPI (HR BAPI) with a parameter value "USERID = sy-uname", assuming sy-uname contains the user currently executing the step. unfortunately, that was wrong! What i could understand is that a rule was somehow being executed by WF user instead of the user executing the step.

      Anyways, i resolved the issue by passing desired username value and it worked!!!

      Regards

      Salman

      FFC Pakistan

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.