Hide Forgot
Description of problem: Set process variables of type org.jbpm.document.Document is not possible because the class org.jbpm.document.Document is not Remotable. If users try to upload documents when starting a business process, for example, it fails with exception "org.kie.remote.client.api.exception.RemoteApiException: KieRemoteServicesDeploymentException thrown with message 'Could not unmarshall user-defined class instance parameter of type 'documentImpl'':" This is important because Forms are ready to use this class and users might also want to manage the same process remotely. Version-Release number of selected component (if applicable): N/A How reproducible: Always Steps to Reproduce: 1. Create a process that has a variable of type org.jbpm.document.Document 2. Try to start this process using the remote API passing a value for the variable created previously Actual results: The remote API execution will fail with the following exception: "org.kie.remote.client.api.exception.RemoteApiException: KieRemoteServicesDeploymentException thrown with message 'Could not unmarshall user-defined class instance parameter of type 'documentImpl'':" Expected results: Process execution starts and uses the sent parameter. Additional info: A workaround is instead using the class Document, use an user defined Remotable class to provide file upload feature.
there is not much to do from implementation side as the only missing bit is to add org.jbpm.document.service.impl.DocumentImpl into the jaxb context so it will be recognized. And to do so user should use deployment descriptor that allows to add any class to it via remoteable classes section. Once you add it there it will be available for serialization. William, do you mind confirming it?
Hello Maciej, I confirm. Thanks for the clarification!