AnsweredAssumed Answered

Set Dynamic properties

Question asked by utammise200792 on Oct 27, 2017
Latest reply on Oct 28, 2017 by Srinivas Chandrakanth Vangari

Hi Support,

 

We are reading the file and setting document properties in setDynamicProcessProperty method in data process groovy script.Then we are  setting in property shape for displaying.All attributes are working fine.But if we do any change in the file those changes are not reflecting in dynamic process property in boomi.Here is the groovy code 

 

import java.util.Properties;
import java.io.InputStream;
import com.boomi.execution.ExecutionUtil;

 


for( int j = 0; j < dataContext.getDataCount(); j++ ) {
InputStream is = dataContext.getStream(j);
Properties props = dataContext.getProperties(j);
props.load(is);

ExecutionUtil.setDynamicProcessProperty("WRAPPERVER",props["WPRVER"],false);
ExecutionUtil.setDynamicProcessProperty("HEADERVER",props["HDRVER"],false);
ExecutionUtil.setDynamicProcessProperty("EAIADDRESS",props["EAIADR"],false);
ExecutionUtil.setDynamicProcessProperty("RECEIVEDAT",props["RCVDAT"],false);
ExecutionUtil.setDynamicProcessProperty("RECEIVEHDR",props["RCVHDR"],false);
ExecutionUtil.setDynamicProcessProperty("FTPFULLPATH",props["FTPPATH"],false);
ExecutionUtil.setDynamicProcessProperty("FTPUSERID",props["FTPUSER"],false);
ExecutionUtil.setDynamicProcessProperty("USER",props["USERID"],false);
ExecutionUtil.setDynamicProcessProperty("PASS",props["PASSWD"],false);
ExecutionUtil.setDynamicProcessProperty("INTERFACEID",props["IFID"],false);
ExecutionUtil.setDynamicProcessProperty("SENDFILES",props["SENDFILE"],false);
ExecutionUtil.setDynamicProcessProperty("HOMEDIRECTORY",props["HOMEDIR"],false);


dataContext.storeStream(is, props);
}

 

Please help me how to fix this issue.is it tool issue ?

 

Thanks,

Harish.M

Outcomes