Throw - Xyna-Factory/xyna GitHub Wiki

Figure 1: Throw Figure 2: Conditional Choice with Throw inside the false-case

A Throw is a Modeling Block that can be used in the Xyna Process Modeller. It allows throwing an error from within a Workflow. This may make sense, for instance, if one lane of a Conditional Choice may not reasonably happen in the current Workflow's context (cf. fig. 2).

Insert a Throw

To model Throws drag Exception Types e.g. from the Factory Navigation into the empty space of the Workflow's modeling area.

Please note: It is not allowed to insert Modeling Blocks below a Throw object because they would never be executed. An issue is raised in case such constellation arises.

Catching a Throw

After a Throw object was inserted inside a Workflow the appendant Exception Type shows up inside the Workflow's Catch area. It is now possible to handle this kind of error by adding a Catch lane for this Exception Type. If not handled, the Exception Type will remain as part of the Workflow's Throws Parameters, which can be handled in the Catch areas of other Workflows using this Workflow as Subworkflow Process Step.

Please note: After catching an error it is possible to use the Exception Type's instance as source for an Input Parameter inside the Catch lane. So it can be used to rethrow the error with another Throw object.

See Also

⚠️ **GitHub.com Fallback** ⚠️