In this guide you will learn of how to set-up an event handling for a first article approval form.
Prerequisites for this event handling is that a form must have been created and that planned order runs are utilized.
If you haven't created a form please consult the guide Create a form.
Create an event handling
- Go to System administration, click Event handling and then go to Observations
- Click "Create"
- Give the event handling a name, either make the window full screen or enlarge it enough for the "Name" box to appear.
- Click "Save" and then close the window.
- Tick the box Execution disabled so the event handling won't start before you have finished the configuration. (If you can't find your Observation, try switching page which is done at the bottom of the window)
- Click the connect button to connect a system event to the event handling.
- Choose the system event "Measuring point has produced units" and then press "Save and close"
- Now select the event and open it again.
- Double klick the symbol called "Observation"
- Press the plus symbol by the folder "Observation".
- Adjust the window to an appropriate size.
- Select "Current producing unit" and then click "Add" to add the observation.
The observations which are added can be moved by click-and-drag in the grid window.
- Select the measure point that will be using the event handling.
- Add "Current terminal" so that the form is directed the right terminal
- Select current terminal.
- Now add the observation "Produced amount since orderstart"
- Enter how many units that needs to be produced since the start of an order until the form shall appear.
In this case since it is a first article approval form, the amount which has been entered is 1.
You also get the choices:
Get produced amount from the current order - By ticking this box the form will appear even after an order has been paused and started again.
Limit check to produced on current measure point - Use this box if you are working with one order on two or more machines and want the form to only appear on a specific machine.
- Now you have to connect "start condition" to all the observations consecutively, ending with "EndCondition".
This is done by left-clicking on "start condition", then holding down the Alt-key while left clicking on each observation ending on "End condition".
The connection will be indicated by arrows connecting the observation.
Arrows are erased by clicking them and then pressing delete on your keyboard.
All observations can be connected separately by first clicking one and then while holding the ALT-key clicking the one you wish to connect it with.
- When you connect "Current terminal" to "Produced since orderstart" you will be given a choice, select "Input: Boolean" by clicking the text.
- Left click "Produced since order start" then hold the ALT-key while left clicking "EndCondition".
- When you connect "Produced since order start" to "EndCondition" you will be given a choice, select "Output: Boolean".
- Now select "InternalInstance: Boolean" by clicking the text.
- Now the observations are done. Click the tab "WorkFlow for SystemEventBinding:New event".
- Double-click "Actions"
- Click the plus-button next to the "Actions" folder.
- Select the action "Open new form" and then press "Add"
- Select which form you want to be opened by selecting it in the drop-down list.
You can also enter how many seconds it should take before the form should be considered late (not mandatory).
- You also get two choices for added functionality, neither of which are mandatory.
If you want the form to pop-up and cover the screen you can tick the box "Show as popup".
By ticking the box "Disable close in popup" the form can only be closed by clicking "Save". This will in effect lock the screen prohibiting the user from doing anything else until the form has been saved.
- Now press "Save" and then close the window.
- The event handling is now completed. Remember to untick the box "Execution disabled" when you want to activate it.