#4115 save workflow objects with primary key