入門記4:動かしてみた際の補足の補足の補足。
DOCUMENTテーブルのIDがどういった管理をされているか一目瞭然ですが、Buriの動作を少しでも把握する為に、Baoのメソッドを呼ぶ都度データの出力をしてみます。(java-jaでid:makotanが「Buriを理解するにはBURIPATH、BURIDATA、BURISTATEをおさえるべし」と言っていたのですが、取り合えず全部出しちゃいます)
(以下、当エントリ文末に張り付けられているログ参照)
BuriPathは都度出力する意味なかったですねw
BuriDataはデータの追加とともに増えていき、しかし減ることがない、と。
で、ステータス管理はどこでされているのかな、と見てみると・・・どこ?><
実はBuriStateでBuriDataのIDと一緒にそれっぽく管理してるんだと想像してたのですが、BuriStateのデータを見てみるとそれらしい列がない><
中身を比較してみても、ほとんど差がない><
唯一違うのは、ProcessDate列のTimestampだけ。
○Line:86のBuriState [/stateID=39/pathID=26/dataID=39/branchID=39/userIDNum=null/userIDVal=null/ participantName=文書管理担当/participantType=ROLE/BTID=0/ insertDate=2008-11-15 22:59:15.811/processDate=9999-12-31 23:59:59.999/ autoRunTime=9999-12-31 23:59:59.999/abortDate=9999-12-31 23:59:59.999/versionNo=0] ○Line:88のBuriState [/stateID=39/pathID=26/dataID=39/branchID=39/userIDNum=null/userIDVal=null/ participantName=文書管理担当/participantType=ROLE/BTID=0/ insertDate=2008-11-15 22:59:15.811/processDate=2008-11-15 22:59:16.22/ autoRunTime=9999-12-31 23:59:59.999/abortDate=9999-12-31 23:59:59.999/versionNo=0]
サンプルが、データを登録→公開中のステータスに→ステータスを更新→データ死亡、という感じに結局は状態を1つしか持っていなかったのが悪かったのか、Buriの中で状態がどう管理されているのか突き止める事は難しそうですね。
フローの変更にトライして、それから再度確認をしてみる必要がありそうです。
☆start ***** org.escafe.buri.dto.BuriBranchEntityDto ***** ***** org.escafe.buri.dao.BuriDataDao ***** ***** org.escafe.buri.dto.BuriDataPathHistoryEntityDto ***** ***** org.escafe.buri.dao.BuriPathDao ***** ***** org.escafe.buri.dto.BuriStateEntityDto ***** ***** org.escafe.buri.dto.BuriStateUndoLogEntityDto ***** ***** org.escafe.buri.dto.BuriStateUserEntityDto ***** ***** org.escafe.buri.dto.BuriUserEntityDto ***** ***** tryapp.dto.DocumentDto ***** ☆this.bao.register(doc1); ***** org.escafe.buri.dto.BuriBranchEntityDto ***** [/branchID=37/parentBranchID=0/pathID=null/dataID=37/BTID=0/processDate=null/versionNo=0] ***** org.escafe.buri.dao.BuriDataDao ***** [/dataID=37/pkeyVal=null/pkeyNum=158/dataType=tryapp.dto.DocumentDto/tableName=Document/insertUserID=null] ***** org.escafe.buri.dto.BuriDataPathHistoryEntityDto ***** ***** org.escafe.buri.dao.BuriPathDao ***** [/pathID=25/pathName=文書管理パッケージ.文書管理プロセス.登録/realPathName=newpkg.newpkg_wp1.newpkg_wp1_act1/pathType=null] [/pathID=26/pathName=文書管理パッケージ.文書管理プロセス.公開中/realPathName=newpkg.newpkg_wp1.newpkg_wp1_act2/pathType=null] ***** org.escafe.buri.dto.BuriStateEntityDto ***** [/stateID=37/pathID=26/dataID=37/branchID=37/userIDNum=null/userIDVal=null/participantName=文書管理担当/participantType=ROLE/BTID=0/insertDate=2008-11-15 22:59:15.531/processDate=9999-12-31 23:59:59.999/autoRunTime=9999-12-31 23:59:59.999/abortDate=9999-12-31 23:59:59.999/versionNo=0] ***** org.escafe.buri.dto.BuriStateUndoLogEntityDto ***** ***** org.escafe.buri.dto.BuriStateUserEntityDto ***** ***** org.escafe.buri.dto.BuriUserEntityDto ***** ***** tryapp.dto.DocumentDto ***** id=[158] title=[文書A] content=[文書Aです。] ☆this.bao.register(doc2); ***** org.escafe.buri.dto.BuriBranchEntityDto ***** [/branchID=37/parentBranchID=0/pathID=null/dataID=37/BTID=0/processDate=null/versionNo=0] [/branchID=38/parentBranchID=0/pathID=null/dataID=38/BTID=0/processDate=null/versionNo=0] ***** org.escafe.buri.dao.BuriDataDao ***** [/dataID=37/pkeyVal=null/pkeyNum=158/dataType=tryapp.dto.DocumentDto/tableName=Document/insertUserID=null] [/dataID=38/pkeyVal=null/pkeyNum=159/dataType=tryapp.dto.DocumentDto/tableName=Document/insertUserID=null] ***** org.escafe.buri.dto.BuriDataPathHistoryEntityDto ***** ***** org.escafe.buri.dao.BuriPathDao ***** [/pathID=25/pathName=文書管理パッケージ.文書管理プロセス.登録/realPathName=newpkg.newpkg_wp1.newpkg_wp1_act1/pathType=null] [/pathID=26/pathName=文書管理パッケージ.文書管理プロセス.公開中/realPathName=newpkg.newpkg_wp1.newpkg_wp1_act2/pathType=null] ***** org.escafe.buri.dto.BuriStateEntityDto ***** [/stateID=37/pathID=26/dataID=37/branchID=37/userIDNum=null/userIDVal=null/participantName=文書管理担当/participantType=ROLE/BTID=0/insertDate=2008-11-15 22:59:15.531/processDate=9999-12-31 23:59:59.999/autoRunTime=9999-12-31 23:59:59.999/abortDate=9999-12-31 23:59:59.999/versionNo=0] [/stateID=38/pathID=26/dataID=38/branchID=38/userIDNum=null/userIDVal=null/participantName=文書管理担当/participantType=ROLE/BTID=0/insertDate=2008-11-15 22:59:15.71/processDate=9999-12-31 23:59:59.999/autoRunTime=9999-12-31 23:59:59.999/abortDate=9999-12-31 23:59:59.999/versionNo=0] ***** org.escafe.buri.dto.BuriStateUndoLogEntityDto ***** ***** org.escafe.buri.dto.BuriStateUserEntityDto ***** ***** org.escafe.buri.dto.BuriUserEntityDto ***** ***** tryapp.dto.DocumentDto ***** id=[158] title=[文書A] content=[文書Aです。] id=[159] title=[文書B] content=[文書Bです。] ☆this.bao.register(doc3); ***** org.escafe.buri.dto.BuriBranchEntityDto ***** [/branchID=37/parentBranchID=0/pathID=null/dataID=37/BTID=0/processDate=null/versionNo=0] [/branchID=38/parentBranchID=0/pathID=null/dataID=38/BTID=0/processDate=null/versionNo=0] [/branchID=39/parentBranchID=0/pathID=null/dataID=39/BTID=0/processDate=null/versionNo=0] ***** org.escafe.buri.dao.BuriDataDao ***** [/dataID=37/pkeyVal=null/pkeyNum=158/dataType=tryapp.dto.DocumentDto/tableName=Document/insertUserID=null] [/dataID=38/pkeyVal=null/pkeyNum=159/dataType=tryapp.dto.DocumentDto/tableName=Document/insertUserID=null] [/dataID=39/pkeyVal=null/pkeyNum=160/dataType=tryapp.dto.DocumentDto/tableName=Document/insertUserID=null] ***** org.escafe.buri.dto.BuriDataPathHistoryEntityDto ***** ***** org.escafe.buri.dao.BuriPathDao ***** [/pathID=25/pathName=文書管理パッケージ.文書管理プロセス.登録/realPathName=newpkg.newpkg_wp1.newpkg_wp1_act1/pathType=null] [/pathID=26/pathName=文書管理パッケージ.文書管理プロセス.公開中/realPathName=newpkg.newpkg_wp1.newpkg_wp1_act2/pathType=null] ***** org.escafe.buri.dto.BuriStateEntityDto ***** [/stateID=37/pathID=26/dataID=37/branchID=37/userIDNum=null/userIDVal=null/participantName=文書管理担当/participantType=ROLE/BTID=0/insertDate=2008-11-15 22:59:15.531/processDate=9999-12-31 23:59:59.999/autoRunTime=9999-12-31 23:59:59.999/abortDate=9999-12-31 23:59:59.999/versionNo=0] [/stateID=38/pathID=26/dataID=38/branchID=38/userIDNum=null/userIDVal=null/participantName=文書管理担当/participantType=ROLE/BTID=0/insertDate=2008-11-15 22:59:15.71/processDate=9999-12-31 23:59:59.999/autoRunTime=9999-12-31 23:59:59.999/abortDate=9999-12-31 23:59:59.999/versionNo=0] [/stateID=39/pathID=26/dataID=39/branchID=39/userIDNum=null/userIDVal=null/participantName=文書管理担当/participantType=ROLE/BTID=0/insertDate=2008-11-15 22:59:15.811/processDate=9999-12-31 23:59:59.999/autoRunTime=9999-12-31 23:59:59.999/abortDate=9999-12-31 23:59:59.999/versionNo=0] ***** org.escafe.buri.dto.BuriStateUndoLogEntityDto ***** ***** org.escafe.buri.dto.BuriStateUserEntityDto ***** ***** org.escafe.buri.dto.BuriUserEntityDto ***** ***** tryapp.dto.DocumentDto ***** id=[158] title=[文書A] content=[文書Aです。] id=[159] title=[文書B] content=[文書Bです。] id=[160] title=[文書C] content=[文書Cです。] ☆this.bao.finishPublishing(doc1); ***** org.escafe.buri.dto.BuriBranchEntityDto ***** [/branchID=37/parentBranchID=0/pathID=null/dataID=37/BTID=0/processDate=null/versionNo=0] [/branchID=38/parentBranchID=0/pathID=null/dataID=38/BTID=0/processDate=null/versionNo=0] [/branchID=39/parentBranchID=0/pathID=null/dataID=39/BTID=0/processDate=null/versionNo=0] ***** org.escafe.buri.dao.BuriDataDao ***** [/dataID=37/pkeyVal=null/pkeyNum=158/dataType=tryapp.dto.DocumentDto/tableName=Document/insertUserID=null] [/dataID=38/pkeyVal=null/pkeyNum=159/dataType=tryapp.dto.DocumentDto/tableName=Document/insertUserID=null] [/dataID=39/pkeyVal=null/pkeyNum=160/dataType=tryapp.dto.DocumentDto/tableName=Document/insertUserID=null] ***** org.escafe.buri.dto.BuriDataPathHistoryEntityDto ***** ***** org.escafe.buri.dao.BuriPathDao ***** [/pathID=25/pathName=文書管理パッケージ.文書管理プロセス.登録/realPathName=newpkg.newpkg_wp1.newpkg_wp1_act1/pathType=null] [/pathID=26/pathName=文書管理パッケージ.文書管理プロセス.公開中/realPathName=newpkg.newpkg_wp1.newpkg_wp1_act2/pathType=null] ***** org.escafe.buri.dto.BuriStateEntityDto ***** [/stateID=37/pathID=26/dataID=37/branchID=37/userIDNum=null/userIDVal=null/participantName=文書管理担当/participantType=ROLE/BTID=0/insertDate=2008-11-15 22:59:15.531/processDate=2008-11-15 22:59:16.037/autoRunTime=9999-12-31 23:59:59.999/abortDate=9999-12-31 23:59:59.999/versionNo=0] [/stateID=38/pathID=26/dataID=38/branchID=38/userIDNum=null/userIDVal=null/participantName=文書管理担当/participantType=ROLE/BTID=0/insertDate=2008-11-15 22:59:15.71/processDate=9999-12-31 23:59:59.999/autoRunTime=9999-12-31 23:59:59.999/abortDate=9999-12-31 23:59:59.999/versionNo=0] [/stateID=39/pathID=26/dataID=39/branchID=39/userIDNum=null/userIDVal=null/participantName=文書管理担当/participantType=ROLE/BTID=0/insertDate=2008-11-15 22:59:15.811/processDate=9999-12-31 23:59:59.999/autoRunTime=9999-12-31 23:59:59.999/abortDate=9999-12-31 23:59:59.999/versionNo=0] ***** org.escafe.buri.dto.BuriStateUndoLogEntityDto ***** ***** org.escafe.buri.dto.BuriStateUserEntityDto ***** ***** org.escafe.buri.dto.BuriUserEntityDto ***** ***** tryapp.dto.DocumentDto ***** id=[158] title=[文書A] content=[文書Aです。] id=[159] title=[文書B] content=[文書Bです。] id=[160] title=[文書C] content=[文書Cです。] ☆this.bao.finishPublishing(doc2); ***** org.escafe.buri.dto.BuriBranchEntityDto ***** [/branchID=37/parentBranchID=0/pathID=null/dataID=37/BTID=0/processDate=null/versionNo=0] [/branchID=38/parentBranchID=0/pathID=null/dataID=38/BTID=0/processDate=null/versionNo=0] [/branchID=39/parentBranchID=0/pathID=null/dataID=39/BTID=0/processDate=null/versionNo=0] ***** org.escafe.buri.dao.BuriDataDao ***** [/dataID=37/pkeyVal=null/pkeyNum=158/dataType=tryapp.dto.DocumentDto/tableName=Document/insertUserID=null] [/dataID=38/pkeyVal=null/pkeyNum=159/dataType=tryapp.dto.DocumentDto/tableName=Document/insertUserID=null] [/dataID=39/pkeyVal=null/pkeyNum=160/dataType=tryapp.dto.DocumentDto/tableName=Document/insertUserID=null] ***** org.escafe.buri.dto.BuriDataPathHistoryEntityDto ***** ***** org.escafe.buri.dao.BuriPathDao ***** [/pathID=25/pathName=文書管理パッケージ.文書管理プロセス.登録/realPathName=newpkg.newpkg_wp1.newpkg_wp1_act1/pathType=null] [/pathID=26/pathName=文書管理パッケージ.文書管理プロセス.公開中/realPathName=newpkg.newpkg_wp1.newpkg_wp1_act2/pathType=null] ***** org.escafe.buri.dto.BuriStateEntityDto ***** [/stateID=37/pathID=26/dataID=37/branchID=37/userIDNum=null/userIDVal=null/participantName=文書管理担当/participantType=ROLE/BTID=0/insertDate=2008-11-15 22:59:15.531/processDate=2008-11-15 22:59:16.037/autoRunTime=9999-12-31 23:59:59.999/abortDate=9999-12-31 23:59:59.999/versionNo=0] [/stateID=38/pathID=26/dataID=38/branchID=38/userIDNum=null/userIDVal=null/participantName=文書管理担当/participantType=ROLE/BTID=0/insertDate=2008-11-15 22:59:15.71/processDate=2008-11-15 22:59:16.172/autoRunTime=9999-12-31 23:59:59.999/abortDate=9999-12-31 23:59:59.999/versionNo=0] [/stateID=39/pathID=26/dataID=39/branchID=39/userIDNum=null/userIDVal=null/participantName=文書管理担当/participantType=ROLE/BTID=0/insertDate=2008-11-15 22:59:15.811/processDate=9999-12-31 23:59:59.999/autoRunTime=9999-12-31 23:59:59.999/abortDate=9999-12-31 23:59:59.999/versionNo=0] ***** org.escafe.buri.dto.BuriStateUndoLogEntityDto ***** ***** org.escafe.buri.dto.BuriStateUserEntityDto ***** ***** org.escafe.buri.dto.BuriUserEntityDto ***** ***** tryapp.dto.DocumentDto ***** id=[158] title=[文書A] content=[文書Aです。] id=[159] title=[文書B] content=[文書Bです。] id=[160] title=[文書C] content=[文書Cです。] ☆this.bao.finishPublishing(doc3); ***** org.escafe.buri.dto.BuriBranchEntityDto ***** [/branchID=37/parentBranchID=0/pathID=null/dataID=37/BTID=0/processDate=null/versionNo=0] [/branchID=38/parentBranchID=0/pathID=null/dataID=38/BTID=0/processDate=null/versionNo=0] [/branchID=39/parentBranchID=0/pathID=null/dataID=39/BTID=0/processDate=null/versionNo=0] ***** org.escafe.buri.dao.BuriDataDao ***** [/dataID=37/pkeyVal=null/pkeyNum=158/dataType=tryapp.dto.DocumentDto/tableName=Document/insertUserID=null] [/dataID=38/pkeyVal=null/pkeyNum=159/dataType=tryapp.dto.DocumentDto/tableName=Document/insertUserID=null] [/dataID=39/pkeyVal=null/pkeyNum=160/dataType=tryapp.dto.DocumentDto/tableName=Document/insertUserID=null] ***** org.escafe.buri.dto.BuriDataPathHistoryEntityDto ***** ***** org.escafe.buri.dao.BuriPathDao ***** [/pathID=25/pathName=文書管理パッケージ.文書管理プロセス.登録/realPathName=newpkg.newpkg_wp1.newpkg_wp1_act1/pathType=null] [/pathID=26/pathName=文書管理パッケージ.文書管理プロセス.公開中/realPathName=newpkg.newpkg_wp1.newpkg_wp1_act2/pathType=null] ***** org.escafe.buri.dto.BuriStateEntityDto ***** [/stateID=37/pathID=26/dataID=37/branchID=37/userIDNum=null/userIDVal=null/participantName=文書管理担当/participantType=ROLE/BTID=0/insertDate=2008-11-15 22:59:15.531/processDate=2008-11-15 22:59:16.037/autoRunTime=9999-12-31 23:59:59.999/abortDate=9999-12-31 23:59:59.999/versionNo=0] [/stateID=38/pathID=26/dataID=38/branchID=38/userIDNum=null/userIDVal=null/participantName=文書管理担当/participantType=ROLE/BTID=0/insertDate=2008-11-15 22:59:15.71/processDate=2008-11-15 22:59:16.172/autoRunTime=9999-12-31 23:59:59.999/abortDate=9999-12-31 23:59:59.999/versionNo=0] [/stateID=39/pathID=26/dataID=39/branchID=39/userIDNum=null/userIDVal=null/participantName=文書管理担当/participantType=ROLE/BTID=0/insertDate=2008-11-15 22:59:15.811/processDate=2008-11-15 22:59:16.22/autoRunTime=9999-12-31 23:59:59.999/abortDate=9999-12-31 23:59:59.999/versionNo=0] ***** org.escafe.buri.dto.BuriStateUndoLogEntityDto ***** ***** org.escafe.buri.dto.BuriStateUserEntityDto ***** ***** org.escafe.buri.dto.BuriUserEntityDto ***** ***** tryapp.dto.DocumentDto ***** id=[158] title=[文書A] content=[文書Aです。] id=[159] title=[文書B] content=[文書Bです。] id=[160] title=[文書C] content=[文書Cです。]