No signature of method: org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.setAssignee?() is applicable for argument types: (java.lang.String) values: [sdfsgdsfsgsdf]

Hi,

I create a groovy script in taskListner like this:

task.setAssignee​("sdfsgdsfsgsdf");

but when exucute it, it show this error:

No signature of method: org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.setAssignee?() is applicable for argument types: (java.lang.String) values: [sdfsgdsfsgsdf]
Possible solutions: setAssignee(java.lang.String), getAssignee()
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:71)
        at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:48)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:128)
        at Script15.run(Script15.groovy:13)
        at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:321)
        ... 165 more

can some one help me?
Thanks

Hi, i’m experiencing a similar error (probably the same mistake?), did you solved?

In a task listener i have the following groovy script executed at assignment event
task.getProcessEngine().getRuntimeService().signalEventReceived​​​('MY_SIGNAL',task.getExecutionId());

and i get the error

ENGINE-03051 There was an exception while invoking the TaskListener. Message: 'Unable to evaluate script while executing activity 'Activity_1w6fv3z' in the process definition with id 'Process_1dgw1vv:4:7a633219-0eb3-11ee-aaf5-0242ac110002': groovy.lang.MissingMethodException: No signature of method: org.camunda.bpm.engine.impl.RuntimeServiceImpl.signalEventReceived​​​() is applicable for argument types: (java.lang.String, java.lang.String) values: [PRESA_IN_CARICO_CONTROLLORE, 7bc3856a-0eb3-11ee-aaf5-0242ac110002]
Possible solutions: signalEventReceived(java.lang.String, java.lang.String), signalEventReceived(java.lang.String), signalEventReceived(java.lang.String, java.util.Map), signalEventReceived(java.lang.String, java.lang.String, java.util.Map)'