Advertisement
vilgelmbb

SafeEditObjects

Dec 17th, 2014
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 KB | None | 0 0
  1.         var guid = Context.GetObjectRef(Document).Id;
  2.             WorkflowHelpers.SafeEditObjects(Gate, Process.ID, PassInfo.FunctionID, new Guid[]
  3.             {
  4.                 guid
  5.             }, delegate
  6.             {
  7.                 try
  8.                 {
  9.                     //Изменяешь что-то в документе
  10.                 }
  11.                 catch (Exception ex)
  12.                 {
  13.                     Process.LogMessage("Error=" + ex.ToString());
  14.                 }
  15.  
  16.             });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement