2017 June Release

Defining a processPermanent link for this heading

A process definition is comprised of a sequence of serialized or parallel activities and control elements. Using such a process definition, a process instance can be instantiated by a user. A process instance is usually attached to exactly one business object.

The process keyword must be used to define a process. It must be followed by the reference and curly braces.

A process block may contain referenced processes (sub-processes), referenced activities, activity definitions and control elements. The following elements are supported within a process block:

  • activities defined using the activity keyword or referenced activities
  • referenced processes (sub-processes)
  • conditions defined using the if keyword
  • case statements defined using the switch keyword
  • loops defined using the repeat keyword
  • sub processes also defined using the activity keyword
  • parallel blocks defined using the parallel keyword

In addition to activity definitions and control elements a process block also supports the following elements:

  • The symbol keyword can be used to assign a custom symbol to a process definition.
  • The allowed keyword can be used to define a list of allowed object classes. If you define a list of allowed object classes, the process definition may only be used for initializing processes on instances of the object classes in the allowed block.
  • The denied keyword can be used to define a list of excluded object classes. If you define a list of excluded object classes, the process definition may not be used for initializing processes on instances of the object classes in the denied block.
  • With common = true the process can be marked as commonly useable.

Cloud profile note: Conditions, case statements, loops are not supported.