Quantcast
Channel: SCN : Unanswered Discussions - SAP Business Process Management
Viewing all articles
Browse latest Browse all 3160

Problem with WF Rule Agent determination (responsibilities) with Container having multiple attributes

$
0
0

Hi All,

I have created WF Rule, category: Agent Determination: Responsibilities. In the container of the rule I have added 2 attributes. To simplify the explanation I would say the attributes are:

1. Vendor

2. Company code

 

Consider Secondary Priorities flag is set and I have maintained Responibilities with priority:

Highest priority: 99 with attributes: Vendor: 1234 and Company Code: empty field.

Second option: 98 with attributes: Vendor: empty and Company Code 1000.

 

Requirement is if there is supplied Vendor - check it's value and determine agent (that's why I've set priority 99 to first responsibility).

If Vendor is not supplied or doesn't match the responsibility 99 - try second responsibility with lower priority 98 (as in the example check if Company code is 1000).

 

I'm facing the problem in rule simulation and actual WF tests:

- if Vendor field is empty then agent are determined from responisbility with highest priority 99 where Vendor should be = 1234. This is not correct.

- if Vendor field is 1234 -> same agent from responsibility 99 are found. This is correct becase Vendor matches.

- only in Vendor field has incorrect value (5555, * or whatever) the it checks responsibility with lower priority - 98 and evaluates if Company code is correct.

 

As far as I understand I should always pass values to the Rule container attributes, to be able to determine agents correctly.

 

As I'm calling the rule programatically with FM RH_GET_ACTORS, should I fill container attributes with dummy values when I don't have any (if I don't have Vendor i will fill rule container with vendor - 'empty')?


Viewing all articles
Browse latest Browse all 3160

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>