petri net api 4.02

Closes #12140.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>