/// <summary> /// Build a summary of the workflow instance that this channel represents. /// </summary> /// <returns> /// <see cref="WorkflowInstanceSummary" /> representing the workflow /// instance. /// </returns> private WorkflowInstanceSummary buildWorkflowInstanceSummary() { bool isXomlWorkflow = WorkflowInstanceHelper.IsXomlWorkflow( this.trackingParameters.RootActivity); string xomlDocument = WorkflowInstanceHelper.GetXomlDocument( this.trackingParameters.RootActivity); WorkflowInstanceSummary workflowInstanceSummary = new WorkflowInstanceSummary( this.trackingParameters.InstanceId, isXomlWorkflow, xomlDocument, this.trackingParameters.ContextGuid, this.trackingParameters.CallerInstanceId, this.trackingParameters.CallerContextGuid, this.trackingParameters.CallerParentContextGuid, buildCallPath()); workflowInstanceSummary.WorkflowType = new WorkflowTypeSummary( this.trackingParameters.WorkflowType); workflowInstanceSummary.RootActivity = buildRootActivitySummary(); return(workflowInstanceSummary); }
/// <summary> /// Build a summary of the workflow instance that this channel represents. /// </summary> /// <returns> /// <see cref="WorkflowInstanceSummary" /> representing the workflow /// instance. /// </returns> private WorkflowInstanceSummary buildWorkflowInstanceSummary() { Boolean isXomlWorkflow = WorkflowInstanceHelper.IsXomlWorkflow( _trackingParameters.RootActivity); String xomlDocument = WorkflowInstanceHelper.SerialiseActivity( _trackingParameters.RootActivity); WorkflowInstanceSummary workflowInstanceSummary = new WorkflowInstanceSummary( _trackingParameters.InstanceId, isXomlWorkflow, xomlDocument, _trackingParameters.ContextGuid, buildNullableGuid(_trackingParameters.CallerInstanceId), buildNullableGuid(_trackingParameters.CallerContextGuid), buildNullableGuid(_trackingParameters.CallerParentContextGuid), buildCallPath()); workflowInstanceSummary.WorkflowType = new WorkflowTypeSummary( _trackingParameters.WorkflowType); workflowInstanceSummary.RootActivity = buildRootActivitySummary(); return(workflowInstanceSummary); }