Automating a Decision Task

Alon Raskin araskin at eOutlook.com
Wed Sep 22 09:52:51 EDT 2004


Its a good question. Actually this code is going to be called from =
outside of SAP (Desktop Workplace) and needs to work with any workflow.
=20
Alon
 
________________________________
 
From: SAP Workflow on behalf of Michael Pokraka
Sent: Wed 22/09/2004 14:29
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Automating a Decision Task
 
 
 
Hi Alon,
 
For what it's worth, I use that FM quite regularly to set items to error =
to
restart stuck processes... no ill effects encountered to date.
 
The obvious question which you've no doubt asked yourself: Any reason =
not to
use a custom ZSYSTEMHASDECIDED event in parallel to the decision????
 
Cheers
Mike
 
Alon Raskin wrote:
> Here is what I am trying to do. I am trying to programmatically =
simulate a
> user selecting a particular outcome in a decision task. Its actually =
quite
> simple but the problem is that once I have done that I need the work =
item to
> be removed from the Inbox. Of course the item remains in READY status =
as it
> has not been executed. What I really want to do is change the status =
to
> COMPLETED but I can not do this using the WAPI because it says it =
cannot go
> from status READY to COMPLETED (Fair enough).
>
> What I did then is programtically reserve the work item and then =
chagne its
> status to COMMITED using FM SWW_WI_STATUS_CHANGE_NEW. After doing that =
the
> item changed its status to Completed. While this works, I am a little
> nervous manually changing the status of a work item. I was just =
wondering if
> anyone knew a better way?
>
> Regards,
>
> Alon
>
>
 


More information about the SAP-WUG mailing list