Takes the incoming agents out of the process flow and lets the user specify what to do with them.
If all you want to do is to dispose the agents you should use the Sink block. Typically Exit is used either to transfer the agents to a part of model implemented in another modeling style (e.g. to a statechart, a function, etc.), or, in pair with Enter object, to implement custom routing of agents between different parts of the process model. The agent is accessible in onExit parameter.
How-To video: Using agents in a process flow
Custom object. Suppose you want to develop a reusable object with functionality not covered by the Process Modeling Library and use it in the process flowchart. You may then create a new agent type, declare two regular ports (say, in and out), use Exit at the input and Enter at the output and use any modeling constructs in between, see the picture below. To forward the incoming agent to the "custom implementation" you should use the onExit parameter of Exit where the agent is accessible, and to output the outgoing agent you should call enter.take( agent ).
long count() - Returns number of agents passed through this block.