Event

public class Event

The Event object provides general information about an event in a process instance.

 Properties

Guid Id

The GuId of the event

DateTime Timer

The timestamp when the event needs to be triggered (Timer Events only)

string EventName

The name of the event

ProcessEventScope Scope

The scope of the event

ProcessEventPhase Phase

The phase the event is in

Guid Sender

The GuId of the sending process instance

Guid Receiver

The GuId of the receiving process instance

string Data

Data accompanying the event (currently only Message Event)

Guid CreatorTokenId

The Guid of the creating token

 Methods

bool Consume()

Consumes a triggered event

bool Cancel()

Cancels an event that is still planned and not yet consumed

Example

This example consumes the events of the process instance.

for e in ProcessInstance.Events:
   e.Consume()