Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>WF already supports a logging structure which it calls <a href="http://msdn.microsoft.com/en-us/library/ee513992.aspx" rel="nofollow">WF Tracking</a>. You would be wise to just follow the existing infrastructure so you don't incur any unnecessary performance overhead.</p> <p>You need to look at how to incorporate <a href="http://msdn.microsoft.com/en-us/library/system.activities.tracking.trackingparticipant.aspx" rel="nofollow"><code>TrackingParticipants</code></a>. You will need to replace the <a href="http://msdn.microsoft.com/en-us/library/system.activities.workflowinvoker.invoke.aspx" rel="nofollow"><code>WorkflowInvoker.Invoke()</code></a> with <a href="http://msdn.microsoft.com/en-us/library/system.activities.workflowapplication.aspx" rel="nofollow"><code>WorkflowApplication</code></a> (<em>or create an instance of <code>WorflowInvoker</code></em>) so that you can add your custom <code>TrackingParticipant</code> via <a href="http://msdn.microsoft.com/en-us/library/ee517415.aspx" rel="nofollow">WF Extensions</a>. By defining a <a href="http://msdn.microsoft.com/en-us/library/system.activities.tracking.trackingprofile.aspx" rel="nofollow"><code>TrackingProfile</code></a> you can restrict the tracking messages to only those which you are interested by trace level, event type, and tracking record.</p> <p>If you wish to log your own custom <a href="http://msdn.microsoft.com/en-us/library/system.activities.tracking.trackingrecord.aspx" rel="nofollow"><code>TrackingRecords</code></a>, you can derive from the base <code>TrackingRecord</code>.</p> <p>Alternatively - you could build a wrapping custom activity as suggested by @Gabocat, but this will incur additional performance overhead that WF Tracking would not.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload