Don't script tasks with print command work?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2013 07:07 PM
I'm starting to use Activiti for my degree thesis.
I've created a symple Hello world! example of process like the one explained at pag. 37 of the book "Activiti in Action", with only a start and an end event and in the middle a script task where I've inserted the following Groovy code:
I've designed it in Eclipse and then I've deployed and run it in Activiti Explorer, but, when I do this, after the message "Process myProcess has been started" nothing more happens. Is it normal? Shouldn't it show to me the message I've written in the command on the screen?
I've tried also to use the code
[img=750x68]http://i.imgur.com/6hCk0bv.png[/img]
I've created a symple Hello world! example of process like the one explained at pag. 37 of the book "Activiti in Action", with only a start and an end event and in the middle a script task where I've inserted the following Groovy code:
out:println "MESSAGE";
.I've designed it in Eclipse and then I've deployed and run it in Activiti Explorer, but, when I do this, after the message "Process myProcess has been started" nothing more happens. Is it normal? Shouldn't it show to me the message I've written in the command on the screen?
I've tried also to use the code
System.out.println("MESSAGE");
instead, but anything change. I've also tried to use Javascript instead of Groovy, but then I see the following warning message when I run the process.[img=750x68]http://i.imgur.com/6hCk0bv.png[/img]
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2013 06:47 PM
I've solved myself the problem printing the message I wanted to be shown in a file.
This simply with the command: <code>new File('/path/name_of_the_file.txt') << "text of my message"</code> and then I have a text file with the message printed into it.
Because I don't find a console where the messages were printed into, I think this is better than nothing…
This simply with the command: <code>new File('/path/name_of_the_file.txt') << "text of my message"</code> and then I have a text file with the message printed into it.
Because I don't find a console where the messages were printed into, I think this is better than nothing…
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2014 05:40 AM
you can also try this:
java.lang.System.out.println("HELLO")
java.lang.System.out.println("HELLO")
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2014 04:48 AM
or even simple print("sssl") in newer versions.
