Cómo navegar por el SitioCómo usar el GlosarioCómo usar las Preguntas-FrecuentesCómo buscar en el SitioAcerca del SitioDeclaración acerca del contenido del Sitio
Un Proceso (Principal o Subproceso) se instancia cuando se gatilla un Evento Inicial, el que crea un Token por cada uno de sus Flujos de Secuencia salientes. Cada uno de estos Tokens continuará por el Flujo del Proceso, y será, en algún momento, consumido.
En algunos casos, se crean Tokens dentro del Proceso, por ejemplo en Eventos Intermedios en el Borde de Actividades.
Normalmente, lo Tokens son consumidos en Eventos Finales, pero también pueden ser consumidos a medio camino, por ejemplo, en Compuertas Complejas.
Una instancia de Proceso (Principal o Subproceso) se completa si y solo si se cumple que:
Todos los Tokens dentro del Proceso han sido consumidos.
Ninguna Actividad del Proceso sigue activa.
Nótese que las instancias de los Procesos se completan, pero no las Colaboraciones. De hecho, una Colaboración nunca es "instanciada", son los Procesos, que ocurren en las Piscinas, los que se instancian.
Cuando un Token llega a un Evento Final activa el comportamiento asociado con el tipo del Evento, por ejemplo, se envía un Mensaje o una Señal, y se consume el Token.
Si el Token llega a una Actividad o Compuerta Convergente sin Flujo de Secuencia Saliente, equivale a que llegue a un Evento Final Vacío a continuación de la Actividad o Compuerta.
Proceso de un camino
Proceso con varios caminos excluyentes
Proceso con varios caminos paralelos
Proceso con nuevos Tokens intermedios
Proceso con Token consumidos a medio camino
Proceso con Subprocesos embebidos
Finalización anormal
Terminación
Con un Evento Final Terminar, el Proceso finaliza de manera anormal, todas las Actividades activas abortan, sin compensación. Ninguna otra instancia de Proceso en curso se ve afectada. En el caso de un Subproceso, tampoco se ven afectadas instancias de nivel superior.
Cancelación
Con un Evento Final Cancelar, el Subproceso se termina anormalmente y la transacción asociada se aborta. El Control abandona el Subproceso a través de un Evento Intermedio de Borde Cancelar.
Instanciaciones complejas
Si la instancia del Proceso se creó con una Compuerta Inicial de Eventos Paralela, entonces todos los Eventos Mensaje asociados a la Compuerta deben haber ocurrido.
Temporal
Texto.Texto.
Texto.Texto.
Texto.Texto.
Texto.Texto.
Especificación BPMN
Each Start Event that occurs creates a token on its outgoing Sequence Flows, which is followed as described by the semantics of the other Process elements.
A Process instance is completed, if and only if the following three conditions hold (p.426):
If the instance was created through an instantiating Parallel Gateway, then all subsequent Events (of that Gateway) MUST have occurred.
There is no token remaining within the Process instance.
No Activity of the Process is still active.
For a Process instance to become completed, all tokens in that instance MUST reach an end node, i.e., a node without outgoing Sequence Flows. A token reaching an End Event triggers the behavior associated with the Event type, e.g., the associated Message is sent for a Message End Event, the associated Signal is sent for a Signal End Event, and so on. If a token reaches a Terminate End Event, the entire Process is abnormally terminated.
Process level end events
For a “terminate” End Event, the Process is abnormally terminated—no other ongoing Process instances are affected.
For all other End Events, the behavior associated with the Event type is performed, e.g., the associated Message is sent for a Message End Event, the associated signal is sent for a Signal End Event, and so on. The Process instance is then completed, if and only if the following two conditions hold (p.443):
All start nodes of the Process have been visited. More precisely, all Start Events have been triggered, and for all starting Event-Based Gateways, one of the associated Events has been triggered.
There is no token remaining within the Process instance.
Sub-process level end events
For a “terminate” End Event, the Sub-Process is abnormally terminated. In case of a multi-instance Sub-Process, only the affected instance is terminated—no other ongoing Sub-Process instances or higher-level Sub-Process or Process instances are affected.
For a “cancel” End Event, the Sub-Process is abnormally terminated and the associated transaction is aborted. Control leaves the Sub-Process through a cancel intermediate boundary Event.
For all other End Events, the behavior associated with the Event type is performed, e.g., the associated Message is sent for a Message End Event, the associated signal is sent for a signal End Event, and so on. The Sub-Process instance is then completed, if and only if the following two conditions hold (p.443):
All start nodes of the Sub-Process have been visited. More precisely, all Start Events have been triggered, and for all starting Event-Based Gateways, one of the associated Events has been triggered.
There is no token remaining within the Sub-Process instance.