| Author | 
		  Message
		 | 
		
		  | amitroyc | 
		  
		    
			  
				 Posted: Fri Apr 05, 2002 6:33 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 02 Apr 2002 Posts: 10 Location: India 
  | 
		  
		    
			  
				| Can i suspend a process instance using the input XML that goes to the input queue? There is something called as <ProcessTemplateCreateAndStartInstance> tag. Is there something similar available to suspend an instance?? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jmac | 
		  
		    
			  
				 Posted: Fri Apr 05, 2002 10:09 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC 
  | 
		  
		    
			  
				Prior to V332 there isn't. But you should probably check the doc to see if anything has been added.
 
 _________________ John McDonald
 
RETIRED | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | amitroyc | 
		  
		    
			  
				 Posted: Mon Apr 08, 2002 7:15 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 02 Apr 2002 Posts: 10 Location: India 
  | 
		  
		    
			  
				OK. but i would want to suspend the process instance from within my UPES API. I tried to use the suspend() method of the processinstance, but i needed to log in to the system first. so i used the Agent API to locate a service which would logon to the WF server. But the system hangs whenever i call the agent.setName() method. Here is a sample of the code that i am trying to use: 
 
 
Agent agent = new Agent();
 
agent.setLocator(Agent.LOC_LOCATOR);
 
agent.setName("MQWFAGENT");
 
service = agent.locate("FMCGRP", "FMCSYS");
 
service.logon("ADMIN","password");
 
 
The system does not do beyond agent.setName() line and hangs.
 
 
But if i try to run the above lines in a separate thread instead of the UPES code, it works fine. Please clarify as to what should be the problem with the above lines in the UPES code.
 
 | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jmac | 
		  
		    
			  
				 Posted: Mon Apr 08, 2002 11:54 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC 
  | 
		  
		    
			  
				Is the system that the UPES is running on Local to MQWF?
 
 _________________ John McDonald
 
RETIRED | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | amitroyc | 
		  
		    
			  
				 Posted: Mon Apr 08, 2002 12:42 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 02 Apr 2002 Posts: 10 Location: India 
  | 
		  
		    
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jmac | 
		  
		    
			  
				 Posted: Mon Apr 08, 2002 2:19 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC 
  | 
		  
		    
			  
				If that's the case, I have no idea what your problem is.
 
 
SORRY
 
 _________________ John McDonald
 
RETIRED | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | vedbhat | 
		  
		    
			  
				 Posted: Mon Apr 08, 2002 7:11 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Disciple
 
 Joined: 19 Mar 2002 Posts: 186 Location: Singapore 
  | 
		  
		    
			  
				Hi,
 
 
I think MQWF support Suspend functionality for Process Instance through XML in version 3.3.2. 
 
 
Regards
 
Ved | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |