Workflow and Process Entities for Microsoft Dynamics CRM
The Microsoft Dynamics CRM workflow object model is a set of classes that uses the Windows Workflow Foundation object model and exposes Microsoft Dynamics CRM workflow activities. These classes are found in the
Microsoft.Xrm.Sdk.Workflow assembly. For more information, see Microsoft.Xrm.Sdk.Workflow.
Workflow activities are the elemental units of a workflow (process). They are added to a workflow (process) to form a hierarchical tree structure. When all activities in a given path are finished running, the workflow (process) instance is completed.
The workflow entity stores the definition of a workflow (process). This definition contains the XAML string that describes the workflow activity, and also the rules used in the process.
The validity of a workflow definition may depend on external data. There are several types of dependencies that are supported:
SDK operation: If a process is triggered on a specific SDK operation, it cannot be deleted.
Input entity: A process depends on a snapshot of a record passed in to the workflow.
Local parameter: A formal description of a .NET property to be defined by the process type.
The workflow log entity contains detailed information about logical steps completed during the execution of a workflow. Similarly, the process session (dialog session) entity contains information about the running of a dialog.
There are two messages you can use to work with processes. SetStateRequest is used to set the state of the process: draft or activated. CreateWorkflowFromTemplateRequest is used to create a process from a process template.
For deployments that have Update Rollup 1 applied, if the workflow was created in the Web application and the workflow definition has the Workflow.AsyncAutoDelete attribute set to true, and the workflow has a single step in it that is not a Stage/Wait/Condition step, no WorkflowLog records will be created. This is an optimization change to improve performance and save disk space. However, you will no longer see the “X” next to the step if the step failed.
|This feature requires Microsoft Dynamics CRM 2011 Update Rollup 1. For on-premises customers, updates and hotfixes can be installed automatically from Microsoft Update. You can also search for updates on the Microsoft Download Center. For online customers, update rollups will be deployed automatically to your organization.|
ConceptsWorkflow (Process) Entity Messages and Methods
Workflow (Process) Entity Metadata
Workflow (Process) Entity OptionSet Attribute Metadata
WorkflowLog (Process Log) Entity Messages and Methods
WorkflowLog (Process Log) Entity Metadata
WorkflowLog (Process Log) Entity OptionSet Attribute Metadata
ProcessSession (Dialog Session) Entity Messages and Methods
ProcessSession (Dialog Session) Entity Metadata
ProcessSession (Dialog Session) Entity OptionSet Attribute Metadata
Other ResourcesWrite Workflows to Automate Business Processes
Microsoft Dynamics CRM 2011
Send comments about this topic to Microsoft.
© 2013 Microsoft Corporation. All rights reserved.