_RULE_RESULT binding

Sample, Rick Rick.Sample at graybar.com
Fri Aug 1 10:07:49 EDT 2008


I understand. It worked before, and you would expect it to work after
upgrade.
 
If a fix will indeed terminate the task and completes the processing as
if a user manually completed the task, 
I also could use this in at least one WF where I would rather not have a
terminating event. 
 
Sorry I could not provide a solution but confirmed it works the same on
my system / version. 
Please let me know if/when you do have a solution.
 
Happy Workflowing Sudhir,
Rick


________________________________

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Sudhir Pargaonkar
Sent: Thursday, July 31, 2008 5:37 PM
To: SAP Workflow Users' Group
Subject: Re: _RULE_RESULT binding


Hi Rick,

You are correct, I am using process control to set workitem to
"obsolete".. since the task is not 'Completed' by any agent, and agents
have missed the deadline, do not want to use terminating event and
'Complete' the task.. My design is similar to following:

http://help.sap.com/saphelp_nw04/helpdata/en/c5/e4b97e453d11d189430000e8
29fbbd/content.htm

I have been using this approach for years now. and had no issues.

Regards,
Sudhir


2008/7/31 Sample, Rick <Rick.Sample at graybar.com>


	Sudhir,
	 
	I still may be a little fuzzy on the design. Your task with the
"Latest / Requested End" modeled deadline ends how? 
	From the verbiage here it sounds like you are killing the task
via some type of Process Control 
	like,  "Cancel Work Item" step, "Set to task to obsolete" step,
etc. 
	Yes?
	 
	If so, I don't think this 'should' work. Kill task / WFs
generally mean just that. Kill it and stop processing.
	I avoid these as much as possible. (Took them all out and never
use them for this reason) 
	Assuming I have followed your design. I created a quick hack in
my sandbox and 
	can verify that this does not work for me either. 
	 
	Have you tried to use a terminating event to end the task?
Instead of the Kill, you could replace 
	with a Raise Term event step. (?) Then, the Task will definitely
complete its processing and flow correctly.
	 
	But if it worked before, you should be able to get SAP to make
corrections for you. 
	Never used the new Process Control (Kill) steps but let me know.

	 
	Rick Sample | Office (314) 573-5700 | rick.sample at graybar.com 
	www.graybar.com <http://www.graybar.com/>  - Works to Your
Advantage 
	 
	
	
________________________________

	
	From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu]
On Behalf Of Sudhir Pargaonkar
	
	Sent: Thursday, July 31, 2008 3:08 PM 

	To: SAP Workflow Users' Group
	Subject: Re: _RULE_RESULT binding
	

	Sure Rick.. would be great.. my release is
	SAP_BASIS    700    0013    SAPKB70013    SAP Basis Component
	
	I created a method using FM "SAP_WAPI_WORKITEM_RECIPIENTS".. I
pass workitem ID to this FM before I set it as obsolete.. Once I get
list of all agents from here, I am sending them reminder emails... 
	
	can not use After Method on the task since no one is executing
the workitem when the deadline is reached. It is being set as obsolete. 
	
	do let me know if you can get the binding to work and get
_RULE_RESULT values back to workflow container in your release. 
	
	Thanks.
	sudhir
	
	
	2008/7/31 Sample, Rick <Rick.Sample at graybar.com>
	

		Ah! I see now. I was reading _RULE_RESULT and "thinking"
_WI_ACTUAL_AGENT. <blush> Sorry!
		I don't think I have a WF that passes all role agents.
Interesting. 
		 
		If not some binding issue and currently no SAP Note to
apply (or no SAP Note created for this issue), 
		I would say just create a new method and plop it in the
After method on the task. 
		If a solution becomes available later you, you would not
have to rip the whole WF Template apart and take out the BG tasks. 
		You would only need to remove the method on the task. A
tad simpler!
		 
		** Though I would make serious effort to get SAP to
correct! 
		 
		Please let me know when you have a solution. I will
create a quick test on this just to see for myself and on my release.
		[SAP_BASIS 700 0014 SAPKB70014 SAP Basis Component]
		 
		I will let you know what shakes out for me it you are
interested. 
		 
		Rick Sample | Office (314) 573-5700 | 
rick.sample at graybar.com 
		
		www.graybar.com <http://www.graybar.com/>  - Works to
Your Advantage 

________________________________

		
		From: sap-wug-bounces at mit.edu [mailto:
sap-wug-bounces at mit.edu] On Behalf Of Sudhir Pargaonkar
		
		Sent: Thursday, July 31, 2008 1:51 PM 
		
		To: SAP Workflow Users' Group
		
		Subject: Re: _RULE_RESULT binding
		
		
		Hi Rick,
		
		I understand that WF-BATCH would be the user that would
set workitem as obsolete. Let me explain the scenario:
		
		workitem is in the inbox of say 5 users determined by a
agent determination rule. as per thomas email, when any one of them
executes the workitem, we know "Executed By" user as well as list of
these 5 users in workflow container if we have a binding between
_RULE_RESULT and a workflow container element.
		
		Issue is, if we have a modeled deadline.. and WF-BATCH
sets workitem to obsolete status using process control step. In this
case, we still need list of those 5 users who had the workitem in their
inbox. So that we can send them an email saying, they have missed the
deadline. In this scenario, contents of _RULE_RESULT are not transfered
to workflow container even if we have correct binding. 
		
		hope that explains the situation. I am also in the
process of creating a method and background step to read agents of the
workitem to avoid this problem. 
		
		Let me know if there is another solution to keep the
design clean. 
		
		Thanks
		Sudhir
		
		
		2008/7/31 Sample, Rick <Rick.Sample at graybar.com>
		

			Thomas,

			Sorry, I may be jumping into the middle and I
may be missing something but I don't see the issue. 

			How is the task terminating? By the deadline
itself? i.e. an actual agent does not have to execute 

			the task for it to complete?

			>>Ran into the same issue, if the work item is
executed then the _Rule_Result 

			>>is populated and you have what you need.  

			An 'actual agent' executed the task, and you
have an agent. 

			>>But if not executed, like when a deadline is
reached, you get nothing - very annoying.

			If the deadline is reached, and no 'actual
agent' executed the task, I would think 

			you would not want to populate the _Rule_Result.
Would only have WF-BATCH as the agent 

			because WF-BATCH is the user that tripped the
Deadline. Not an agent. 

			Sudhir,

			>>note can not be applied as it doesn't match
correct version. 

			Hmmm... What version are you on? Service Patch
level?

			

			I will be upgrading another 4.6c to ECC6 soon,
so I have interest in this issue you are experiencing. 

			The last system I do not believe I had this
scenario.

			
			Rick Sample | Workflow Analyst/Developer
			11885 Lackland Road | Maryland Heights, MO 63146
| Office (314) 573-5700 | rick.sample at graybar.com 
			www.graybar.com <http://www.graybar.com/>  -
Works to Your Advantage 
			
			  
			
			
________________________________

			From: sap-wug-bounces at mit.edu [mailto:
sap-wug-bounces at mit.edu] On Behalf Of Maue, Thomas
			Sent: Thursday, July 31, 2008 12:05 PM 

			To: SAP Workflow Users' Group
			
			Subject: RE: _RULE_RESULT binding
			
			

			Sudhir,

			Ran into the same issue, if the work item is
executed then the _Rule_Result is populated and you have what you need.
But if not executed, like when a deadline is reached, you get nothing -
very annoying.

			I had to add a background step to return the
rule agents before routing the escalation to managers or sending an SAP
notification to agents.  Some of these were responsibilities type rules
so had to create a method to find agents since there was no
corresponding function module to execute.  

			Would have been a lot easier/cleaner if
_Rule_Result was populated!

			Regards,

			Thomas Maue

			
________________________________


			From: sap-wug-bounces at mit.edu [mailto:
sap-wug-bounces at mit.edu] On Behalf Of Sudhir Pargaonkar
			Sent: Thursday, July 31, 2008 10:39 AM
			To: SAP Workflow Users' Group
			Subject: _RULE_RESULT binding

			Hi All, 
			
			I am on ECC 6.0 system.. I want to get result of
agent determination rule into workflow container so that I can send all
these users reminder email once the deadline is reached. 
			
			In earlier systems, it used to work fine.. but
now, no values are being passed to workflow container even though the
binding is correct. I tried to apply SAP NOTE 707767 but it says, note
can not be applied as it doesnt match correct version. 
			
			any suggestions on how to fix this issue? I can
always create a new step and a method to find out list of agents
selected, but wanted to do it the right way..
			
			thanks
			Sudhir


	_______________________________________________
	SAP-WUG mailing list
	SAP-WUG at mit.edu
	http://mailman.mit.edu/mailman/listinfo/sap-wug
	
	


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20080801/86da7156/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 1877 bytes
Desc: External_files_GBLogo.gif
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20080801/86da7156/attachment.gif


More information about the SAP-WUG mailing list