on 09-04-2013 3:11 PM
Hi Experts,
I'm using an activity step and where I am assigning agent using a workflow container element. I have also assigned a default rule to task of step in case workflow does not fetch any agent for that step. While running the workflow the default rule is not working, workflow log shows below error :
Agent determination for step '0000000023' failed;
Result of agent resolution does not agree with agents of task;
When I tested task alone through SWUS, rule worked fine and proper agent got assigned from the rule. But when testing it through workflow, rule doesn't seem to work. I seached on SCN and found similar issue in below mentioned thread
http://scn.sap.com/thread/1929785
I tried but couldn't find out the solution.If anyone has faced such issue earlier then please let me know what could be the possible reason.
Rule works fine in Simulation and Standalone run of task but does not work in workflow.
Thanks,
Vishesh
G'day,
To the best of my knowledge a Default Rule at Task (TS) level only applies if no other responsible agent determination is used. Typically it's for TS tasks that run independently outside of a Workflow. If you include the Task in a WF and don't specify any agent determination at the Step level it will also be invoked.
In your case you have a container based Agent expression at the step so the default rule is never invoked.
If you want a fallback if the expression agent isn't valid you'll need a Function module rule that accepts the Expression agent as an import parameter (and in such cases i normally bind in the Task number so i can code validation against possible agents) and then validates it. If its valid the FM just returns the same agent, otherwise it calls the fallback rule that you're currently trying to use as the default rule.
Have fun,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Default Rule will only execute , if you are not maintain any responsible agent in the step.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vishesh,
Try using a static user id for the task like 'USTESTUSER' where TESTUSER is the user id and check if its working fine. If it still not find the agent correct the task properties and make general task,Check any excluded agents are there etc.
If it work then check your rule for finding the agent. It has to return user id concatenated with US or else check the workflow container values in SWIA passing to agents, or check binding between rule container and workflow container.
Regards,
Jayaraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
In that thread, the problem was that he was returning CP values (instead of S or US).
What are you returning?
Have you tried setting it to General task?
" I have also assigned a default rule to task of step in case workflow does not fetch any agent for that step"
In which scenario does it fail - is it using the default rule?
regards
Rick Bakker / hanabi technology
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.