Camel Route:Wie kann man unmarshal() im Camel Prozessor aufrufen?
from(source)
.idempotentConsumer(simple("${in.header.CamelFilePath}"), redisIdempotentRepository)
.process(pgpDecryptionProcessor)
.to(destination);
PGPDecryptionProcessor:
public class PGPDecryptionProcessor implements Processor {
@Autowired
private PGPEncryptionManager pgpEncryptionManager;
@Override
public void process(Exchange exchange) throws Exception {
//do something to check whether it is encrypted
//get corrsponding dataformat for decryption
processDefinition.unmarshal(dataFormat); //How do i get processDefinition here
}
}
}
Ich brauche ProcessDefinition.unmarshal(dataformat)
zu nennen. Wie kann ich das ProcessDefinition
Objekt innerhalb der Prozessmethode erhalten?