cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

expression robot

psuvendu
1-Visitor

expression robot

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

Thanks..

4 REPLIES 4
satre-2
12-Amethyst
(To:psuvendu)

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

Thanks

shreyas

doehr
12-Amethyst
(To:psuvendu)

Hi there,

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

Please advise,

Daryl

asingh
12-Amethyst
(To:psuvendu)

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

asingh
12-Amethyst
(To:asingh)

Just wanted to add to my earlier email

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

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

  }

Announcements

Top Tags