How to use script task?

180 views
Skip to first unread message

Tina

unread,
Oct 10, 2014, 5:01:03 PM10/10/14
to camunda-...@googlegroups.com
Hi all, 
I am having problem deploying a process with a script task in it.

process2,bpm has a script task, resource referenced as "script.groovy".

And I tried the following, which is wrong because:
 @Test
    @Deployment(resources = {"process1.bpmn", "process2.bpmn"})


org.camunda.bpm.engine.ProcessEngineException: Unable to load script file from resource script.groovy | process2.bpmn | line 39 | column 167
ScriptTask does not provide script | process2.bpmn | line 39 | column 167

And the following is also wrong: 
 @Test
    @Deployment(resources = {"process1.bpmn", "process2.bpmn", "script.groovy"})

which simply gives:
org.camunda.bpm.engine.exception.NullValueException: resource 'script.groovy' not found: inputStream is null


What am I supposed to do with the script file??????

Cheers, Tina


Martin Schimak

unread,
Oct 11, 2014, 6:31:55 AM10/11/14
to camunda-...@googlegroups.com
Hi Tina,

Seems you have a similar problem like Hans. You must make sure that the script.groovy (source!) file is on the class path. Depending on your setup specifics, it can easily happen that just the compiled .class file ends up on the class path visible to your test run.

Cheers,
Martin.
--
You received this message because you are subscribed to the Google Groups "camunda BPM users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camunda-bpm-us...@googlegroups.com.
To post to this group, send email to camunda-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/camunda-bpm-users/9027a2ab-6b6b-4e5c-b230-6a4d80f65d61%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages