LoginSignup
0

More than 3 years have passed since last update.

intra-martのワークフローマスタが「編集対象の定義情報が他のユーザによって変更されました」エラーで更新できない時

Last updated at Posted at 2018-08-28

状況

IM-Workflow関連のマスタ「コンテンツ定義」「ルート定義」「フロー定義」を編集しようとすると、「編集対象の○○定義情報が他のユーザによって変更されました。」というエラー表示されて更新ができない。

解決方法

  1. テナント管理メニューの「TableMaintenance」または「データベース操作」が可能なユーザでログインします。
    「データベース操作」はシステム管理ページでも利用可能。

  2. 以下のテーブルのupdate_countフィールドを参照します。
     コンテンツ定義: imw_m_contents
     ルート定義: imw_m_route
     フロー定義: imw_m_flow

  3. 更新できない定義情報と同じIDでlocale_idが異なるレコードのupdate_countを、全て同じに修正します。根拠はないが最大値に合わせるのがいいと思う。

「データベース操作」を使うなら、以下のSQLを流せばOK。

-- コンテンツ定義
update imw_m_contents a
set update_count = (
   select max(update_count)
   from imw_m_contents b
   where a.contents_id = b.contents_id
)
-- ルート定義
update imw_m_route a
set update_count = (
   select max(update_count)
   from imw_m_route b
   where a.route_id = b.route_id
)
-- フロー定義
update imw_m_flow a
set update_count = (
   select max(update_count)
   from imw_m_flow b
   where a.flow_id = b.flow_id
)

原因

自環境とロケール構成が異なる環境からワークフロー定義をエクスポートして自環境にインポートすると、エクスポート元に存在するロケール情報のみ更新されます。
このため、update_countにずれが生じることにより発生する模様。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0