Working with a Begin Event

When you work with a Begin event, you should take into account the following considerations.

When you create a process, Studio automatically adds a Begin and an End event connected by an unconditional transition.

Roles

Studio automatically adds a Begin event in an automatic role lane when you create a new process. You can move a Begin event to a user-defined role but this does not add any information to the process. The engine runs Begin events without the user's intervention.

Transitions

You cannot add an inbound transition to a Begin event. You must connect the Begin event to the process flow through one unconditional outbound transition. You may add it multiple outbound conditional transitions.

If you define multiple Argument Sets, then Message based transitions become available.

Variables

A Begin event can access the following types of variables:
  • predefined variables
  • instance variables
  • arguments
  • local variables

Argument Mapping

You can add input arguments to a process using the Argument Mapping of the Begin event. In the Argument Mapping you define how to map the input arguments to the process instance variables.

The input arguments can come from:
  • a Global Creation activity.
  • a Process Creation activity.
  • a Subflow activity.
  • a Global Automatic activity running PBL code to create instances.
  • a Global activity running PBL code to create instances.

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.