Boomi : Get/Set Process and User Document Properties in Data Process

Posted in

 

In the Data Process shape, you can write Groovy script in the Custom Scripting process type to access the Process Properties and User Document Properties. Below are the examples:

Get Process Properties
ExecutionManager.getCurrent().getProperty(“propName”);

 

Set Process Properties
ExecutionManager.getCurrent().setProperty(“propName”, “propValue”);

 

Get User Document Properties
for( int i = 0; i < dataContext.getDataCount(); i++ ) {
Properties props = dataContext.getProperties(i);
props.getProperty(“document.dynamic.userdefined.userDocumentPropName”);
}

 

Set User Document Properties
for( int i = 0; i < dataContext.getDataCount(); i++ ) {
Properties props = dataContext.getProperties(i);
props.setProperty(“document.dynamic.userdefined.userDocumentPropName”, “propValue”);
}

Get in touch today to see how WDCi can help your business.