Join wMUsers | Blog at wMUsers | Edit my wMUsers Profile | Site Map | webMethods Jobs |For Employers

wMUsers  
  #1  
Old 03-11-2010, 03:39
soma_ksc soma_ksc is offline
Junior Member
 
Join Date: Apr 2008
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default debugLog using transformer

Hi,

Can any one let me know why "debugLog" builtIn service is working with direct invoke step but not with transformer?


Regards,

KCS
Reply With Quote
Advertisement
  #2  
Old 03-11-2010, 05:04
Vikas Kumar Gupta Vikas Kumar Gupta is offline
Senior Member
 
Join Date: Mar 2008
Posts: 113
Thanks: 4
Thanked 4 Times in 4 Posts
Default

Hi Soma,
Transfers being used for transforming some value. Now in 'debugLog' service you are not transforming any thing and more over if you will check the service you will find no output variable. So how you can use this service as transformer? What you will map to the output variable which is not available. That is why this service can not be used as transformer.
Reply With Quote
  #3  
Old 03-11-2010, 07:27
soma_ksc soma_ksc is offline
Junior Member
 
Join Date: Apr 2008
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Vikas,

Thanks for your reply.Yes You are right.

We can not use service as a transformer which does not having output data or which does not map output data to pipeline variables
Thanks


Regards,
kcs
Reply With Quote
  #4  
Old 03-11-2010, 09:32
reamon's Avatar
reamon reamon is offline
Premium Member
 
Join Date: Apr 2003
Posts: 4,806
Thanks: 62
Thanked 183 Times in 143 Posts
Default

Here is a way to force it to execute:

Expand the transformer.
Under the Service Out, add a string variable. The name can be anything.
Map that variable to a variable in the pipeline.

The transformer will now be executed.
__________________
-Rob
http://reamon.squarespace.com
Reply With Quote
  #5  
Old 03-12-2010, 00:27
Vikas Kumar Gupta Vikas Kumar Gupta is offline
Senior Member
 
Join Date: Mar 2008
Posts: 113
Thanks: 4
Thanked 4 Times in 4 Posts
Default

HI Rob,
But still 'debugLog' will not work as transformer. Even i tried as well. But reason was not clear to me. If you can tell.
Reply With Quote
  #6  
Old 03-12-2010, 04:45
soma_ksc soma_ksc is offline
Junior Member
 
Join Date: Apr 2008
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Rob,

Do you mean that instead of using the 'dubugLog' as a transformer we need to create a wrapper service for 'debugLog' and we should provide some output variable to the wrapper service.
Call this wrapper service as a transformer and the output variable of the transformer should be mapped to any pipeline variable
I have tested like this it is working.
Reply With Quote
  #7  
Old 03-12-2010, 10:20
reamon's Avatar
reamon reamon is offline
Premium Member
 
Join Date: Apr 2003
Posts: 4,806
Thanks: 62
Thanked 183 Times in 143 Posts
Default

I did not mean create a wrapper service.

Here is a screen shot the shows the results of the steps I posted earlier.
Attached Images
File Type: jpg debugLog.jpg (29.5 KB, 15 views)
__________________
-Rob
http://reamon.squarespace.com
Reply With Quote
  #8  
Old 03-15-2010, 08:23
Vikas Kumar Gupta Vikas Kumar Gupta is offline
Senior Member
 
Join Date: Mar 2008
Posts: 113
Thanks: 4
Thanked 4 Times in 4 Posts
Default

In the similar way i tried but it is not working.
Reply With Quote
  #9  
Old 03-15-2010, 22:19
sonam sonam is offline
Senior Member
 
Join Date: Dec 2002
Posts: 541
Thanks: 7
Thanked 6 Times in 4 Posts
Default

Thanks Rob. I just tried this your way and it did coerce a debugLog transformer to execute.

However, the developer user guide states a transformer won't run if it has no 'declared' output:
--
If you do not link any output variables or the transformer does not have any declared
output variables, the transformer service will not run.
--

Just to be safe, it may be better to use a wrapper service.
Reply With Quote
The Following User Says Thank You to sonam For This Useful Post:
reamon (03-16-2010)
  #10  
Old 03-16-2010, 01:09
reamon's Avatar
reamon reamon is offline
Premium Member
 
Join Date: Apr 2003
Posts: 4,806
Thanks: 62
Thanked 183 Times in 143 Posts
Default

Thanks for the document reference Sonam. I figured it was mentioned somewhere but I didn't dig for it deep enough I guess. That's the answer for the original question!
__________________
-Rob
http://reamon.squarespace.com
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between invoking inline fn and transformer Krithiga M Flow and Java services 2 03-24-2010 06:35
Making my own XSLT transformer tonyp Flow and Java services 5 03-30-2009 09:22
adapter vs transformer ram.c JDBC Adapter 1 03-17-2008 14:16
Problem while using the transformer String to BigDecimal surendravarma_u Flow and Java services 1 03-02-2006 23:35
How not to call a transformer in a flow when input Null matburner Flow and Java services 6 06-02-2004 06:45


All times are GMT -6. The time now is 21:02.


.
All Content Copyright ©2002-2009, Conneva, Inc. DBA wMUsers.Com

wMUsers is an independent organization and is not sponsored in any manner by Software AG or webMethods, Inc.

Page generated in 0.09535 seconds with 18 queries