Skip to main content

Flow Resumer

A Flow Resumer object is an object in a stream object in designed projects that enables the process to advance to the next step without writing code while the process is waiting.

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

Stream Resumer

Clicking on the Stream Resumer object will provide "Appearance", "Properties", and "Events" tabs in the Property Viewer panel.

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

Status

'ProcessId' - This is the field where the process number of the flow to be resumed is defined, static or liquid data that can be used in the flow can be defined.

For example, if the process number to be advanced is contained within the Variable object, the field should be defined as {{VariableName.Value}}.

'ObjectName' - The field where the object name in the stream to be resumed is typed.

For example, if the pending request on the Flow Stopper object is desired to be forwarded in the process to be resumed, the name of the object must be defined in the ObjectName field.

CAUTION

The title information of the object should not be entered when identifying.

'EventId' - This is the field that determines which event will advance the process through which event is defined in the object written in the ObjectName field.

For example, suppose the ObjectName field has the Flow Stopper object defined and the object contains Approve (Identity=5) and Reject (Identity=6) events. The EventId field must type the Identity number of the Confirm event when the object is prompted to proceed from the Confirm link.

TIP

Stream Resumer

In the flow scenario in the illustration, when the user who initiated the flow sends the process through the Send event, the flow hover over the Flow Stop object and the process begins to wait until an outside intervention is made in this step.

When the user who initiated the flow enters the process number for a pending process into the NumberBox object on the form and advances the process through the Confirm event, the process comes to the Flow Resumer object. In the ProcessId field of the object, the liquid expression of the Variable object from which the NumberBox object on the form is selected is written for the process number data. The ObjectName field defines the naming of the Flow Stop object in the Name field, and the EventId field enters the Identity value of the Confirm event for the Stream Stop object.

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.

Stream Resumer

Events

The events owned by the Stream Resumer 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 indicated.

Stream Resumer