Nintex artifacts feature adapter
 private void RegisterContextDataItems(SPFeatureReceiverProperties properties)
 {
     var workflowAdapter = new NWFAdapter(properties);
     var ctxItemsMappings = workflowAdapter.RetrieveContextDataMappings("ContextItemsMappings.xml");
     foreach (var mapping in ctxItemsMappings)
     {
         try
         {
             CustomCommonDataCollection.Add(mapping.TypeName, mapping.AssemblyName, mapping.DisplayName, mapping.Description, string.Empty);
         }
         catch (Exception ex)
         {
             NWLoggingService.WriteError(ex);
         }
     }
 }
 private void DeployWorkflows(SPFeatureReceiverProperties properties)
 {
     var workflowAdapter = new NWFAdapter(properties);
     //Workflows
     var workflowMappings = workflowAdapter.RetrieveWorkflowMappings("NWMappings.xml");
     foreach (var nwMappingEntry in workflowMappings)
     {
         try
         {
             workflowAdapter.PublishReusableWorkflow(nwMappingEntry);
             WorkflowUtilities.BindWorkflow((SPWeb)properties.Feature.Parent, nwMappingEntry.BindingName, nwMappingEntry.WorkflowName);
         }
         catch (Exception ex)
         {
             NWLoggingService.WriteError(ex);
         }
     }
 }