I am setting up a script task in Activiti 6 that will simply open a local file. I have gone through the documentation and other post and didn't see what I was looking for.
I set up my script task accordingly and in the script field I enter this down:
function myFunction() {
window.open('"https://www.w3schools.com"');
}
I even once tried using only the script : window.open('"https://www.w3schools.com"');
I keep on getting errors when I try to test. Can anyone direct me to an example that can better help me resolve this matter. Can anyone advise me what I am doing wrong. Thank you.
Please check the script task documentation for more details. Could you please provide the use case you trying to solve using Activiti's script task? If you are trying to do some web/UI related tasks, I am afraid that it is not what this task is for! This is basically a way of allowing developers to write server side logic using one of the JSR 223 scripting languages. For more details check Scripting for the Java Platform - Wikipedia & The Java Community Process(SM) Program - JSRs: Java Specification Requests - detail JSR# 223
Regards,
Ciju
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.