From Pega 8.3 Pega is restricting to use java objects and functions related to runtime. Without runtime or process builder classes access do we have any alternative to run shell scripts on server? Like a file transfer script after the file is generated by pega and placed on server file location?
***Edited by Moderator: Pooja Gadige to move from Pega Academy to Product, change content format from Discussion to Question***
@PradeepRamgiri Hi, we have only those options and moreover this is not recommeded to execute shell scripts from Pega. May be worth exploring File Listeners or cron jobs within shell itself to move the files to other location.
Posted: 1 year ago
Posted: 13 Sep 2022 12:35 EDT
pradeep kumar ramgiri (PradeepRamgiri)
@KOMARINA I understand the cron job schedule but we have earlier faced issues in the schedule and adhoc runs during the to deployment window. That is the reason we want to trigger file transfer from pega whenever the file gets generated.
@PradeepRamgiri File listener will not work as we can either Keep/Delete, it cannot be moved, best bet is cron jobs. You can write shell scripts in Pega using runtime or process builder but they show as security vulnerability in your Security/Penetration Testing.
@KOMARINA Thank you for your inputs but that is what my initial question, Without process builder and runtime objects is there any alternative to execute shell scripts from Pega as after 8.3 you cannot create rules with java step to get these objects?
@PradeepRamgiri We can still use Process Builder and runtime but it has to be done in version prior to 8.3 and import that rule to current version of your platform, then change the DSS java injection check, other than that there is no other way from Pega as far as i aware of. I will let you know if i find any alternatives.