Workflow Rules
Workflow Rules, is to set up a system by System Admin to set up the system to work in Workflow Rules. The conclusion is based on Trigger and Action (setting in the Workflow Rules system, the admin must agree concept using code to developer before setting)
The functionality of Workflow Rules will run according to the procedure set Trigger and Action when users run the Model which made the Event what the settings in the Trigger and want to Action after users run as schedule of any Trigger Event and Model to must continue.
How to create Workflow Rules
- Go to Main Menu > Workflow > Workflow Rules > Click New Workflow Rule button.

- When you click New Workflow Rule button the system will appear for field to create Workflow Rule.

- Rule Description : Enter the description of workflow rule
- Status : The State set up to work for a Workflow Rule.
- Active : Workflow Rule is active
- Inactive : Workflow does not work (when custom work is successful, the status will automatically be changed to Inactive) are examples of the Workflow Rule "Error".
- Trigger : The work schedule that resulted in the work of Action.
- Trigger Model : Select a model to be set up to workflow rule.
- Trigger Event : Enter the code event of model , most is a event caused by pressing buttons in the model (Code is a Trigger must request from Developer )
- Condition Method : Enter the function of work (If you want to have additional work after the operation of Event) # Function will start work after Event finished according to specified.
- Condition Arguments : The working conditions of the condition method assigned to runs when the Event work.
- Action : The work after Trigger Event work completed.
- Action Model : Select Model to work on. When a Trigger Event is finished running.
- Action Method : The work function of action.
- Action Arguments : The terms of the Action that is assigned to run when the Action Method work.
For example of Workflow Rules.
Example : To Goods Transfer have any item in the Transfer Line to Location Shipping Area, and when the status of a Good Transfer is Done, to the creation of a Goods Issue to approve a status automatically.

- Rule Description : The Description of setting.

- Status : Select an active for setting to workflow rule of work.






- Action Method : The work function of Action.


Results from the Workflow setting.
- The work is Active status.
- Go to Goods Transfer (GT) > to create a GT and select To Location is a Shipping Area > Validate products to state GT is Completed.


- When state GT is Completed, and then go to the Goods Issue page (GI) , there will be one created at Frome Location is a Shipping Area.Other information will be Copy from GT and status GI is Approve.

- The work is Inactive status.
- Go to Goods Transfer (GT) > to create a GT and select To Location is a Shipping Area > Validate product to state GT is Completed > There will be no creation GI because the conditions on the part of the Action, there may be errors and the status of Workflow Rule is Inactive.


- When the system failed, the Workflow Rule page to show Error massage the error to resolve, For example, the picture below, there is no Location: CUSTOMER, to check Stock location: Customer that Location code is changed and synchronized. And change status Workflow Rule to Active again, so that the command works.

