Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

CRS Editor "Java Steps"

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

5 REPLIES

Re: CRS Editor "Java Steps"

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)?

Community Member

Re: CRS Editor "Java Steps"

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

Community Member

Re: CRS Editor "Java Steps"

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

Community Member

Re: CRS Editor "Java Steps"

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

Regards

Martin

Community Member

Re: CRS Editor "Java Steps"

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

554
Views
10
Helpful
5
Replies
CreatePlease to create content