Interface ICampaign
- All Superinterfaces:
IDisposable, IEntity
Represents a campaign.
-
Method Summary
Modifier and TypeMethodDescriptionvoidRegisters the CampaignMessageOfTheDayChangedListener.voidRegisters the SaveActivityErrorListener.intcreateNewContact(Attribute[] attributes, String timeZone, String reschedulePhone, int directoryId, int contactProfileId) Creates a new contact.intcreateNewContact(Attribute[] attributes, String timeZone, String reschedulePhone, int directoryId, int contactProfileId, String contactListName) Creates a new contact.intcreateNewContact(Attribute[] attributes, String timeZone, String reschedulePhone, String reschedulePhoneScheduleRule, int directoryId, int contactProfileId, String contactListName) Creates a new contact.intcreateNewContact(Attribute[] attributes, String timeZone, String reschedulePhone, String reschedulePhoneScheduleRule, int directoryId, int contactProfileId, String contactListName, String serviceAniListName) Creates a new contact.voiddisableContact(int contactId) Disables an existing contact.getAgentInCampaignInfoById(int agentId) Gets information about the specified campaign.getAgentInCampaignInfoByName(String agentName) Gets information about the agent working in the specified campaign.getAgentInCampaignMediaInfoById(int mediaId, int agentId) Gets media information about the agent working in the specified campaign.getAgentInCampaignMediaInfoByName(int mediaId, String agentName) Gets media information about the agent working in the specified campaign.Allowed operations for the campaign.String[]Gets the names of the agents assigned to this campaign.Campaign attributes.Gets the formatted campaign attributes.getContactByContactProfileId(int directoryId, int contactProfileId, boolean fetchContactProfileAttributes) Gets the contact.getContactByContactProfileId(int directoryId, int contactProfileId, boolean fetchContactProfileAttributes, PurposeFilter purposeFilter) Gets the contact.getContactById(int contactId, boolean fetchContactProfileAttributes) Gets the contact.getContactById(int contactId, boolean fetchContactProfileAttributes, PurposeFilter purposeFilter) Gets the contact.intgetContactCount(int directoryId, String sql) Gets the count of the contact.getContactCursor(int cursorId) Gets a contact cursor open in the campaign.Gets the contact cursors open in the campaign.String[]Gets the names of the contact lists.intgetContactProfileInProgressWorkflowCount(int directoryId, int contactProfileId, String sql) Gets the count of the contact profile in progress workflow process task.Gets the table schema of the contact profile in progress workflow.intgetContactProfileInteractionHistoryCount(int directoryId, int contactProfileId, String sql) Gets the count of the contact profile interaction history, without the outcomes of each interaction.intgetContactProfileInteractionHistoryCount(int directoryId, int contactProfileId, String sql, boolean countOutcomes) Gets the count of the contact profile interaction history.Gets the table schema of the contact profile interaction history.getContactTableSchema(int directoryId) Gets the table schema of the contact.Gets the campaign default purpose.Gets the directories assigned to the campaign.String[]Gets the email addresses used to send email.intgetId()Identifier of the campaign.getInfo()Gets information about the campaign.Instance associated to the campaign.intgetInteractionThreadCount(int contactId, String sql) Gets the count of the interaction thread.Gets the campaign media configuration.Message of the day of the campaign.getName()Name of the campaign.intgetPendingWorkCount(String agentName, String sql, boolean onlyActivitiesWithAgent) Gets the count of the pending work.Gets the table schema of the pending work.intgetQueuedAgentPickUpTaskCount(String sql, boolean onlyPickable) Gets the count of the queued agent pick up task.Gets the queuedchema of the agent pick up task.intgetQueuedEmailCount(String sql, boolean onlyPickable) Gets the count of the queued email.Gets the table schema of the queued email.intgetQueuedSocialCount(String sql, boolean onlyPickable) Gets the count of the queued social.Gets the table schema of the queued social.booleanIftrue, all calls of the agents will be recorded.booleanIftrue, all screens of the agents will be recorded.intgetSentEmailCount(String sql) Gets the count of the sent email.Gets the table schema of the sent email.intgetSentSocialCount(String sql) Gets the count of the sent social.Gets the table schema of the sent social.Service of the campaign.getSkillProfileInfo(String skillProfileName) Gets media information about agents working with a skill profile.getSkillProfileInfoByMediaId(String skillProfileName, int mediaId) Gets media information about agents working with a skill profile.getSkillProfileInfoByMediaName(String skillProfileName, String mediaName) Gets media information about agents working with a skill profile.getState()State of the campaign.getType()Type of campaignGets information about the agents working in this campaign.getWorkingAgentsMedia(int mediaId) Gets media information about the agents working in this campaign.booleanisInDoNotCallList(String number, String uniqueId) Checks if a number is in the campaign service do not call list, or in the global do not call lists.newContactCursor(int directoryId, String[] columns, String sql) Opens a contact cursor.newContactCursor(int directoryId, String[] columns, String sql, PurposeFilter purposeFilter) Opens a contact cursor.newContactProfileInProgressWorkflowCursor(int directoryId, int contactProfileId, String[] columns, String sql) Opens a contact profile in progress workflow process task cursor.newContactProfileInteractionHistoryCursor(int directoryId, int contactProfileId, String[] columns, String sql, boolean fetchOutcomes) Opens a contact profile interaction history cursor.newInteractionThreadCursor(int contactId, String[] columns, String sql) Opens an interaction thread cursor.newPendingWorkCursor(String agentName, String[] columns, String sql, boolean onlyActivitiesWithAgent) Opens a pending work cursor.newPendingWorkCursor(String agentName, String[] columns, String sql, boolean onlyActivitiesWithAgent, PurposeFilter purposeFilter) Opens a pending work cursor.newQueuedAgentPickUpTaskCursor(String[] columns, String sql, boolean onlyPickable) Opens a queued agent pick up task cursor.newQueuedAgentPickUpTaskCursor(String[] columns, String sql, boolean onlyPickable, PurposeFilter purposeFilter) Opens a queued agent pick up task cursor.newQueuedEmailCursor(String[] columns, String sql, boolean onlyPickable) Opens a queued email cursor.newQueuedEmailCursor(String[] columns, String sql, boolean onlyPickable, PurposeFilter purposeFilter) Opens a queued email cursor.newQueuedSocialCursor(String[] columns, String sql, boolean onlyPickable, PurposeFilter purposeFilter) Opens a queued social cursor.newSentEmailCursor(String[] columns, String sql) Opens a sent email cursor.newSentEmailCursor(String[] columns, String sql, PurposeFilter purposeFilter) Opens a sent email cursor.newSentSocialCursor(String[] columns, String sql, PurposeFilter purposeFilter) Opens a sent social cursor.voidUnregisters the CampaignMessageOfTheDayChangedListener.voidUnregisters the SaveActivityErrorListener.voidrestartContact(int contactId) Restarts an existing contact.intscheduleContact(Attribute[] attributes, String timeZone, String reschedulePhone, String reschedulePhoneScheduleRule, Duration rescheduleTimeLimit, int directoryId, int contactProfileId, GregorianCalendar scheduleMoment, String agentName, int priority, String outboundRule, boolean usesDoNotCallList, String skillProfileName, SkillInProfile[] skills, String contactListName) Schedules a contact for a contact profile.intscheduleContact(Attribute[] attributes, String timeZone, String reschedulePhone, String reschedulePhoneScheduleRule, Duration rescheduleTimeLimit, int directoryId, int contactProfileId, GregorianCalendar scheduleMoment, String agentName, int priority, String outboundRule, boolean usesDoNotCallList, String skillProfileName, SkillInProfile[] skills, String contactListName, String serviceAniListName) Schedules a contact for a contact profile.intscheduleContact(Attribute[] attributes, String timeZone, String reschedulePhone, Duration rescheduleTimeLimit, int directoryId, int contactProfileId, GregorianCalendar scheduleMoment, String agentName, int priority, String outboundRule, boolean usesDoNotCallList, String skillProfileName, SkillInProfile[] skills) Schedules a contact for a contact profile.intscheduleContact(Attribute[] attributes, String timeZone, String reschedulePhone, Duration rescheduleTimeLimit, int directoryId, int contactProfileId, GregorianCalendar scheduleMoment, String agentName, int priority, String outboundRule, boolean usesDoNotCallList, String skillProfileName, SkillInProfile[] skills, String contactListName) Schedules a contact for a contact profile.Sends data to the agent.tryGetContactCursor(int cursorId) Gets a contact cursor open in the campaign or null if it doesn't exist.Methods inherited from interface IDisposable
addDisposedListener, removeDisposedListenerMethods inherited from interface IEntity
getUserContext, setUserContext
-
Method Details
-
addCampaignMessageOfTheDayChangedListener
Registers the CampaignMessageOfTheDayChangedListener.- Parameters:
listener- Event listener to add.
-
removeCampaignMessageOfTheDayChangedListener
Unregisters the CampaignMessageOfTheDayChangedListener.- Parameters:
listener- Event listener to remove.
-
addSaveActivityErrorListener
Registers the SaveActivityErrorListener.- Parameters:
listener- Event listener to add.
-
removeSaveActivityErrorListener
Unregisters the SaveActivityErrorListener.- Parameters:
listener- Event listener to remove.
-
createNewContact
int createNewContact(Attribute[] attributes, String timeZone, String reschedulePhone, int directoryId, int contactProfileId) throws Exception, altitude.integrationServer.exceptions.ISException Creates a new contact. The state of the contact will beCreated.- Parameters:
attributes- Attributes of the new contact.timeZone- Time zone of the contact.reschedulePhone- Phone to reschedule.directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.- Returns:
- Identifier of the new contact.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
createNewContact
int createNewContact(Attribute[] attributes, String timeZone, String reschedulePhone, int directoryId, int contactProfileId, String contactListName) throws Exception, altitude.integrationServer.exceptions.ISException Creates a new contact. The state of the contact will beCreated.- Parameters:
attributes- Attributes of the new contact.timeZone- Time zone of the contact.reschedulePhone- Phone to reschedule.directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.contactListName- Name of the contact list where the contact will be created.- Returns:
- Identifier of the new contact.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
createNewContact
int createNewContact(Attribute[] attributes, String timeZone, String reschedulePhone, String reschedulePhoneScheduleRule, int directoryId, int contactProfileId, String contactListName) throws Exception, altitude.integrationServer.exceptions.ISException Creates a new contact. The state of the contact will beCreated.- Parameters:
attributes- Attributes of the new contact.timeZone- Time zone of the contact.reschedulePhone- Phone to reschedule.reschedulePhoneScheduleRule- Reschedule phone schedule rule.directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.contactListName- Name of the contact list where the contact will be created.- Returns:
- Identifier of the new contact.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
createNewContact
int createNewContact(Attribute[] attributes, String timeZone, String reschedulePhone, String reschedulePhoneScheduleRule, int directoryId, int contactProfileId, String contactListName, String serviceAniListName) throws Exception, altitude.integrationServer.exceptions.ISException Creates a new contact. The state of the contact will beCreated.- Parameters:
attributes- Attributes of the new contact.timeZone- Time zone of the contact.reschedulePhone- Phone to reschedule.reschedulePhoneScheduleRule- Reschedule phone schedule rule.directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.contactListName- Name of the contact list where the contact will be created.serviceAniListName- Name of the service ANI list to use when dialing to the contact.- Returns:
- Identifier of the new contact.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
disableContact
-
getAgentInCampaignInfoById
AgentInCampaignInfo getAgentInCampaignInfoById(int agentId) throws Exception, altitude.integrationServer.exceptions.ISException Gets information about the specified campaign.- Parameters:
agentId- Identifier of the agent.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getAgentInCampaignInfoByName
AgentInCampaignInfo getAgentInCampaignInfoByName(String agentName) throws Exception, altitude.integrationServer.exceptions.ISException Gets information about the agent working in the specified campaign.- Parameters:
agentName- Name of the agent.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getAgentInCampaignMediaInfoById
AgentInCampaignMediaInfo getAgentInCampaignMediaInfoById(int mediaId, int agentId) throws Exception, altitude.integrationServer.exceptions.ISException Gets media information about the agent working in the specified campaign.- Parameters:
mediaId- Identifier of the media.agentId- Identifier of the agent.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getAgentInCampaignMediaInfoByName
AgentInCampaignMediaInfo getAgentInCampaignMediaInfoByName(int mediaId, String agentName) throws Exception, altitude.integrationServer.exceptions.ISException Gets media information about the agent working in the specified campaign.- Parameters:
mediaId- Identifier of the media.agentName- Name of the agent.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getAllowedOperations
CampaignCanDo getAllowedOperations() throws Exception, altitude.integrationServer.exceptions.ISExceptionAllowed operations for the campaign.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getAssignedAgentNames
-
getAttributes
-
getAttributesFormatted
-
getContactByContactProfileId
Contact getContactByContactProfileId(int directoryId, int contactProfileId, boolean fetchContactProfileAttributes) throws Exception, altitude.integrationServer.exceptions.ISException Gets the contact.- Parameters:
directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.fetchContactProfileAttributes- If true, fetch the contact profile attributes.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getContactByContactProfileId
Contact getContactByContactProfileId(int directoryId, int contactProfileId, boolean fetchContactProfileAttributes, PurposeFilter purposeFilter) throws Exception, altitude.integrationServer.exceptions.ISException Gets the contact.- Parameters:
directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.fetchContactProfileAttributes- If true, fetch the contact profile attributes.purposeFilter- Purpose filter.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getContactById
Contact getContactById(int contactId, boolean fetchContactProfileAttributes) throws Exception, altitude.integrationServer.exceptions.ISException Gets the contact.- Parameters:
contactId- Identifier of the contact.fetchContactProfileAttributes- If true, fetch the contact profile attributes.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getContactById
Contact getContactById(int contactId, boolean fetchContactProfileAttributes, PurposeFilter purposeFilter) throws Exception, altitude.integrationServer.exceptions.ISException Gets the contact.- Parameters:
contactId- Identifier of the contact.fetchContactProfileAttributes- If true, fetch the contact profile attributes.purposeFilter- Purpose filter.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getContactCount
-
getContactCursor
IContactCursor getContactCursor(int cursorId) throws Exception, altitude.integrationServer.exceptions.ISException Gets a contact cursor open in the campaign.- Parameters:
cursorId- Identifier of the cursor.- Returns:
- The
IContactCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getContactCursors
IContactCursor[] getContactCursors() throws Exception, altitude.integrationServer.exceptions.ISExceptionGets the contact cursors open in the campaign.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getContactListNames
-
getContactProfileInProgressWorkflowCount
int getContactProfileInProgressWorkflowCount(int directoryId, int contactProfileId, String sql) throws Exception, altitude.integrationServer.exceptions.ISException Gets the count of the contact profile in progress workflow process task.- Parameters:
directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.sql- SQL.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getContactProfileInProgressWorkflowTableSchema
TableSchema getContactProfileInProgressWorkflowTableSchema() throws Exception, altitude.integrationServer.exceptions.ISExceptionGets the table schema of the contact profile in progress workflow.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getContactProfileInteractionHistoryCount
int getContactProfileInteractionHistoryCount(int directoryId, int contactProfileId, String sql) throws Exception, altitude.integrationServer.exceptions.ISException Gets the count of the contact profile interaction history, without the outcomes of each interaction.- Parameters:
directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.sql- SQL.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getContactProfileInteractionHistoryCount
int getContactProfileInteractionHistoryCount(int directoryId, int contactProfileId, String sql, boolean countOutcomes) throws Exception, altitude.integrationServer.exceptions.ISException Gets the count of the contact profile interaction history.- Parameters:
directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.sql- SQL.countOutcomes- If true, counts the outcomes of each interaction. If false, the count does not include the outcomes.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getContactProfileInteractionHistoryTableSchema
TableSchema getContactProfileInteractionHistoryTableSchema() throws Exception, altitude.integrationServer.exceptions.ISExceptionGets the table schema of the contact profile interaction history.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getContactTableSchema
TableSchema getContactTableSchema(int directoryId) throws Exception, altitude.integrationServer.exceptions.ISException Gets the table schema of the contact.- Parameters:
directoryId- Identifier of the directory. If > 0 then also returns the contact profile extension attributes columns.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getDefaultPurpose
Gets the campaign default purpose.- Returns:
- The
PurposeDataif configured, ornullif no default purpose is configured. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getDirectories
-
getEmailOutboundFromAddresses
-
getId
-
getInfo
Gets information about the campaign.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getInstance
-
getInteractionThreadCount
-
getMediaConfiguration
CampaignMediaConfiguration getMediaConfiguration() throws Exception, altitude.integrationServer.exceptions.ISExceptionGets the campaign media configuration.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getMessageOfTheDay
-
getName
-
getPendingWorkCount
int getPendingWorkCount(String agentName, String sql, boolean onlyActivitiesWithAgent) throws Exception, altitude.integrationServer.exceptions.ISException Gets the count of the pending work.- Parameters:
agentName- Name of the agent.sql- SQL.onlyActivitiesWithAgent- If true, include only activities that have an agent assigned.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getPendingWorkTableSchema
TableSchema getPendingWorkTableSchema() throws Exception, altitude.integrationServer.exceptions.ISExceptionGets the table schema of the pending work.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getQueuedAgentPickUpTaskCount
int getQueuedAgentPickUpTaskCount(String sql, boolean onlyPickable) throws Exception, altitude.integrationServer.exceptions.ISException Gets the count of the queued agent pick up task.- Parameters:
sql- SQL.onlyPickable- If true, the cursor only has tasks that the agent can pick up.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getQueuedAgentPickUpTaskTableSchema
TableSchema getQueuedAgentPickUpTaskTableSchema() throws Exception, altitude.integrationServer.exceptions.ISExceptionGets the queuedchema of the agent pick up task.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getQueuedEmailCount
int getQueuedEmailCount(String sql, boolean onlyPickable) throws Exception, altitude.integrationServer.exceptions.ISException Gets the count of the queued email.- Parameters:
sql- SQL.onlyPickable- If true, the cursor only has emails that the agent can pick up.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getQueuedEmailTableSchema
TableSchema getQueuedEmailTableSchema() throws Exception, altitude.integrationServer.exceptions.ISExceptionGets the table schema of the queued email.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getQueuedSocialCount
int getQueuedSocialCount(String sql, boolean onlyPickable) throws Exception, altitude.integrationServer.exceptions.ISException Gets the count of the queued social.- Parameters:
sql- SQL.onlyPickable- If true, the cursor only has socials that the agent can pick up.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getQueuedSocialTableSchema
TableSchema getQueuedSocialTableSchema() throws Exception, altitude.integrationServer.exceptions.ISExceptionGets the table schema of the queued social.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getRecordAllCalls
-
getRecordAllScreens
-
getSentEmailCount
-
getSentEmailTableSchema
TableSchema getSentEmailTableSchema() throws Exception, altitude.integrationServer.exceptions.ISExceptionGets the table schema of the sent email.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getSentSocialCount
-
getSentSocialTableSchema
TableSchema getSentSocialTableSchema() throws Exception, altitude.integrationServer.exceptions.ISExceptionGets the table schema of the sent social.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getService
-
getSkillProfileInfo
SkillProfileMediaInfo getSkillProfileInfo(String skillProfileName) throws Exception, altitude.integrationServer.exceptions.ISException Gets media information about agents working with a skill profile.- Parameters:
skillProfileName- Name of the skill profile.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getSkillProfileInfoByMediaId
SkillProfileMediaInfo getSkillProfileInfoByMediaId(String skillProfileName, int mediaId) throws Exception, altitude.integrationServer.exceptions.ISException Gets media information about agents working with a skill profile.- Parameters:
skillProfileName- Name of the skill profile.mediaId- Identifier of the media.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getSkillProfileInfoByMediaName
SkillProfileMediaInfo getSkillProfileInfoByMediaName(String skillProfileName, String mediaName) throws Exception, altitude.integrationServer.exceptions.ISException Gets media information about agents working with a skill profile.- Parameters:
skillProfileName- Name of the skill profile.mediaName- Name of the media.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getState
State of the campaign.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getType
Type of campaign- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getWorkingAgents
AgentInCampaignInfo[] getWorkingAgents() throws Exception, altitude.integrationServer.exceptions.ISExceptionGets information about the agents working in this campaign.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getWorkingAgentsMedia
AgentInCampaignMediaInfo[] getWorkingAgentsMedia(int mediaId) throws Exception, altitude.integrationServer.exceptions.ISException Gets media information about the agents working in this campaign.- Parameters:
mediaId- Identifier of the media.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
isInDoNotCallList
boolean isInDoNotCallList(String number, String uniqueId) throws Exception, altitude.integrationServer.exceptions.ISException Checks if a number is in the campaign service do not call list, or in the global do not call lists.- Parameters:
number- The phone number. This parameter is optional.uniqueId- Unique identifier of the contact profile. This parameter is optional.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
newContactCursor
IContactCursor newContactCursor(int directoryId, String[] columns, String sql) throws Exception, altitude.integrationServer.exceptions.ISException, altitude.integrationServer.exceptions.ISSqlException Opens a contact cursor.- Parameters:
directoryId- Identifier of the directory. If > 0 then the contact profile extension attributes are fetched.columns- Columns to fetch.sql- SQL.- Returns:
- The
IContactCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISExceptionaltitude.integrationServer.exceptions.ISSqlException
-
newContactCursor
IContactCursor newContactCursor(int directoryId, String[] columns, String sql, PurposeFilter purposeFilter) throws Exception, altitude.integrationServer.exceptions.ISException, altitude.integrationServer.exceptions.ISSqlException Opens a contact cursor.- Parameters:
directoryId- Identifier of the directory. If > 0 then the contact profile extension attributes are fetched.columns- Columns to fetch.sql- SQL.purposeFilter- Purpose filter.- Returns:
- The
IContactCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISExceptionaltitude.integrationServer.exceptions.ISSqlException
-
newContactProfileInProgressWorkflowCursor
IContactProfileInProgressWorkflowCursor newContactProfileInProgressWorkflowCursor(int directoryId, int contactProfileId, String[] columns, String sql) throws Exception, altitude.integrationServer.exceptions.ISException, altitude.integrationServer.exceptions.ISSqlException Opens a contact profile in progress workflow process task cursor.- Parameters:
directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.columns- Columns to fetch.sql- SQL.- Returns:
- The
IContactProfileInProgressWorkflowCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISExceptionaltitude.integrationServer.exceptions.ISSqlException
-
newContactProfileInteractionHistoryCursor
IContactProfileInteractionHistoryCursor newContactProfileInteractionHistoryCursor(int directoryId, int contactProfileId, String[] columns, String sql, boolean fetchOutcomes) throws Exception, altitude.integrationServer.exceptions.ISException, altitude.integrationServer.exceptions.ISSqlException Opens a contact profile interaction history cursor.- Parameters:
directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.columns- Columns to fetch.sql- SQL.fetchOutcomes- If true, the outcomes of each interaction are also fetched from the database. If false, the fetchedInteractionThreadScriptSession.Outcomeis null.- Returns:
- The
IContactProfileInteractionHistoryCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISExceptionaltitude.integrationServer.exceptions.ISSqlException
-
newInteractionThreadCursor
IInteractionThreadCursor newInteractionThreadCursor(int contactId, String[] columns, String sql) throws Exception, altitude.integrationServer.exceptions.ISException, altitude.integrationServer.exceptions.ISSqlException Opens an interaction thread cursor.- Parameters:
contactId- Identifier of the contact.columns- Columns to fetch.sql- SQL.- Returns:
- The
IInteractionThreadCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISExceptionaltitude.integrationServer.exceptions.ISSqlException
-
newPendingWorkCursor
IPendingWorkCursor newPendingWorkCursor(String agentName, String[] columns, String sql, boolean onlyActivitiesWithAgent) throws Exception, altitude.integrationServer.exceptions.ISException, altitude.integrationServer.exceptions.ISSqlException Opens a pending work cursor.- Parameters:
agentName- Name of the agent.columns- Columns to fetch.sql- SQL.onlyActivitiesWithAgent- If true, include only activities that have an agent assigned.- Returns:
- The
IPendingWorkCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISExceptionaltitude.integrationServer.exceptions.ISSqlException
-
newPendingWorkCursor
IPendingWorkCursor newPendingWorkCursor(String agentName, String[] columns, String sql, boolean onlyActivitiesWithAgent, PurposeFilter purposeFilter) throws Exception, altitude.integrationServer.exceptions.ISException, altitude.integrationServer.exceptions.ISSqlException Opens a pending work cursor.- Parameters:
agentName- Name of the agent.columns- Columns to fetch.sql- SQL.onlyActivitiesWithAgent- If true, include only activities that have an agent assigned.purposeFilter- Purpose filter.- Returns:
- The
IPendingWorkCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISExceptionaltitude.integrationServer.exceptions.ISSqlException
-
newQueuedAgentPickUpTaskCursor
IQueuedAgentPickUpTaskCursor newQueuedAgentPickUpTaskCursor(String[] columns, String sql, boolean onlyPickable) throws Exception, altitude.integrationServer.exceptions.ISException, altitude.integrationServer.exceptions.ISSqlException Opens a queued agent pick up task cursor.- Parameters:
columns- Columns to fetch.sql- SQL.onlyPickable- If true, the cursor only has tasks that the agent can pick up.- Returns:
- The
IQueuedAgentPickUpTaskCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISExceptionaltitude.integrationServer.exceptions.ISSqlException
-
newQueuedAgentPickUpTaskCursor
IQueuedAgentPickUpTaskCursor newQueuedAgentPickUpTaskCursor(String[] columns, String sql, boolean onlyPickable, PurposeFilter purposeFilter) throws Exception, altitude.integrationServer.exceptions.ISException, altitude.integrationServer.exceptions.ISSqlException Opens a queued agent pick up task cursor.- Parameters:
columns- Columns to fetch.sql- SQL.onlyPickable- If true, the cursor only has tasks that the agent can pick up.purposeFilter- Purpose filter.- Returns:
- The
IQueuedAgentPickUpTaskCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISExceptionaltitude.integrationServer.exceptions.ISSqlException
-
newQueuedEmailCursor
IQueuedEmailCursor newQueuedEmailCursor(String[] columns, String sql, boolean onlyPickable) throws Exception, altitude.integrationServer.exceptions.ISException, altitude.integrationServer.exceptions.ISSqlException Opens a queued email cursor.- Parameters:
columns- Columns to fetch.sql- SQL.onlyPickable- If true, the cursor only has emails that the agent can pick up.- Returns:
- The
IQueuedEmailCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISExceptionaltitude.integrationServer.exceptions.ISSqlException
-
newQueuedEmailCursor
IQueuedEmailCursor newQueuedEmailCursor(String[] columns, String sql, boolean onlyPickable, PurposeFilter purposeFilter) throws Exception, altitude.integrationServer.exceptions.ISException, altitude.integrationServer.exceptions.ISSqlException Opens a queued email cursor.- Parameters:
columns- Columns to fetch.sql- SQL.onlyPickable- If true, the cursor only has emails that the agent can pick up.purposeFilter- Purpose filter.- Returns:
- The
IQueuedEmailCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISExceptionaltitude.integrationServer.exceptions.ISSqlException
-
newQueuedSocialCursor
IQueuedSocialCursor newQueuedSocialCursor(String[] columns, String sql, boolean onlyPickable, PurposeFilter purposeFilter) throws Exception, altitude.integrationServer.exceptions.ISException, altitude.integrationServer.exceptions.ISSqlException Opens a queued social cursor.- Parameters:
columns- Columns to fetch.sql- SQL.onlyPickable- If true, the cursor only has socials that the agent can pick up.purposeFilter- Purpose filter.- Returns:
- The
IQueuedSocialCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISExceptionaltitude.integrationServer.exceptions.ISSqlException
-
newSentEmailCursor
ISentEmailCursor newSentEmailCursor(String[] columns, String sql) throws Exception, altitude.integrationServer.exceptions.ISException, altitude.integrationServer.exceptions.ISSqlException Opens a sent email cursor.- Parameters:
columns- Columns to fetch.sql- SQL.- Returns:
- The
ISentEmailCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISExceptionaltitude.integrationServer.exceptions.ISSqlException
-
newSentEmailCursor
ISentEmailCursor newSentEmailCursor(String[] columns, String sql, PurposeFilter purposeFilter) throws Exception, altitude.integrationServer.exceptions.ISException, altitude.integrationServer.exceptions.ISSqlException Opens a sent email cursor.- Parameters:
columns- Columns to fetch.sql- SQL.purposeFilter- Purpose filter.- Returns:
- The
ISentEmailCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISExceptionaltitude.integrationServer.exceptions.ISSqlException
-
newSentSocialCursor
ISentSocialCursor newSentSocialCursor(String[] columns, String sql, PurposeFilter purposeFilter) throws Exception, altitude.integrationServer.exceptions.ISException, altitude.integrationServer.exceptions.ISSqlException Opens a sent social cursor.- Parameters:
columns- Columns to fetch.sql- SQL.purposeFilter- Purpose filter.- Returns:
- The
ISentSocialCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISExceptionaltitude.integrationServer.exceptions.ISSqlException
-
restartContact
-
scheduleContact
int scheduleContact(Attribute[] attributes, String timeZone, String reschedulePhone, Duration rescheduleTimeLimit, int directoryId, int contactProfileId, GregorianCalendar scheduleMoment, String agentName, int priority, String outboundRule, boolean usesDoNotCallList, String skillProfileName, SkillInProfile[] skills) throws Exception, altitude.integrationServer.exceptions.ISException Schedules a contact for a contact profile. The state of the contact will beStarted.- Parameters:
attributes- Attributes of the new contact.timeZone- Time zone of the contact.reschedulePhone- Phone to reschedule.rescheduleTimeLimit- Limit moment for the reschedule.directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.scheduleMoment- Schedule moment.agentName- Name of the agent.priority- Relative priority.outboundRule- Outbound rule.usesDoNotCallList- If true, the do not call list is used.skillProfileName- Name of the agent skill profile required to handle the contact.skills- Optional agent skills required to handle the new contact. This parameter will be ignored if theskillProfileNameis specified.- Returns:
- Identifier of the new contact.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
scheduleContact
int scheduleContact(Attribute[] attributes, String timeZone, String reschedulePhone, Duration rescheduleTimeLimit, int directoryId, int contactProfileId, GregorianCalendar scheduleMoment, String agentName, int priority, String outboundRule, boolean usesDoNotCallList, String skillProfileName, SkillInProfile[] skills, String contactListName) throws Exception, altitude.integrationServer.exceptions.ISException Schedules a contact for a contact profile. The state of the contact will beStarted.- Parameters:
attributes- Attributes of the new contact.timeZone- Time zone of the contact.reschedulePhone- Phone to reschedule.rescheduleTimeLimit- Limit moment for the reschedule.directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.scheduleMoment- Schedule moment.agentName- Name of the agent.priority- Relative priority.outboundRule- Outbound rule.usesDoNotCallList- If true, the do not call list is used.skillProfileName- Name of the agent skill profile required to handle the contact.skills- Optional agent skills required to handle the new contact. This parameter will be ignored if theskillProfileNameis specified.contactListName- Name of the contact list where the contact will be created.- Returns:
- Identifier of the new contact.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
scheduleContact
int scheduleContact(Attribute[] attributes, String timeZone, String reschedulePhone, String reschedulePhoneScheduleRule, Duration rescheduleTimeLimit, int directoryId, int contactProfileId, GregorianCalendar scheduleMoment, String agentName, int priority, String outboundRule, boolean usesDoNotCallList, String skillProfileName, SkillInProfile[] skills, String contactListName) throws Exception, altitude.integrationServer.exceptions.ISException Schedules a contact for a contact profile. The state of the contact will beStarted.- Parameters:
attributes- Attributes of the new contact.timeZone- Time zone of the contact.reschedulePhone- Phone to reschedule.reschedulePhoneScheduleRule- Reschedule phone schedule rule.rescheduleTimeLimit- Limit moment for the reschedule.directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.scheduleMoment- Schedule moment.agentName- Name of the agent.priority- Relative priority.outboundRule- Outbound rule.usesDoNotCallList- If true, the do not call list is used.skillProfileName- Name of the agent skill profile required to handle the contact.skills- Optional agent skills required to handle the new contact. This parameter will be ignored if theskillProfileNameis specified.contactListName- Name of the contact list where the contact will be created.- Returns:
- Identifier of the new contact.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
scheduleContact
int scheduleContact(Attribute[] attributes, String timeZone, String reschedulePhone, String reschedulePhoneScheduleRule, Duration rescheduleTimeLimit, int directoryId, int contactProfileId, GregorianCalendar scheduleMoment, String agentName, int priority, String outboundRule, boolean usesDoNotCallList, String skillProfileName, SkillInProfile[] skills, String contactListName, String serviceAniListName) throws Exception, altitude.integrationServer.exceptions.ISException Schedules a contact for a contact profile. The state of the contact will beStarted.- Parameters:
attributes- Attributes of the new contact.timeZone- Time zone of the contact.reschedulePhone- Phone to reschedule.reschedulePhoneScheduleRule- Reschedule phone schedule rule.rescheduleTimeLimit- Limit moment for the reschedule.directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.scheduleMoment- Schedule moment.agentName- Name of the agent.priority- Relative priority.outboundRule- Outbound rule.usesDoNotCallList- If true, the do not call list is used.skillProfileName- Name of the agent skill profile required to handle the contact.skills- Optional agent skills required to handle the new contact. This parameter will be ignored if theskillProfileNameis specified.contactListName- Name of the contact list where the contact will be created.serviceAniListName- Name of the service ANI list to use when dialing to the contact.- Returns:
- Identifier of the new contact.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
sendData
-
tryGetContactCursor
IContactCursor tryGetContactCursor(int cursorId) throws Exception, altitude.integrationServer.exceptions.ISException Gets a contact cursor open in the campaign or null if it doesn't exist.- Parameters:
cursorId- Identifier of the cursor.- Returns:
- The
IContactCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-