Want to open a file using script task in Activiti 6

cancel
Showing results for 
Search instead for 
Did you mean: 
rjazmin
Member II

Want to open a file using script task in Activiti 6

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.

1 Reply
cjose
Senior Member II

Re: Want to open a file using script task in Activiti 6

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