Skip to main content
1-Visitor
April 7, 2016
Question

expression robot

  • April 7, 2016
  • 3 replies
  • 1983 views

Hi, I am new to PDMLink. can anyone let me know where the expression robot will write the output.

Thanks..

3 replies

1-Visitor
April 7, 2016

it will be in background method server if you have configured background method sever

Thanks

shreyas

1-Visitor
April 18, 2016

Hi there,

Could you be a bit more specific? Do you mean the expression robot object in Workflows?

Please advise,

Daryl

1-Visitor
April 26, 2016

Hi Suvendu,

Its better you write a Workflow logger class

package com.log;

import org.apache.log4j.Logger;

public class WorkFlowLog{

public static Logger logger = Logger.getLogger("com.log.WF");
  
}

Enable logger "com.log.WF" in log4jMethodServer.properties

Based on the level you enabled

Suppose TRACE, add line of code mentioned below in the expression robot in your Workflow.

if (log.isTraceEnabled()) {

  log.trace("TEST STRING");

  }

System will create a new log file called "com.log.WF.log" under <WT_HOME>/logs

Thanks,

Aditya

1-Visitor
April 27, 2016

Just wanted to add to my earlier email

if (com.log.WorkFlowLog.logger.isTraceEnabled()) {

  com.log.WorkFlowLog.logger.trace("TEST STRING");

  }