CRS Editor "Java Steps"

Unanswered Question
Mar 20th, 2007
User Badges:

Hello,


i can not find the "create Java Object" Step in my CRS Editor. There is only the "Create Remote java Object" step. Do i need a special editor version?


with kind Regards


i.A. Martin

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
Gergely Szabo Tue, 03/20/2007 - 13:16
User Badges:
  • Green, 3000 points or more
  • Community Spotlight Award,

    Member's Choice, December 2015

You've got the correct editor version - there is only one, actually.


There is a lot of Java stuff you can do directly, for instance, when setting a variable.


I know this seems to be stupid but I have to ask: what exactly are you trying to achieve (with the Java stuff you are missing)?

joerg.loeschmann Wed, 03/21/2007 - 00:12
User Badges:

I would like to export and import variables with java, like account and pin verification.

p0ptart69 Tue, 03/20/2007 - 15:06
User Badges:

If you are just switching form CRS 3.x to 4.x you may notice the Execute Java Step is gone from the toolbox. You only really need it if you are trying to execure a java method that returns void ( doesn't return a value ) This is common with "setter" methods like clock.setTime( "12:00:00" ). It is a pain that it was removed but if you have a couple of alternatives.

First if your java method returns a value use the Set step so to call a method like String.valueOf( clock.getSeconds() ). You can get as trick as you want withe inline syntax now which you couldn't before.

The second is to open an old script that has a Execute Java Object step in it and copy and past the step from the old script into your new one. The step still exists for backward compatability but you can't add it to new scripts from the toolbox. It was another ill thought out feature change between versions



joerg.loeschmann Wed, 03/21/2007 - 00:17
User Badges:

Tahnk you for the infos. I will have a look at the Set step.

Regards

Martin

JennyIVRE Wed, 04/04/2007 - 03:45
User Badges:

how to define a class that extends some superclass through set step?

Actions

This Discussion