Finding a WI from a Workflow

Catherall, Andy M andy.m.catherall at csplc.com
Thu May 31 08:00:04 EDT 2007


Hi All
 
I am trying to build an FM role/rule to find agents for the deadline
monitoring feature of a workflow step. It will be added to the 'rule'
section of the Deadline notification. The intention is (in part) to send
the warning to those individuals who 'own' the work item (ie those who
have it visible in their inbox due to it having been
reserved/executed/forwarded). 
 
However, it dawned on me that I will need to know the WI ID in order to
search table SWWORGTASK or use FM RH_WI_ORGTASK_READ. Anyone know how I
can determine the WI ID of the work item when the FM rule is called?
 
Just to make life really entertaining, I probably have some
parallel-processing steps to contend with as well, so one Activity/Step
definition in the workflow could mean several work item ids. In this
case, I especially need to know which work item is which, so that I send
the deadline to the correct agents. However, if I search SWWWIHEAD for
work items that are active, have the correct deadine values, and are in
the correct workflow (via _WORKITEM from the workflow container), this
scenario means I may still end up with several WI IDs...
 
 
It just seems odd that the step does not know it's own runtime WI
number...
 
I'm using 4.6c
 
Cheers
Andy 
 
P please don't print this e-mail unless you really need to. 
 
-----------------------------------------
 
This email (including any attachment) is confidential and may contain privileged information. If you are not the intended recipient or receive it in error, you may not use, distribute, disclose or copy any of the information contained within it and it may be unlawful to do so. If you are not the intended recipient please notify us immediately by returning this e-mail to us at mailerror at csplc.com and destroy all copies.
Any views expressed by individuals within this e-mail do not necessarily reflect the views of Cadbury Schweppes Plc or any of its subsidiaries' or affiliates'. This email does not constitute a binding offer, acceptance, amendment, waiver or other agreement, unless such intention is clearly stated in the body of the email.  Whilst we have taken reasonable steps to ensure that this e-mail and attachments are free from viruses, recipients are advised to subject this mail to their own virus checking, in keeping with good computing practice. 
Please note that e-mail received by Cadbury Schweppes Plc or its subsidiaries or affiliates may be monitored in accordance with applicable law. 

Cadbury Schweppes plc registered in England, Company Number 00052457
whose Registered Office is at 25 Berkeley Square, London, W1J 6HB United Kingdom
Telephone:+44 (0) 20 7409 1313 Fax:+44 (0) 20 7830 5200 
-----------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20070531/15f69fee/attachment.htm


More information about the SAP-WUG mailing list