cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
346
Views
0
Helpful
7
Replies
Beginner

Finesse Gadget Development - Startup

I am building Finesse Gadget and able to deploy and test the Gadget in Finesse. If anyone can answer this it will address one of my big challenges,

How can I validate the javascript File before porting it to the Finesse server? This will reduce me to stop the Tomcat service, login to finesse and verify the Gadget. 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Enthusiast

Re: Finesse Gadget Development - Startup

Yes, I think this is what you're asking about. It does autocomplete based on your definitions.

autocomplete.png

 

 

 

 

 

For verification, I'd write some unit tests myself. It won't do that work for you!

Enthusiast

Re: Finesse Gadget Development - Startup

It's plain javascript dev. As long as your files are in the right place then the IDE will pick them up. No projects to import or any extra setup steps needed.

 

Try it!

7 REPLIES 7
Enthusiast

Re: Finesse Gadget Development - Startup

The best javascript IDE I've found is Visual Studio Code. It won't help validate any of the Finesse-specific issues you may see. But it is able to do test cases and deep syntax checking, with things like auto-complete and highlighting. What development environment have you been using?

 

In my experience you don't need to stop Tomcat just to deploy new gadget code. Just refresh the finesse page with the nocache parameter and it loads everything almost instantly.

Beginner

Re: Finesse Gadget Development - Startup

Thanks for the response.

Using Visual Studio Code, were you able to add the Finesse Java Script API ? So that when you code the java script, you are get the auto-complete option ?

where you verify the Gadget java script file for any error before deploying in the Finesse.

Everyone's tags (1)
Enthusiast

Re: Finesse Gadget Development - Startup

Yes, I think this is what you're asking about. It does autocomplete based on your definitions.

autocomplete.png

 

 

 

 

 

For verification, I'd write some unit tests myself. It won't do that work for you!

Highlighted
Beginner

Re: Finesse Gadget Development - Startup

How did you added the Java Script API to the visual studio source code app for you to do auto populate ?  I am not sure if Cisco have exposed any jar file or any files to add to any editor for auto fill / populate. 

Curious to know. Always appreciate your response.

Enthusiast

Re: Finesse Gadget Development - Startup

It's plain javascript dev. As long as your files are in the right place then the IDE will pick them up. No projects to import or any extra setup steps needed.

 

Try it!

Cisco Employee

Re: Finesse Gadget Development - Startup

Hi,

 


@Quigath wrote:

 

In my experience you don't need to stop Tomcat just to deploy new gadget code. Just refresh the finesse page with the nocache parameter and it loads everything almost instantly.


I would like to confirm that thats correct where you can just use the nocache (https://developer.cisco.com/docs/finesse/#gadget-caching) option to avoid restarting tomcat. There isn't any other way to test out the gadget without loading it on the server.

 

Thanx,

Denise

Enthusiast

Re: Finesse Gadget Development - Startup

Yes.

Not sure what the official/technical gadget deployment process should be, I'm just going with what works.

For reference, I have a dev lab for 11.6, with gadget files being hosted on an external Jetty server.

When I deploy a new gadget xml javascript or css file, I copy the files to my server, then If I wait for about a minute it usually picks up the new files but you can never be sure when. Then I discovered the nocache param and all my files load instantly on page refresh. I don't have to restart any services or even log my agent out. This works better on Chrome and unreliably on Firefox.

I saved the agent desktop link as a bookmark and hit it just after copying over the new code. https://[finesse]/desktop/container/?nocache

CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards