| Author | 
		  Message
		 | 
		
		  | kazim | 
		  
		    
			  
				 Posted: Thu Dec 03, 2009 12:32 am    Post subject: force expire the activityinstance | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 15 Jul 2007 Posts: 31
  
  | 
		  
		    
			  
				Hello All
 
 
I have an activity modelled with 'Expiration - From Container' specification(buildtime)
 
Due to some problem(runtime), I have to expire the activity before its actual time.
 
Could it be possible to expire an activity? like foreFinish/forceRestart...
 
 
addtional info : this activiy must have to be only expire because its immediate flow has transtion condition :  _STATE() = _Expired.
 
 
Advance thanks.
 
 
Regards, | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | hos | 
		  
		    
			  
				 Posted: Thu Dec 03, 2009 7:49 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Chevalier
 
 Joined: 03 Feb 2002 Posts: 470
  
  | 
		  
		    
			  
				Hi,
 
 
there is no forceExpire() API. You could try to restart the activity and provide a shortened expiration value in the input container. Not sure whether the expiration value is renewed when the activity is restarted.
 
If possible you could switch the system clock    | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | kazim | 
		  
		    
			  
				 Posted: Fri Dec 11, 2009 2:40 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 15 Jul 2007 Posts: 31
  
  | 
		  
		    
			  
				forcerestart did not work though the container value got updated with shortened expiration time.
 
I forcefinished those affected tasks upon business users acceptance. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | kazim | 
		  
		    
			  
				 Posted: Fri Dec 11, 2009 2:42 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 15 Jul 2007 Posts: 31
  
  | 
		  
		    
			  
				forcerestart did not work though the container value got updated with shortened expiration time.
 
I forcefinished those affected tasks upon business users acceptance. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jmac | 
		  
		    
			  
				 Posted: Sat Dec 12, 2009 6:30 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC 
  | 
		  
		    
			  
				Potentially if you put the activity into a loop and have the loop repeat, this would get the timer to reset when the activity is run.  This would require a force finish as opposed to a force restart and also this assumes you are talking about something under development, not a running production instance. _________________ John McDonald
 
RETIRED | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |