Skip to main content

OnBeforeEventArguments Constructors

An object defining constructors for the OnBeforeEventArguments class.

OnBeforeEventArguments(eventCode, resultEventCode, actionerUserId, actionerType, reason, step, processId, isSessionStarterObject, context)

Constructor for the OnBeforeEventArguments class. Initializes a new instance of OnBeforeEventArguments with the specified parameters.

Parameters:

eventCode (required): int
The event code of the event.

resultEventCode (required): int
The result event code after the event has been processed.

actionerUserId (required): long
The ID of the user who took action.

actionerType (required): ApproverType
The type of approver (user, position, etc.) performing the action.

reason (required): Dictionary<string, string>
A dictionary containing the reason for the action taken.

step (required): StepArguments
The step arguments for the workflow step.

processId (required): long
The ID of the process where the event is part of.

isSessionStarterObject (required): bool
Indicates whether this is the session starter object.

context (required): #linkDocument(csharp-Bimser.Synergy.Entities.Shared.Business.Objects.Context)
The context in which the event is being executed.


OnBeforeEventArguments(eventCode, resultEventCode, actionerUserId, actionerType, reason, step, processId, isSessionStarterObject, context)

Constructor for the OnBeforeEventArguments class. Initializes a new instance of OnBeforeEventArguments with the specified parameters.

Parameters:

eventCode (required): int
The event code of the event.

resultEventCode (required): int
The result event code after the event has been processed.

actionerUserId (required): long
The ID of the user who took action.

actionerType (required): ApproverType
The type of approver (user, position, etc.) performing the action.

reason (required): Dictionary<string, string>
A dictionary containing the reason for the action taken.

step (required): StepArguments
The step arguments for the workflow step.

processId (required): long
The ID of the process where the event is part of.

isSessionStarterObject (required): bool
Indicates whether this is the session starter object.

context (required): #linkDocument(csharp-Bimser.Synergy.Entities.Shared.Business.Objects.Context)
The context in which the event is being executed.


OnBeforeEventArguments(step, processId, isSessionStarterObject, context)

Initializes a new instance of the OnBeforeEventArguments class with complete workflow execution information.

Parameters:

step (required): StepArguments
The arguments containing information about the current workflow step being executed.

processId (required): long
The unique identifier of the workflow process instance.

isSessionStarterObject (required): bool
Indicates whether this execution is for a session starter object.

context (required): #linkDocument(csharp-Bimser.Synergy.Entities.Shared.Business.Objects.Context)
The business context in which the workflow step is being executed.

This constructor initializes a new OnBeforeEventArguments instance with all necessary information for workflow execution. It sets up the step arguments, process identification, session status, and business context, providing a complete foundation for workflow event handling. The constructor ensures that all required information is available for derived classes to properly handle workflow execution events.