Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. # -----------------------------------------------------------------------
  2. # [y] hybris Platform
  3. #
  4. # Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
  5. #
  6. # This software is the confidential and proprietary information of SAP
  7. # ("Confidential Information"). You shall not disclose such Confidential
  8. # Information and shall use it only in accordance with the terms of the
  9. # license agreement you entered into with SAP.
  10. # -----------------------------------------------------------------------
  11. $storeUid=nsagro
  12. $defaultCurrency=CLP
  13. $defaultLanguage=es
  14. $googleHost=setthethirdpartyhost
  15. $googleUserName=setgoogleusername
  16. $googlePassword=setgooglepassword
  17.  
  18.  
  19. INSERT ExportDataCronJob;code[unique=true];job(code);baseStore(uid);cmsSite(uid);language(isocode);currency(isocode);user(uid);thirdPartyHost;thirdPartyUsername;thirdPartyPassword;dataGenerationPipeline;sessionLanguage(isocode)
  20. "#% beforeEach:
  21. import de.hybris.platform.core.Registry;
  22. import de.hybris.platform.acceleratorservices.model.export.ExportDataCronJobModel;
  23. String cronJobCode = line.get(Integer.valueOf(1));
  24. ExportDataCronJobModel exportDataCronJob;
  25. try
  26. {
  27. exportDataCronJob = Registry.getApplicationContext().getBean(""cronJobService"").getCronJob(cronJobCode);
  28. }
  29. catch (Exception e)
  30. {
  31. exportDataCronJob = null;
  32. }
  33. if (exportDataCronJob != null)
  34. {
  35. line.clear();
  36. }"
  37. ;googleLocationsPowertools;exportDataJobPerformable;$storeUid;$storeUid;$defaultLanguage;$defaultCurrency;anonymous;$googleHost;$googleUserName;$googlePassword;exportGooglePosPipeline;$defaultLanguage
  38. ;googleProductsPowertools;exportDataJobPerformable;$storeUid;$storeUid;$defaultLanguage;$defaultCurrency;anonymous;$googleHost;$googleUserName;$googlePassword;exportGoogleProductPipeline;$defaultLanguage
  39.  
  40. INSERT CronJob;code[unique=true];job(code);baseStore(uid);cmsSite(uid);sessionLanguage(isocode);sessionCurrency(isocode);sessionUser(uid);
  41. "#% beforeEach:
  42. import de.hybris.platform.core.Registry;
  43. import de.hybris.platform.cronjob.model.CronJobModel;
  44. String cronJobCode = line.get(Integer.valueOf(1));
  45. CronJobModel cronJob;
  46. try
  47. {
  48. cronJob = Registry.getApplicationContext().getBean(""cronJobService"").getCronJob(cronJobCode);
  49. }
  50. catch (Exception e)
  51. {
  52. cronJob = null;
  53. }
  54. if (cronJob != null)
  55. {
  56. line.clear();
  57. }"
  58. ;uploadExportsPowertools;uploadDataJobPerformable;$siteUid;$siteUid;$defaultLanguage;$defaultCurrency;anonymous;
  59. ;quoteToExpireSoonJob;quoteToExpireSoonJobPerformable;;;en;;
  60. ;quoteExpiredJob;quoteExpiredJobPerformable;;;en;;
  61.  
  62. INSERT_UPDATE Trigger;active;second;minute;hour;day;month;year;cronExpression;cronJob(code)[unique=true];relative
  63. ;true;0;0;0;0;0;0;0 0 6/12 * * ?;quoteToExpireSoonJob;true
  64. ;true;0;0;0;0;0;0;0 0 0 * * ? *;quoteExpiredJob;true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement