Adds a new activity capable of releasing a resource to the tail of a trajectory.
release(traj, resource, amount = 1)
the trajectory object.
the name of the resource.
the amount to release, accepts either a callable object (a function) or a numeric value.
The trajectory object.
Other methods for dealing with trajectories: create_trajectory, get_head, get_tail, get_n_activities, join, seize, set_attribute, timeout, branch, rollback, leave, seize_selected, release_selected, select.