AnsweredAssumed Answered

The variables need to be serialized?

Question asked by rodolfobarbeiro on May 31, 2011
Latest reply on Jun 1, 2011 by rodolfobarbeiro
Hi!

I trying to invoke a Java Service. My code that executes the logic is as follows:


  public void execute(DelegateExecution execution) throws Exception {
       
       Long value = (Long) parameter.getValue(execution);
      
       Service rmService = this.getService();
             
       Object response = rmService.getCustomer(value);
      
       if (returnValue!=null) {
         String returnVariableName = (String) returnValue.getValue(execution);
         execution.setVariable(returnVariableName, response);
       }
     }


My question is: the "response" need to be Serializable?

Because occurs a failure to execute "execution.setVariable(returnVariableName, response)".

Outcomes