How to Configure Dynamic Approval Workflow

From ADempiere
Revision as of 11:51, 11 May 2007 by Usman88 (Talk)

Jump to: navigation, search
This Wiki is read-only for reference purposes to avoid broken links.

Customize Requistion for Dynamic Workflow so that each newly created document only can be approve by user stated in Comment/Help.

The trick is using only depend on 2 field from m_requistion that is : "help" and "updatedby". Let's get it on :

1. Login as GardenAdmin and Create new users ie Felix & Sukito

01user.png


2. Create new role ie. Manager then tick Approve own documents and make sure to fill in Approval Amounts

02role.png


3. Assign Users into this role.

03role-users.png


4. Write down ad_user_id of the newly created users (we are going to use it later).

04user id.png


5. Logout and Login as System Adminstrator.

6. Goto Workflow

7. Select Process_Requisition.

05wf.png


8. Move to Node Tab, we are going to make as following node.

06node.png


9. Begin with create (SetUnApprove) node, set action to "set variable" and choose "isApprove" column then type "N" in Attribute box, save it.

07node-unaprv.png


10. Similar to step 9, create also node for (SetDocAction), (SetDocStatus), (SetProcessed) & (SetProcessed), set each node column and attribute value according to following image.

File:09node-action.png

File:11node-status.png

File:13node-Processed.png

File:15node-Processing.png


11. Back to node (SetUnApprove), then move to Transition tab and create new transition for this node. Set next node to (SetDocAction).

File:08trans-unaprv.png


12. Repeat step 11 for node (SetDocAction), (SetDocStatus), (SetProcessed) & (SetProcessed) as following image.

File:10trans-action.png

File:12trans-status.png

File:14trans-processed.png


13. Back to Node tab again, this time select (DocPrepare) and then move to transition tab, and create new transition to become as follow (Important! it's recommended to use sequence number as in the image) :

File:16trans-prepare.png


14. After set it up exactly as above, here is the core and tricky part of this whole story. Still in the transition tab select the first record sequence no. 10 then move to conditon tab and create new condition set And/or to "And", Column to "Help/Comment", operation to "=" and last value to "GA_Sukito", save it.

File:161cond-pre2sukito.png


15.