Overview of Workflow Definitions
*A workflow definition enables definition of a sequence flow of operations executed by persons. When executed, the workflow assures management of the sequence of operations and notification of the persons involved. The workflow can be applied to a repository object known as the workflow subject. In this case, expected operations are related to this object.
Creating a Workflow Definition
To create a workflow definition:
1. In the Hopex Customizer desktop, select Customization > Workflow Definitions.
2. Click New.
3. Enter the name of the workflow definition and click OK.
The new workflow definition is created.
A workflow must relate to an object type. You must therefore associate an object type with the workflow definition you have just created.
To define the object type to which the workflow relates:
1. In the properties of the workflow definition, select the Characteristics tab.
2. In the Subject MetaClass section, click the Connect button.
3. In the Select Query dialog box, select "Workflow Subject MetaClasses" and click OK.
4. Select a MetaClass and click OK.
*The connected MetaClass must be a sub-class of the "Workflow Subject" or "System Workflow Subject" abstract MetaClass.
*A subject MetaClass is a MetaClass to which a workflow definition can be applied. Workflows defined by this workflow definition can be executed on instances of this MetaClass.
Several options are available in the workflow definition properties:
• Allow Subject MetaClass Listing: enables display of a list in order to select a subject when starting a workflow.
• Allow Subject MetaClass Creation: enables creation of the object to which the workflow relates when starting a workflow.
• Allow Subject MetaClass Query: enables to launch the search tool to select a workflow subject whens starting a workflow.
• Subject Mandatory: makes selection of an (subject) object mandatory when starting a workflow.
• Activate Workflow: enables workflow activation or deactivation.
*Users should not access workflows which are in course of definition. For this reason, it is useful to be able to deactivate a workflow.
*If the workflow is deactivated, it can no longer be started. The Start Workflow menu of the workflow definition is grayed.
For each subject MetaClass you can specify in the corresponding columns:
• Workflow Condition: a condition enables filtering of workflows that can be instanced from a subject MetaClass.
It is for example possible to start a workflow on an object type that has a particular characteristic.
*A condition can be used on workflows instanced at creation of the subject when several workflow definitions exist for a MetaClass.
• Unique Instancing: enables indication that for a subject instance you can have only a single workflow instance in progress.
• Instance at Creation: enables creation of a workflow instance at workflow creation that manages the life cycle of the object.
• Main Workflow: enables specification, for a given subject MetaClass, that this workflow gives or does not give the main current status.
*Several workflow definitions can be defined for the same MetaClass. However, a MetaClass can only have one main workflow definition.
To be able to specify the workflow, you must then create the workflow definition diagram.
Accessing workflow definitions
To access workflow definitions:
*In the Hopex Customizer desktop, select Customization > Workflow Definitions.
For each workflow definition, contained elements are displayed in sub-folders:
• workflow definition diagram
• workflow statuses
• workflow transitions
• workflow participants
• workflow actions
Creating a workflow definition diagram
To create a workflow definition diagram:
2. Hover the mouse over the workflow definition and select Create a diagram > Create this diagram.
In a workflow definition diagram, you must:
• create a workflow status of Initial type.
• create the different workflow statuses and connect these by means of workflow transitions.
• create the last workflow status or statuses of Final type.
• specify persons that trigger transitions: to do this you connect workflow participants to the different transitions.
Persons must be associated with workflow participants.