12-18-2017 05:04 AM
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.
12-19-2017 09:37 AM
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
Explore our Alfresco products with the links below. Use labels to filter content by product module.