This sample script demonstrates how to raise an event in system state.

Syntax

bpmAppService.BPMSServices.ProcessService.RaiseEvent(BaseEvent baseEvent, DomainObjectBase domainObject)
bpmAppService.BPMSServices.ProcessService.RaiseEvent(BaseEvent baseEvent, DomainObjectBase domainObject, User user)

Applicability

This functionality is only available within the system state rule.

Code Sample

bpmAppService.BPMSServices.ProcessService.RaiseEvent(Ray.BPMApp.ACAN.Events.BPMAPP_ACAN_ProductionPermit.ListenEvents.AEAFromMOCReview, domainObject, domainObject.UserReviewer);

Automatic Router:

if (condition)
 bpmAppService.BPMSServices.ProcessService.RaiseEvent(Ray.BPMApp.ACAN.Events.BPMAPP_ACAN_ProductionPermit.ListenEvents.AEAToMOCReview, domainObject);
else bpmAppService.BPMSServices.ProcessService.RaiseEvent(Ray.BPMApp.ACAN.Events.BPMAPP_ACAN_ProductionPermit.ListenEvents.Submit2, domainObject);