Skip to main content

Timer

The timer object ensures that the desired operation is performed on the stream after a specified period of time. The object is used with other flow objects "Start Timer" and "End Timer" objects. When placed on the flow screen, no arrow from another flow object is connected to this object. However, the "Time Out" arrow must be omitted from the Timer object to specify where to route the stream when it times out.

The timer object is dragged from the toolbox panel and dropped onto the stream. When the object in the Flow design screen is clicked, the object properties appear in the Property Viewer panel.

When the timer object is clicked, there are "Appearance", "Properties" and "Events" tabs in the Property Viewer panel.

Timer

Appearance

Text Configs

'Object Name' - The name of the object to be used on the system side. On the code side, the object is accessed by the value that is written in the object name field.

'Caption' - The area where the object's title text is entered.

'Is Lock' - This field is activated if the object is not to be moved at the time of design.

'Size' - The part where the width and height of the object are adjusted.

Properties

Time Out

'Day' - The field where the number of days set for the timeout is entered.

'Hour' - The field where the number of hours set for the timeout is entered.

'Minute' - The field where the number of minutes set for the timeout is entered.

'Calculate Using Working Hours' - Should be checked if it is desired to take into account the working hours specified in the system settings when calculating the timeout.

'Calculate Using Holidays' - Should be checked if it is desired to take into account the days specified as holidays in the time-out calculations.

TIP

For example, in the scenario in the following illustration, when the process starts, the Timer passes through the Start object and comes to user approval. The Start Timer object triggers the Timer object and starts the 1-day Time Out counter defined in the object. If the user in the position titled "User Supervisor" does not take any action in the process within 1 day, the process proceeds through the Timeout lever on the Timer object when the time is completed.

Timer

Events

Events

The events owned by the timer object are located in the "Events" tab in the Property Viewer panel. Each event is triggered at different runtime moments, performing its own unique operations. Code written by the developer to these events is also executed at the time the corresponding event is triggered. To write code for any event, double-click the appropriate event line from the Events tab. The screen is directed to the flow code editor section named "FlowName.cs" and the method block for the clicked event is automatically created. The developer can construct any code block he wants in this method. Next to the event whose method is created on the code side by clicking from the Events tab, the method name information is automatically generated and the relationship between the event and the method is specified.

Timer