ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexWorkflow Engines - IBM MQ Workflow & Business Process Choreographercannot transfer a workitem

Post new topicReply to topic
cannot transfer a workitem View previous topic :: View next topic
Author Message
kutulu2000
PostPosted: Tue Oct 24, 2006 7:10 am Post subject: cannot transfer a workitem Reply with quote

Acolyte

Joined: 08 Nov 2005
Posts: 63
Location: Mexico

Hi,

I'm working in an application to modify a data member of the data structure of several workitems. The idea is this;

1.- Login to the application.
2.- Query the workitems
3.- Transfer the workitems to the user logged to the application.
4.- Obtain the OutputContainer ( container = wi.outContainer() )
5.- Modify the data member ( container.setString("Starter", "78072"); )
6.- Restart the workitem ( wi.forceRestart2( container ); )
7.- Refresh the workitem ( wi.refresh(); )
8.- Finally transfer the workitem to the original user ( transfiere(wi, usuarioOriginal); )

The application crashes because the following error;

FMC38009E Error en API de MQSeries Workflow :
Cdigo de retorno de API : 133
Origen del error : e:\v332\src\fmcjcitm.cxx, line 2325
Mensaje de error : FMC00133E New owner already has the work item

But I take carefully the manage of this exception ( or i hope ) in my method to transfer



My method to transfer the workitem is the following;

public void transfiere ( WorkItem wi, String user ){

String usuario;

if( wi != null){

try {

if( user.equals("")){
usuario = servicio.userID();
}
else{
usuario = user;
}

String propietarioWI = wi.owner();

if( propietarioWI.equals( usuario )){

System.out.println("El usuario del servicio ya el workitem: " + wi.name());

}
else
wi.transfer( servicio.userID() );
} catch (FmcException e) {

System.out.println("No fu posible transferir el workitem");
e.printStackTrace();
}
}
else{
System.out.println("El workitem no existe");
}
}


I appreciate so much your help.

Thanx
_________________
#10
Back to top
View user's profile Send private message Send e-mail MSN Messenger
kutulu2000
PostPosted: Tue Oct 24, 2006 7:26 am Post subject: Reply with quote

Acolyte

Joined: 08 Nov 2005
Posts: 63
Location: Mexico

Sorry.

I found the error.

Excuse me for the post.


_________________
#10
Back to top
View user's profile Send private message Send e-mail MSN Messenger
jmac
PostPosted: Tue Oct 24, 2006 7:44 am Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3080
Location: EmeriCon, LLC

Kutulu:

There is never any charge for answering your own question

Plus it helps to raise your number of posts

Thanks for telling us you solved the problem on your own... I wish everone would do this.
_________________
John McDonald
EmeriCon, LLC
IBM Certified Solutions Designer -
WebSphere MQ Workflow V3.4
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
santhai
PostPosted: Wed Nov 23, 2011 1:09 am Post subject: Reply with quote

Newbie

Joined: 23 Nov 2011
Posts: 1

Please can you share your solution? I've the same kind of problem you did.

Thanks a lot
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWorkflow Engines - IBM MQ Workflow & Business Process Choreographercannot transfer a workitem
Jump to:



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.