Hi, Pack Team Currently, the @Autowired annotation is required to get the OmegaContext on the Omega side, but most of the early use does not know the existence of the OmegaContext object.
@Autowired OmegaContext omegaContext; @SagaStart public void booking() { omegaContext.globalTxId() ... } @Compensable(compensationMethod="cancel") public void car(String from, int amount) { omegaContext.globalTxId() ... } Maybe we should allow the user to get the OmegaContext via method parameters. Use the method below to define the OmegaContext parameter. @SagaStart public void booking(OmegaContext omegaContext) { omegaContext.globalTxId() ... } @Compensable(compensationMethod="cancel") public void car(OmegaContext omegaContext, String from, int amount) { omegaContext.globalTxId() ... } Any suggestion? Best regards, Lei Zhang