Message |
[+]
Engagement Designer
» Dynamic Task with HTTP POST missing dependencies, 29/09/2016 19:48:26
» Go to message
|
|
I have created the scaffolding for a dynamic task with a single added input/output value and it seems to work fine when I install it in ED and test it in a workflow. But, when I try to add the following code below, it installs but I get workflow errors that seem to be pointing to ClassNotFound type errors in the EngagementDesigner.log. My guess is that I'm either using the wrong objects to do an HTTP POST with Breeze, or missing some dependencies. Does anyone have an example of some code to do an HTTP POST in Breeze with the necessary Maven dependencies? Here is what I have. Note that this builds with "mvn clean package" fine and the svar loads/installs in ED, but I get an error when I use it in a workflow. The EngagementDesigner logs (with this code) are saying ClassNotFoundException for org.apache.http.ssl.SSLContext.
Code in my execute method of HelloExecution.java with simple HTTP POST to a test url (Open to a more Breeze-friendly code sample):
CloseableHttpClient httpclient = HttpClients.createDefault();
HttpPost httpPost = new HttpPost("http://testurl.com");
CloseableHttpResponse response2 = httpclient.execute(httpPost);
response2.close();
imports added to top of HelloExecution.java:
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.HttpRequest;
dependencies added to my pom.xml:
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-configuration2</artifactId>
<version>2.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.2</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.1.1</version>
<scope>compile</scope>
</dependency>
Import-Package setting in pom.xml (I keep adding classes to this each time I get ClassNotFound in the log and it fixes the one I added and gets another one. With this code, it is griping about org.apache.http.ssl.SSLContext, but if I add that to the Import-Package I get "Failed to Deploy" when I try to install the svar. So I'm not sure what's going on:
<Import-Package>org.apache.http.util,org.apache.http.protocol,org.apache.http,org.apache.http.config,org.apache.http.client.methods,org.apache.http.impl.client.*,com.avaya.collaboration.util.logger,javax.persistence,org.json,com.avaya.app.entity,com.avaya.workflow.*,com.roobroo.*;!*</Import-Package>
|
|
[+]
Engagement Designer
» Dynamic Task problems, 29/09/2016 13:44:07
» Go to message
|
|
What seems to work for me when making changes to my dynamic task is to just close the ED window altogether, then go into Service Manager and uninstall, go take a nap, and then delete it. I don't ever mess with the service profile since that seems to remove itself when you delete it in Service Manager. Then I just click load and point to my new svar, install it, go on vacation, and then add it to a service profile. Sometimes I have to open ED a couple of times before my new drawer shows up, but that usually does it.
As for changing the name of the service, my guess is that when you create the scaffolding it uses the service name you give it in a bunch of places, so it may be easiest to just recreate the scaffolding and then copy over your changes.
Good luck!
|
|
[+]
Engagement Designer
» Make a POST to Collabratory JSON / HTTP / CURL / Engagement Designer, 19/04/2016 09:41:56
» Go to message
|
|
We just started with the Callobratory, and we are testing the Engagement Designer. I would like to send a Post in via JSON to a the module that I am creating on Engagement designer.
I do not know what URL to post to in the Callabratory. I have full access to the Callabratory, but do not know which system / URL to post to.
Does anyone have an example, and know which UrL I need to post too?
Here is the Event that I have created. I want to post to the event, and data fill each sting with the correct data.
{"title":"GetInfo","type":"object","properties":{"accountId":{"type":"string"},"accountToken":{"type":"string"},"audioURL":{"type":"string"},"callbackURL":{"type":"string"},"externalID":{"type":"string"},"Language":{"type":"string"}}}
|
|
[+]
Avaya ACE Custom Application Development (Archive - Oct 2013 and earlier)
» ACE 2.3 SDK, 03/01/2011 13:18:32
» Go to message
|
|
Thank you for the support. We will look into remote time for the Lab. At the same time following the Planning and installation guide for ACE, and building our own ACE lab as well.
|
|
[+]
Avaya ACE Custom Application Development (Archive - Oct 2013 and earlier)
» ACE 2.3 SDK, 03/01/2011 13:01:56
» Go to message
|
|
File unzipped and all contents are available to me. However, could you answer and confirm. As a Developer for Agile, Do we need to purchase ACE 2.3 Base software in order to use the SDK? Or are we able to use the SDK, and use the remote ACE Lab.
|
|
[+]
Avaya ACE Custom Application Development (Archive - Oct 2013 and earlier)
» ACE 2.3 SDK, 03/01/2011 10:45:17
» Go to message
|
|
I think I now understand what my issue is. if I understand, I need to purchase the ACE Linux or Windows software to build the ACE Server. Please confirm, are the below part numbers the ones that I need to purchase, or do we as Platinum developers need to acquire this through a our DeveConnect Program
NTBT74BA Linux Base ACE Software
NTBT74AA Windows Base ACE Software
NTBT55RA Integration Engine
NTBT55OA Desktop enablement for Linux (per user)
if I need more parts or less, please let me know
|
|
[+]
Avaya ACE Custom Application Development (Archive - Oct 2013 and earlier)
» ACE 2.3 SDK, 03/01/2011 09:21:52
» Go to message
|
|
Forgive me for perhaps my mis understanding. I do not see where I am to acquire ACE 2.3 other then the DevConnect area.
Do we as a platinum Developer need to purchase ACE 2.3??
When you speak of ACE 2.3, are you speaking of a Server, or another piece of software?
|
|
[+]
Avaya ACE Custom Application Development (Archive - Oct 2013 and earlier)
» ACE 2.3 SDK, 30/12/2010 02:11:38
» Go to message
|
|
Is there a estimated time of when this will be fixed?
|
|
[+]
Avaya ACE Custom Application Development (Archive - Oct 2013 and earlier)
» ACE 2.3 SDK, 27/12/2010 21:30:19
» Go to message
|
|
I downloaded the ACE Foundation 2.3 SDK. The Zip file downloads, but as soon as you try and unzip the file it fails. I get an
"error 1 - Operation not permitted" I have tried different unzip tools, as well as tried on Vista, Windows 7 and Mac Snow Leopard.
Nothing works. We really need to gain access to this SKD to begin working with ACE.
|
|