Skip to main content

Function

A function object is an object that is used to run the code of the operations desired to be performed at any stage of the process steps, opening its own method to the flow code section and writing code into it.

In the steps in the process process where the flow passes through the function object, the code written in the function object is executed and the operations that the developer wants to do with the code block are performed. It is an object that allows the desired code to be used for many purposes, such as throwing data into an external environment or database, reading data from a web service, accessing or updating data in a flow or form, at the desired step of the flow.

When the object in the Flow design screen is clicked, the object properties appear in the Property Viewer panel.

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

Function

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

Value

'Type' - Whether the return value of the function object with the return value is alphanumeric, numeric, or logical is set from this tab. In the Type field; Text, Integer, Decimal, Date, Money, and True/False types are listed.

'Value Type' - If you want to give a constant value to the return value returned from the function, the "Constant value" option is selected from this field.

'Value' - The field to use when the Constant value option is selected in the Value Type field. In the "Value" field, constant value data can be entered.

Action

'Continue If Error Occurs' - When the flow passes through the function object, the block of code written into the function is executed. This field is checked if any error is encountered in this block of code, if the flow is intended to continue without error. The first connecting arm that is evicted from the function object is bound to the object, where it will successfully run the code in the flow function object and proceed to the next step. The second connecting lever that is removed from the function object is the "ContinueWhenErrorOccurs" lever. When there is any error in the function, the flow will continue from the flow object to which the "ContinueWhenErrorOccurs" arm is connected.

'Error Description Object' - When an error is encountered in the function, a Variable object to which the detailed text of the error is assigned can be selected from this field. Thus, the error message will be a text that the developer himself determines and is easy to understand.

INFO

It is checked by the system that the attached properties on the object are correct. When a missing feature is found, a red exclamation point icon can be displayed on the object, and hovering over the icon with the mouse pointer can display what is missing or incorrect.

Function

Events

The purpose of the function object; triggering the "Execute" event when the function is called during the flow and performing the code block function that the developer users have written under this event.

Double-clicking on the "Execute" event from the Events tab takes the screen 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.

Function