locked
WorkflowInstanceAbortedRecord never emitted even if workflow aborted RRS feed

  • General discussion

  • Hello

    I have set up a custom tracking participant and it generally does whats expected except when a workflow is aborted. I would expect a WorkflowInstanceAbortedRecord to be emited but it is not. (As a test I created a native activity and called Context.Abort)

    I have set up the tracking profile as follows:

    const string all = "*";
     
            TrackingProfile profile = new TrackingProfile
            {
              Name = "DefaultProfile",
              Queries = 
            {
              new WorkflowInstanceQuery()
              {
                States = { all}
              },
              new ActivityStateQuery()
              {
                ActivityName = all,
                States = { all }
              }, 
              new CustomTrackingQuery() 
              {
                Name = all,
                ActivityName = all
              }
             }
            };

    Any advice?

    Thanks

    • Changed type Andrew_Zhu Friday, July 8, 2011 1:40 AM no reply
    Thursday, June 30, 2011 7:32 AM

All replies

  • Hi,

    Can WorkflowInstanceAbortedRecord be emited if you call
        wfApp.Abort();// wfApp is an instance of WorkflowApplication

    Regards
    MSDN Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    This posting is provided "AS IS" with no warranties, and confers no rights. My Blog: http://xhinker.com
    Microsoft Windows Workflow Foundation 4.0 Cookbook
    Thursday, July 7, 2011 6:59 AM