Compartir a través de


WorkflowTrackingTable::saveTracking Method

Microsoft internal use only.

Syntax

client server public static void saveTracking(SysWorkflowTracking _tracking)

Run On

Called

Parameters

Exceptions

Exception Condition
Error

The WorkflowTrackingStatusTable record was not found. The WorkflowTrackingContext and WorkflowTrackingType combination does not allow a WorkflowTrackingStatusTable record to be inserted. The WorkflowTrackingContext and WorkflowTrackingType combination must be defined as follows. WorkflowTrackingContext::Workflow , WorkflowTrackingType::SubmissionWorkflowTrackingContext::SubWorkflow , WorkflowTrackingType::SubWorkflowStarted

Remarks

This method saves an instance of the SysWorkflowTracking class. The saveTacking persists an instance of the SysWorkflowTracking class to 3 tables;

  • The WorkflowTrackingTable table

  • The WorkflowTrackingCommentTable table

  • The WorkflowTrackingStatusTable table

A record is inserted into the WorkflowTrackingTable table and the WorkflowTrackingCommentTable table every time that an instance of the SysWorkflowTracking class is persisted. However a record is inserted into the WorkflowTrackingStatusTable table only when a workflow submitted or sub-workflow is started. There is only one WorkflowTrackingStatusTable record per workflow. Therefore, the WorkflowTrackingStatusTable table is updated every time that an instance of the SysWorkflowTracking class is persisted.

See Also

Reference

WorkflowTrackingTable Table