transaction data init fix
This commit is contained in:
parent
9e3a0584e6
commit
ae42bb4fee
@ -54,9 +54,9 @@ public class TbTransactionBeginNode implements TbNode {
|
||||
|
||||
@Override
|
||||
public void onMsg(TbContext ctx, TbMsg msg) throws ExecutionException, InterruptedException, TbNodeException {
|
||||
log.trace("Msg in - [{}] [{}]", msg.getId(), msg.getType());
|
||||
log.trace("Msg enters transaction - [{}] [{}]", msg.getId(), msg.getType());
|
||||
|
||||
TbMsgTransactionData transactionData = new TbMsgTransactionData(UUID.randomUUID(), msg.getOriginator());
|
||||
TbMsgTransactionData transactionData = new TbMsgTransactionData(msg.getId(), msg.getOriginator());
|
||||
|
||||
TbMsg tbMsg = new TbMsg(msg.getId(), msg.getType(), msg.getOriginator(), msg.getMetaData(), TbMsgDataType.JSON,
|
||||
msg.getData(), transactionData, msg.getRuleChainId(), msg.getRuleNodeId(), msg.getClusterPartition());
|
||||
|
||||
@ -56,7 +56,7 @@ public class TbTransactionEndNode implements TbNode {
|
||||
if (!isFailed) {
|
||||
ctx.tellNext(msg, SUCCESS);
|
||||
}
|
||||
log.trace("Msg out - [{}] [{}]", msg.getId(), msg.getType());
|
||||
log.trace("Msg left transaction - [{}] [{}]", msg.getId(), msg.getType());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user