Send Mail problem / Advance with dialog

Rick Sample Rick.Sample at gbe.com
Thu Jul 10 10:20:12 EDT 2003


I created a definition container for LASTAGENT and passed to the task.
Works as expected.
 
But maybe someone could explain the following: (I MUST be missing
something simple!)
In the log for the task selfitem.sendtaskdescription I inspect the
container elements.
For both SELFITEM and BATCHITEM objects, I drill down and I "see" the
person who executed the previous decision task
(i.e. the person I want to send the message) in the
CreatedByUser.NAMEWITHLEADINGUS.
Is there a way to use either of those objects to send this message from
a background task without passing in another container?
Seems like If I can "see" the user in these objects, I should be able
to access and use it?
I tried several different bindings but no luck.
 
Next question:
After I execute the background task from the decision task option, the
decision task is now
back in the users inbox (ends the decision task). I would like the
decision task to remain open. i.e. not make
the user re-execute the decision task to continue with an approve /
reject.
 
I have some WFs that I use a Document Template. After the user executes
the Word doc
from a decision task it returns to the decision task. Does not make the
user re-execute the decision task
to continue processing.
 
Thanks much!
 
>>> "Dart, Jocelyn" <jocelyn.dart at sap.com> 7.10.2003 2:34:10 AM >>>
 Rick,
If you use work item with self method - guess who is performing the
BACKGROUND task selfitem.sendtaskdescription work item? That's right the
workflow system user WF-BATCH.  So you are just sending a mail to
WF-BATCH.
 
What you want to do is save something from your decision step to the
workflow container.  Yes the actual agent will will but you could also
use the _WORKITEM object reference from that step e.g. in a container
element called LASTWORKITEM and then send the mail to
LASTWORKITEM.EXECUTEDBYUSER.NAMEWITHLEADINGUS, i.e. send it to the
person who performed the previous step.
 
Which I think is what you are after.
Jocelyn.
 
-----Original Message-----
From: Rick Sample
To: SAP-WUG at MITVMA.MIT.EDU
Sent: 7/10/03 1:12 AM
Subject: Re: Send Mail problem /  Advance with dialog
 
I solved this one by stuffing a  WF container object from the decision
task with the Actual Agent.
I would rather use a given object to do this so any help on the below
format would be appreciated.
 
Next question, how do I get the decision step to display after the
send
mail. I have to
go back to the inbox and select the same decision step again to
complete processing the task.
 
Isn't "Advance with dialog" supposed to execute the background task
(send mail step) then automatically
pull the decision task just execute without having to go back into the
inbox and re-execute the
decision task I was just working on?
 
 =======================================================================
===========
4.6C
 
I have a decision step task. The user selects an option from this task
to send mail
back to himself. (mail copy of data).
 
The send mail task is a background SELFITEM-SENDTASKDESCRIPTION task
with following binding.
 
_WI_Object_Id   &WORKITEMWITHSELFMETH&
AddressStrings
&WORKITEMWITHSELFMETH.EXECUTEDBYUSER.NAMEWITHLEADINGUS&
 
When I look at the log for this step,
WORKITEMWITHSELFMETH.EXECUTEDBYUSER.NAMEWITHLEADINGUS
show the correct person USusername. This is not working!
 
All I want to do is send a mail back to the person executing the task
via a background send mail.
 


More information about the SAP-WUG mailing list