Hi,
Im trying to start a new instance process, with a process Variable type “document”, which a Java class I created. But once I execute the method " runtimeService.startProcessInstanceByKey", I get the following error:
couldn’t find a variable type that is able to serialize Document
It is a simple code to start my new instance:
public InstanceProcessDto registerNewCase(NewCase newCase) {
Map<String, Object> variables = new HashMap<String, Object>();
Document oDocuments = new Documento();
oDocuments.setNombre(newCase.getDocumentos().getName());
oDocuments.setUrlDescarga(newCase.getDocumentos().getUrl());
variables.put("documents", oDocuments);
variables.put("statusCase", newCase.getStatusCase());
ProcessInstance processInstance =
runtimeService.startProcessInstanceByKey(PROCESS_DEFINITION_KEY, variables);
}