Error in method invocation: Method addMessage(java.lang.String) not found in class'java.lang.String'

The signature doesn’t really matter at all. It’s purely informational to let you know what is being passed into the Beanshell namespace. As @ipobeidi mentioned originally, the error indicates that the taskResult variable is of type String which doesn’t have a method for addMessage(String). This method is only applicable for a sailpoint.object.TaskResult object, in which case the taskResult variable passed into a Rule Runner task should be of that type, but it seems like you are not maybe running this rule properly via a Rule Runner task, or you are somehow re-declaring it as a String?

1 Like