Break task

A Break task works within an enclosing Loop task, Iterator task, or DataConnect task to decide whether the enclosing task should continue performing the sequence of tasks that it contains or exit the sequence, and whether the exit should be considered a success or an error. As you develop a workflow that contains a Break task, the Break task shape and color may change depending on the properties you select.

A Break task decides whether to continue with its enclosing task or to exit out of it based on the Break task properties and whether or not all of the conditions associated with them are true. The form for a Break task is used to set properties, to associate conditions with a Break task, and to manage conditions. The creation and management of conditions is discussed in "Example: Workflow condition builder".

The properties form for a Break task is organized into three sections. Here are descriptions of the fields in the first section:
Flow Type

Loop, Iterator, and DataConnect tasks are tasks that define a block of tasks. Select Break if the workflow should exit from the block when the condition is met. Select Continue if the workflow should continue processing from the beginning of the block when the condition is met. The block to Break out of, or the block to Continue in, is determined by the Scope property.

If a Break task is encountered, the next task is determined by the values in the Break Scope section. The Flow Type (Continue or Break) determines whether it continues on the next iteration or loop of the enclosing task or breaks out. The Task Status determines what the transaction management should do.

Task Status

Indicates how the status of the enclosing block should be set on Break or Continue. In a DataConnect task the status is used as part of the transaction control. The DataConnect task is described in "DataConnect task".

Selecting Success may cause a commit if the value of the block in the Break Scope section is a controlling block and it is time for the commit based on the transaction settings or if breaking out of the controlling block. Selecting Error causes a rollback if the value of the block in the Break Scope section is the controlling block or if breaking out of the controlling block.