Compartir a través de


ReleaseUpdateTransformDB50_Basic.validateWorkflow Upgrade Script

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

Class

ReleaseUpdateTransformDB50_Basic

Method

validateWorkflow

Description

Checks for any active running instances of workflows and allows the user to cancel them.

Script Type

Upgrade readiness scripts

Microsoft Dynamics AX Source

Microsoft Dynamics AX 4.0

Microsoft Dynamics AX 2009

Affected Modules and Tables

Affected Modules

Basic

Validation Issues

Validation Issues Description

Validates whether at least one active workflow exists.

Checked Conditions

Checks whether there are any records in the SysWorkfowTable table.

Mitigation/How-to-fix

All active workflows in the system must either complete or be cancelled prior to upgrading. A workflow can be cancelled by the user that submitted a record to workflow, the workflow owner, or the system administrator. Active workflows can also be cancelled during upgrade validation. Make sure that the batch processor that processes workflows is running.

Remarks

The script checks to see the count of records in the SysWorkflowTable table. If the count is greater than 0, it assumes that there are active workflow instances and logs an error. It also gives the user the option to fix them by providing a custom form that allows a user to select multiple running workflow instances and cancel them.