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
オブジェクトを取得するにはどうすればよいですか?