Workflow Definition Events

The events in this category occur when a workflow definition is active.

ClosedWorkflow Event Sequences

The events that occur for the workflow definition commands are shown in the following lists in the sequence that they occur.

ClosedExecute transition event sequence

  • DocGenericEvent_PrepareCommand 1

  • DocCWFEvent_PreInitializeExecuteTransition 2

  • DocCWFEvent_InitializeExecuteTransition

  • DocCWFEvent_InitializeWizard

  • DocGenericEvent_OnProperties

  • DocCWFEvent_TerminateWizard

  • DocCWFEvent_PreBeforeExecuteTransition

  • DocCWFEvent_BeforeExecuteTransition

  • DocCWFEvent_BeforeNewRevision

  • DocCWFEvent_AfterNewRevision

  • DocCWFEvent_TerminateNewRevision

  • DocCWFEvent_AfterExecuteTransition

  • DocWorkflowEvent_AfterReplaceReleased

  • DocCWFEvent_TerminateExecuteTransition

Notes

  1. Occurs in PowerUser only.

  2. Occurs in PowerWeb only.

ClosedReassign Managers event sequence

  • DocGenericEvent_PrepareCommand

  • DocWorkflowEvent_InitializeChangeWFManager 1

  • DocWorkflowEvent_BeforeChangeWFManager

  • DocWorkflowEvent_AfterChangeWFManager

  • DocWorkflowEvent_TerminateChangeWFManager 1

Notes

  1. Occurs in PowerUser only.

ClosedReroute event sequence

  • DocGenericEvent_PrepareCommand

  • DocCWFEvent_InitializeReroute

  • DocCWFEvent_BeforeReroute

  • DocCWFEvent_AfterReroute

  • DocCWFEvent_TerminateReroute

ClosedDocCWFEvent_*ExecuteTransition Events

Occurs when a workflow definition transition is executed.

Syntax

DocCWFEvent_*ExecuteTransition(Batch, Transition, Person, Manager, Comment)
Parameters
Name Description

Batch

An object that represents the batch of documents the user has selected.

Transition

A WorkflowTransition object that represents the transition to execute.

Person

An object that represents the user who is executing the transition.

Manager

An object that represents the user who is the manager of the workflow.

Comment

A string containing the text entered by the user who is executing the transition.

Remarks

This set of events is intended to support user input to a batch process using the Batch.Confirmation Method and its related methods and properties as follows:

  • The user initiates a workflow transition on a batch of documents

  • DocCWFEvent_PreInitializeExecuteTransition event is executed and any changes to the event parameters are ignored. Not supported by PowerUser.

    Any batch scope confirmations are shown at this time.

  • DocCWFEvent_InitializeExecuteTransition is executed and any changes to the event parameters are processed.

    Any batch scope confirmation results can be queried in script.

  • For each document in the batch:

    • DocCWFEvent_PreBeforeExecuteTransition is executed and any changes to the event parameters are ignored. Not supported by PowerUser.

      Any document scope confirmations are shown at this time. The document name is visible to the user.

    • DocCWFEvent_BeforeExecuteTransition is executed and any changes to the event parameters are processed.

      Any document scope confirmation results can be queried in script.

    • DocCWFEvent_AfterExecuteTransition is executed and any changes to the event parameters are ignored.
    • DocCWFEvent_TerminateExecuteTransition is executed and any changes to the event parameters are ignored.

ClosedDocCWFEvent_*Wizard Events

Occurs when property pages are shown by a transition of the workflow.

Syntax

DocCWFEvent_*Wizard(Batch, Transition, Comment)
Parameters
Name Description

Batch

An object that represents the batch of documents the user has selected.

Transition

A WorkflowTransition object that represents the transition that is showing the property pages.

Comment

A string that represents the default comment to add to the comment log.

ClosedDocCWFEvent_*NewRevision Events

Occurs when a new revision is created by a transition of the workflow.

Syntax

DocCWFEvent_*NewRevision(Batch, Transition)
Parameters
Name Description

Batch

An object that represents the batch of documents the user has selected.

Transition

A WorkflowTransition object that represents the transition that is creating the new revision.

ClosedDocCWFEvent_*Reroute Events

Occurs when a workflow is rerouted to a state other than a default destination state.

Syntax

DocCWFEvent_*Reroute(Batch, State, Person, Comment)
Parameters
Name Description

Batch

An object that represents the batch of documents the user has selected.

State

An object that represents the destination state.

Person

An object that represents the user who is rerouting the documents.

Comment

A string containing the text entered by the user who is rerouting the documents.

2021 R2