First run with the Workflow Integrated Module

<< Click to Display Table of Contents >>

Navigation:  Advanced Features > Integrated Workflow Module >

First run with the Workflow Integrated Module

A step-by-step example with the Default Workflow Model

Suppose we want to submit to the Workflow Module a little assembly, made of two parts:

images_img00

The best place where to operate is a Working Set, so we will multiple-select all the components and create a Working Set:

images_img07

Now, when in the Working set tab of the TreePage, select all the records and a using the Working Set specific command, send the documents to the Workflow Module:

images_img08

The ECA() routine of the script LST\SYSTEM\Workflow.vbs will now execute, showing the entry dialog:

images_img09

Suppose to choose to create a new ECO ID;

Assign now a little description (any action could be taken at this point to add information to the ECO ID):

images_img11

Answer YES to the confirmation dialog:

images_img12

At this point all the eDrawings will be created for the documents in the working set. When finished to create the eDrawing, a aknowledgment dialog will be displayed; press OK to proceed:

images_img13

The control is now back to the PDM browser: refresh the displayed data: the little yellow square will now show that all the documents are now submitted to the Workflow Integrated Module:

images_img14

At this moment no revision action can be taken on the documents; you can verify this by opening the RMB Checkout/Checkin menu and seeing that all the entries are disabled:

images_img15

Lets now promote the Workflow State of all the three documents to the final state, so to approve them; RMB on each one and execute the following sequence:

I) Send Forward to the FINAL_APPROVAL state; please note how the message has been changed in the Workflow Definition File, so to be more user-friendly; note also on the right of the popup menu, grayed, the list of the states of the process, with, checked, the current workflow state.

images_img16

The Workflow Module will ask you a confirmation:

images_img17

Answer YES and proceed; the OnChangeState event script will be called; the script has in input all the parameters that can be useful for actions and extra notifications:

images_img18

Since the other two documents were belonging to the same ECO and are actually in the same process/state, the Workflow will ask for an automatic enhancement of their state:

images_img19

II ) Since the FINAL_APPROVAL is the last state of the process, when RMB again on the workflow sub-menu, the APPROVE entry will be proposed; please note that an additional entry ABORT is displayed in the popup menu; this because a state JUMP has been defined in the Workflow Definition File for this process.

images_img20

The Workflow Module will ask you a confirmation:

images_img21

Answer YES and proceed; the OnChangeState event script will be called; the script has in input all the parameters that can be useful for actions and extra notifications:

images_img22

When the LAST document will have it's final state ( FINAL_APPROVAL ) promoted forward ( i.e. approved ), and since all the other documents already are in the approved ( END ) state, the notification script OnSendNotificationToUsers will also be executed; the script has in input all the parameters that can be useful for actions and extra notifications:

images_img23

To check the IN WORKFLOW state of the documents, press not the button All Workflow Documents in the short-cut bar:

images_img24

The join of the fields of the DOCUMENT table and of the DBW_WORKFLOW table will be displayed in the Query Page; the little circles are now green because the documents are ready for the phisical approval in the DBWorks Browser:

images_img25

To rebuild the working set, you can now select all the table and choose Create Working Set:

images_img26

With the Working Set re-created, you can now use the Working Set Increment Revision State to approve all the three documents:

images_img27

The three document will so be phisically approved in DBWorks, showing the RELEASED color:

images_img28