| Author | 
		  Message
		 | 
		
		  | amiivas | 
		  
		    
			  
				 Posted: Tue Feb 05, 2008 1:08 am    Post subject: How to get previous node name. | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 14 Oct 2007 Posts: 44 Location: Texas, USA 
  | 
		  
		    
			  
				Hi,
 
I need to get the previous node name.
 
The previous node can be a MBInput node , JCN or a subflow. 
 
Till now I am successful in getting the current node name, Message flow name and name for input/output terminals.
 
Is there any way of getting or an API like getName()???
 
 
Thanks in advance,
 
Amit | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jefflowrey | 
		  
		    
			  
				 Posted: Tue Feb 05, 2008 4:20 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Poobah
 
 Joined: 16 Oct 2002 Posts: 19981
  
  | 
		  
		    
			  
				I think you can't do this.
 
 
It's basically the same as asking a procedure to know the name of the procedure that called it. _________________ I am *not* the model of the modern major general. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Tue Feb 05, 2008 4:22 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				If it was me (and it's not), I'd get the previous nodes to add a flag to the message indicating the source for your node to interogate. _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | AkankshA | 
		  
		    
			  
				 Posted: Tue Feb 05, 2008 8:55 pm    Post subject: Re: How to get previous node name. | 
				     | 
			   
			 
		   | 
		
		
		    Grand Master
 
 Joined: 12 Jan 2006 Posts: 1494 Location: Singapore 
  | 
		  
		    
			  
				
   
	| amiivas wrote: | 
   
  
	Hi,
 
I need to get the previous node name.
 
The previous node can be a MBInput node , JCN or a subflow. 
 
Till now I am successful in getting the current node name, Message flow name and name for input/output terminals.
 
Is there any way of getting or an API like getName()???
 
 
Thanks in advance,
 
Amit | 
   
 
 
 
You have got the current node name...
 
 
Store the same in env tree and access in next node ... _________________ Cheers | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | amiivas | 
		  
		    
			  
				 Posted: Tue Feb 05, 2008 9:13 pm    Post subject: Re: How to get previous node name. | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 14 Oct 2007 Posts: 44 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| Quote: | 
   
  
	
 
 
You have got the current node name...
 
 
Store the same in env tree and access in next node ... | 
   
 
 
 
I am doing it, if the  previous node is JCN but what in case for if the previous node is a MQInput node or an input coming from a  Subflow to the current node.
 
 
Thanks,
 
Amit | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Atomic | 
		  
		    
			  
				 Posted: Tue Feb 05, 2008 9:52 pm    Post subject: Re: How to get previous node name. | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 17 Apr 2007 Posts: 4
  
  | 
		  
		    
			  
				| I'm assuming that you need to know what flow/route was taken? if so why not put a JCN or ESQL in the flow to set a name/context. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | kimbert | 
		  
		    
			  
				 Posted: Wed Feb 06, 2008 1:25 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 29 Jul 2003 Posts: 5543 Location: Southampton 
  | 
		  
		    
			  
				| If you are attempting to track the progress of a message through your flow, maybe there are better ways to do that. Maybe Tivoli have a tool for this? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Wed Feb 06, 2008 1:58 am    Post subject: Re: How to get previous node name. | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| amiivas wrote: | 
   
  
	
   
	| Quote: | 
   
  
	
 
 
You have got the current node name...
 
 
Store the same in env tree and access in next node ... | 
   
 
 
 
I am doing it, if the  previous node is JCN but what in case for if the previous node is a MQInput node or an input coming from a  Subflow to the current node.
 
 
Thanks,
 
Amit | 
   
 
 
 
If the previous "node" is a subflow then that's perfectly capable of storing data.
 
 
If the previous node is an MQInput then the stored data is the lack of stored data....    _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | AkankshA | 
		  
		    
			  
				 Posted: Wed Feb 06, 2008 2:07 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand Master
 
 Joined: 12 Jan 2006 Posts: 1494 Location: Singapore 
  | 
		  
		    
			  
				also in that case one has to apply dirty logic to distinguish between subflow input and MQIinput... something like if its from subflow then previous node names wud be populated... _________________ Cheers | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqmatt | 
		  
		    
			  
				 Posted: Thu Feb 07, 2008 5:58 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand Master
 
 Joined: 04 Aug 2004 Posts: 1213 Location: Hursley, UK 
  | 
		  
		    
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |