When you create a process, Studio automatically adds a Begin and an End event connected by an unconditional transition.
Studio automatically adds an End event in an automatic role lane when you create a new process. You can move an End event to a user-defined role but this does not add any information to the process. The engine runs End events without the user's intervention.
You must connect the process flow to the End event using at least one inbound transition. You cannot add an outbound transition to an End event.
You can grab instances sitting in an End event if they are not aborted or terminated.
If you use the process as a subprocess you can define an Argument Mapping with output arguments to return information to the parent process.
Advance scripting is available for compatibility with previous versions. Oracle recommends not to use this feature. If you need to run code immediately after the instance creation you can add an automatic activity immediately after the Begin event.