protected void PopulateTransaction(Transaction transaction, ISMAuditTrail trail) { transaction.TransactionNumber = trail.Id.ToString(); transaction.TransactionRouting = trail.Routing; transaction.TransactionType = trail.Type; transaction.TransactionName = trail.Name; transaction.TransactionDateTime = trail.BeginTime; transaction.DataSource = "ServiceIT"; }
public override void BeforeUpdate(MaximoOperationExecutionContext maximoTemplateData) { base.BeforeUpdate(maximoTemplateData); var trail = DAO.Save(ISMAuditTrail.GetInstance(ISMAuditTrail.TrailType.Update, maximoTemplateData.ApplicationMetadata)); var ob = maximoTemplateData.IntegrationObject; var transaction = ReflectionUtil.GetProperty(ob, "Transaction") as Transaction; if (transaction == null) { transaction = new Transaction(); ReflectionUtil.SetProperty(ob, "Transaction", transaction); } PopulateTransaction(transaction, trail); }