Automating a Decision Task

Michael Pokraka workflow at quirky.me.uk
Wed Sep 22 09:29:02 EDT 2004


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 simulat=
e a
> user selecting a particular outcome in a decision task. Its actually qu=
ite
> simple but the problem is that once I have done that I need the work it=
em to
> be removed from the Inbox. Of course the item remains in READY status a=
s 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 canno=
t 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 wonderi=
ng if
> anyone knew a better way?
>
> Regards,
>
> Alon
>
>
 


More information about the SAP-WUG mailing list