Ejemplo n.º 1
0
 protected override void Execute(CodeActivityContext context)
 {
     using (var xrmWorkflowContext = new XrmWorkflowContext(context))
     {
         xrmWorkflowContext.TracingService.Trace(string.Format(
                                                     CultureInfo.InvariantCulture,
                                                     "{0}.Exceute() is firing. Name:{1}, Group:{2}, NameInGroup: {3}",
                                                     this.workflowActiviy.TypeName,
                                                     this.workflowActiviy.Name,
                                                     this.workflowActiviy.Group,
                                                     this.workflowActiviy.NameInGroup));
         try
         {
             Execute(xrmWorkflowContext);
         }
         catch (Exception ex)
         {
             xrmWorkflowContext.TracingService.Trace(string.Format(CultureInfo.InvariantCulture, "Exception: {0}", ex.ToString()));
             throw;
         }
         finally
         {
             xrmWorkflowContext.TracingService.Trace(string.Format(CultureInfo.InvariantCulture, "Exiting {0}.Execute()", this.workflowActiviy.TypeName));
         }
     }
 }
Ejemplo n.º 2
0
 public abstract void Execute(XrmWorkflowContext context);