The variables need to be serialized?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2011 01:33 PM
Hi!
I trying to invoke a Java Service. My code that executes the logic is as follows:
My question is: the "response" need to be Serializable?
Because occurs a failure to execute "execution.setVariable(returnVariableName, response)".
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)".
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2011 07:51 PM
Yes, unless it is something like a String, boolean etc or a jpa entity
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2011 09:01 AM
Thanks for your help!
