共用方式為


Activating a Workflow

Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

After you create a workflow in Microsoft Dynamics AX, you must implement a way to activate the workflow at runtime to display the workflow in your application.

Application users start a workflow when they click the Submit button on forms that are enabled for workflow and have a valid workflow configuration.

The Submit button is controlled by an action menu item set on the SubmitToWorkflowMenuItem property for the workflow type. The action menu item references the class that you must implement to activate the workflow and other business logic associated with activating a workflow.

Depending on the needs of your application, you can activate a workflow by using any of the methods listed in the following table.

Method

Description

Workflow::activateFromWorkflowType Method

Used to activate a specific workflow type without knowing which configuration to use.

Workflow::activateFromWorkflowConfigurationId Method

Used to activate a specific version of a configuration.

Workflow::activateFromWorkflowSequenceNumber Method

Used to activate a configuration without knowing the specific version.

For more information about how to activate a workflow, see Requirements for Enabling Workflow in an Application Module.

In This Section

See also

Requirements for Enabling Workflow in an Application Module

Announcements: New book: "Inside Microsoft Dynamics AX 2012 R3" now available. Get your copy at the MS Press Store.