AnsweredAssumed Answered

I am trying to remove part of a value set in a dynamic process property through a scripting step in a data process, but keep running into an error.

Question asked by AdamBlakely4561 on Feb 19, 2014
Latest reply on Jan 5, 2018 by mmorthala189353
I set the value as a dynamic process property earlier in the process in a set properties component.  I am later calling the dynamic process property in a custom scripting step in a data process.  Below is what i have in the script.

// Import the ExecutionUtil class
import com.boomi.execution.ExecutionUtil;

// Retrieve a Dynamic Process Property value
def myValue = new StringBuffer(ExecutionUtil.getDynamicProcessProperty("SponsorName"));

myValue.delete(0, 7);
assert myValue.toString();

// Set a Dynamic Process Property value and persist the dynamic property by setting the Boolean to "true"
ExecutionUtil.setDynamicProcessProperty("NewSponsorName", myValue, false);

I keep getting the error below.

Error executing data process; Caused by: No signature of method: static com.boomi.execution.ExecutionUtil.setDynamicProcessProperty() is applicable for argument types: (java.lang.String, java.lang.StringBuffer, java.lang.Boolean) values

Outcomes