1
낙타 경로 :낙타 프로세서에서 unmarshal()을 호출하는 방법은 무엇입니까?
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
}
}
}
나는 ProcessDefinition.unmarshal(dataformat)
를 호출해야합니다. 어떻게 처리 방법 안에 ProcessDefinition
개체를 얻을 수 있습니까?