public override void BeforeUpdate(MaximoOperationExecutionContext maximoTemplateData) { base.BeforeUpdate(maximoTemplateData); var entity = (CrudOperationData)maximoTemplateData.OperationData; var maximoTicket = (ChangeRequest)maximoTemplateData.IntegrationObject; var operationData = (CrudOperationData)maximoTemplateData.OperationData; HapagChangeHandler.FillDefaultValuesUpadteChange(maximoTicket); maximoTicket.RequesterID = (string)entity.GetAttribute("wonum"); maximoTicket.ProviderID = string.Empty; var description = (String)operationData.GetAttribute("description"); Log.Debug("Current description of change request is: " + description); maximoTicket.Change.Description = description; maximoTicket.Change.CustomerID = entity.GetAttribute("pluspcustomer") as string; HandleWorkLog(entity, maximoTicket); HandleDescription(operationData, description, maximoTicket); Log.Debug("Now the description will be: " + maximoTicket.Change.Description); var integrationObject = maximoTemplateData.IntegrationObject; ISMAttachmentHandler.HandleAttachmentsForUpdate((CrudOperationData)maximoTemplateData.OperationData, (ChangeRequest)integrationObject); }
public override void BeforeUpdate(MaximoOperationExecutionContext maximoTemplateData) { base.BeforeUpdate(maximoTemplateData); var integrationObject = maximoTemplateData.IntegrationObject; ISMAttachmentHandler.HandleAttachmentsForUpdate((CrudOperationData)maximoTemplateData.OperationData, (ServiceIncident)integrationObject); }
public override void BeforeCreation(MaximoOperationExecutionContext maximoTemplateData) { base.BeforeCreation(maximoTemplateData); var jsonObject = (CrudOperationData)maximoTemplateData.OperationData; var webServiceObject = (ServiceIncident)maximoTemplateData.IntegrationObject; PopulateAssets(jsonObject, webServiceObject); ISMAttachmentHandler.HandleAttachmentsForCreation(jsonObject, webServiceObject); }
public override void BeforeUpdate(MaximoOperationExecutionContext maximoTemplateData) { base.BeforeUpdate(maximoTemplateData); var jsonObject = (CrudOperationData)maximoTemplateData.OperationData; var webServiceObject = (ServiceIncident)maximoTemplateData.IntegrationObject; HandleStatus(jsonObject, webServiceObject); ISMAttachmentHandler.HandleAttachmentsForUpdate((CrudOperationData)maximoTemplateData.OperationData, webServiceObject); }
public override void BeforeUpdate(MaximoOperationExecutionContext maximoTemplateData) { base.BeforeUpdate(maximoTemplateData); var jsonObject = (CrudOperationData)maximoTemplateData.OperationData; var webServiceObject = (ServiceIncident)maximoTemplateData.IntegrationObject; var classificationId = jsonObject.GetAttribute("classificationid") as string; ISMAttachmentHandler.HandleAttachmentsForUpdate(jsonObject, webServiceObject); webServiceObject.Problem.System = classificationId; }
public override void BeforeCreation(MaximoOperationExecutionContext maximoTemplateData) { base.BeforeCreation(maximoTemplateData); var jsonObject = (CrudOperationData)maximoTemplateData.OperationData; var webServiceObject = (ServiceIncident)maximoTemplateData.IntegrationObject; PopulateAssets(jsonObject, webServiceObject, maximoTemplateData.ApplicationMetadata.Schema.SchemaId); SetClassification(jsonObject, webServiceObject, maximoTemplateData.ApplicationMetadata.Schema.SchemaId); HandleBusinessMatrix(webServiceObject, jsonObject, maximoTemplateData.ApplicationMetadata.Schema.SchemaId); ISMAttachmentHandler.HandleAttachmentsForCreation(jsonObject, webServiceObject); var schemaId = maximoTemplateData.OperationData.ApplicationMetadata.Schema.SchemaId; }