This sample script demonstrates how to create a new domain object.
Syntax
bpmAppService.BPMSServices.DomainObjectService.CreateDomainObject<T>()
Applicability
This functionality is available anywhere users can write C# code.
Code Sample
var a = bpmAppService.BPMSServices.DomainObjectService.CreateDomainObject<Ray.BPMApp.ACAN.Model.BPMAPP_ACAN_ProductionPermitAuthorization>();
a.UserAuthorizer = bpmAppService.BPMSServices.MercuryService.CurrentUser;
a.Date = DateTime.Now;
a.IsDeleted = false;
bpmAppService.BPMSServices.DomainObjectService.SaveDomainObject(a);
bpmAppService.UnitOfWork.CommitTransaction();