Submit confiforms form with ScriptRunner

How can I write a groovy script with script runner to submit a confiforms form and add a record to it?

I used auto-enroll feature of confiforms and excute its url with scriptrunner but nothing happened.
Thanks