ResourceTaskEnd

Defines the end of the flowchart branch modeling the task process for resource unit(s) (usually it is a wrap-up process).

In the figure below you can see the example of the wrap-up task. You define the wrap-up task as a flowchart branch starting from the lower port of Release block and ending with the ResourceTaskEnd block.


Parameters

Move resource to its home location [dynamic]
If selected, the resource(s) will be moved to their home location on finishing the task.
Value type: boolean
Default value: true
Local variable: unit - the resource unit
Release resources seized by this unit [dynamic]
If selected, the resources seized by this resource unit, will be released.
Value type: boolean
Default value: true
Local variable: unit - the resource unit
Actions
On exit [code]
Code executed when the resource unit exits the ResourceTaskEnd block.
Local variables: unit - the resource unit
                           Agent agent - the agent which was serviced before this wrap up
On remove [code]
Code executed when the resource unit is intentionally removed from this block by calling the unit's  function remove(). This code is automatically executed after the remove() function call.
Local variable: unit - the resource unit

Functions

long count() -  Returns the number of resource units passed through this object.

Ports

in
The input port.