コード例 #1
0
 @Override
 public boolean updateState(
     State currentState, Event event, State nextState, SnapshotVO snapshot, Object data) {
   TransactionLegacy txn = TransactionLegacy.currentTxn();
   txn.start();
   SnapshotVO snapshotVO = snapshot;
   snapshotVO.setState(nextState);
   super.update(snapshotVO.getId(), snapshotVO);
   txn.commit();
   return true;
 }