05-02-2017 11:21 PM
Dear Team,
I want to create the custom element in CVP call studio but unable to find any useful link or video. Please share if anyone has useful links or video.
Thank you,
Touqeer
05-09-2017 05:15 PM
What kind of element you want to create?
05-09-2017 10:25 PM
Hi Vincent,
I want to create an element to play an array of audio files.
09-10-2018 07:31 AM - edited 09-10-2018 07:39 AM
Hi Tauqeer,
You can create a custom action element by implementing ElementInterface. Here are the steps.
Here is a simple code snippet. I have tried it is working fine.
public class WebServiceAction extends ActionElementBase implements ElementInterface { @Override public String getElementName() { return this.getClass().getSimpleName(); } @Override public String getDisplayFolderName() { return this.getClass().getPackage().getName(); } @Override public String getDescription() { return "This element does nothing :) ."; } @Override public void doAction(String arg0, ActionElementData arg1) throws Exception { // write you logic here } }
Once you are done with your business logic. Follow these steps to see the element in the call studio.
Remember: You will not be able to see your element until you double click on your app.callflow file. Also, the element would not come up if you forget to implement a right interface or did not override the required methods.
Cheers!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide