Hi,
I never used the SDK Genesys, and implement the method below to get just the status of an outbound campaign. But do not know where to turn to solve this problem, I am getting the following error:
I am using the 7.6 version of PSDK
Could someone help me

[quote]
'EventError' (27) attributes:
CM_AttrCampaignID [int] = 181
CM_AttrGroupID [int] = 182
CM_AttrError [int] = 8
CM_AttrReferenceID [int] = 2
[/quote]
[code]public class Test {
ProtocolManagementServiceImpl protocolManagementServiceImpl;
OutboundServerConfiguration outBoundServerConfiguration;
Message response;
public Test(){
protocolManagementServiceImpl = new ProtocolManagementServiceImpl();
}
public static void main(String[] args) {
Test m = new Test();
m.testStatusCampaign();
}
private void testStatusCampaign(){
outBoundServerConfiguration = new OutboundServerConfiguration("AppGetStatusCampaign");
try {
outBoundServerConfiguration.setUri(new URI("tcp://10.172.1.108:7000"));
} catch (URISyntaxException ex) {
Logger.getLogger(Test.class.getName()).log(Level.SEVERE, null, ex);
}
protocolManagementServiceImpl.register(outBoundServerConfiguration);
try {
protocolManagementServiceImpl.getProtocol("AppGetStatusCampaign").open();
} catch (RegistrationException ex) {
Logger.getLogger(Test.class.getName()).log(Level.SEVERE, null, ex);
} catch (ProtocolException ex) {
Logger.getLogger(Test.class.getName()).log(Level.SEVERE, null, ex);
} catch (IllegalStateException ex) {
Logger.getLogger(Test.class.getName()).log(Level.SEVERE, null, ex);
} catch (InterruptedException ex) {
Logger.getLogger(Test.class.getName()).log(Level.SEVERE, null, ex);
}
RequestRegisterCampaign requestRegisterCampaign = RequestRegisterCampaign.create();
//DBID CAMPAIGN = 181
requestRegisterCampaign.setCampaignId(181);
//DBID AGENTGROUP = 182
requestRegisterCampaign.setGroupId(182);
try {
response = protocolManagementServiceImpl.getProtocol("AppGetStatusCampaign").request(requestRegisterCampaign);
} catch (ProtocolException ex) {
Logger.getLogger(Test.class.getName()).log(Level.SEVERE, null, ex);
} catch (IllegalStateException ex) {
Logger.getLogger(Test.class.getName()).log(Level.SEVERE, null, ex);
}
RequestGetCampaignStatus requestGetCampaignStatus = RequestGetCampaignStatus.create();
//DBID CAMPAIGN = 181
requestGetCampaignStatus.setCampaignId(181);
//DBID AGENTGROUP = 182
requestGetCampaignStatus.setGroupId(182);
try {
response = protocolManagementServiceImpl.getProtocol("AppGetStatusCampaign").request(requestGetCampaignStatus);
System.out.println(response.toString());
} catch (ProtocolException ex) {
Logger.getLogger(Test.class.getName()).log(Level.SEVERE, null, ex);
} catch (IllegalStateException ex) {
Logger.getLogger(Test.class.getName()).log(Level.SEVERE, null, ex);
}
try {
protocolManagementServiceImpl.getProtocol("AppGetStatusCampaign").close();
} catch (ProtocolException ex) {
Logger.getLogger(Test.class.getName()).log(Level.SEVERE, null, ex);
} catch (IllegalStateException ex) {
Logger.getLogger(Test.class.getName()).log(Level.SEVERE, null, ex);
} catch (InterruptedException ex) {
Logger.getLogger(Test.class.getName()).log(Level.SEVERE, null, ex);
}
}
}
[/code]