Avaya DXX-1015-01 manual ADU.IncrValue, ADU.Monitor

Page 59

ADU.IncrValue

ADU.IncrValue

IDL Syntax ORBStatus IncrValue( in ADU_ID aduid, in string name, in long incr,

out string newvalue ) ;

Description This method is a useful alternative to using SetOneValue and GetOneValue to modify a value when there is a risk that two applications might conflict.

This method changes one ADU data element. If the element does not exist it is created. An element that exists is overwritten if permission allows. The value of the element is treated as a number and is converted to a long integer (by use of the C function atol). The specified increment is added, and the element’s value is set to the result. Elements that do not exist are treated as if they contained a zero (0). The increment may be a negative value.

The atol function is robust in that if it cannot recognize a number, it returns 0. The method stores the resulting, incremented value as a decimal digit string without extraneous spaces or leading zeros. Thus, incrementing “x2” by one results in “1” and incrementing “00034E6” by one results in “35”.

Input Parameters

aduid

Agent Data Unit Identifier.

name

The name of the ADU element to change or create.

incr

Increment value.

Output Parameters

newvalue

The new value of the element, after the increment.

Returns

VESP_SUCCESS

Request was successful.

VESP_ERROR

ADU not found, or the element cannot be changed.

C Program Example

char *result;

status = Vesp_Request( "ADU.IncrValue", callback, 0x2132, session, aduid, "some_numeric_element", 1L, &result );

ADU.Monitor

IDL Syntax ORBStatus Monitor( in string monitorcriteria ) ;

Description This method changes Assign criteria. It works like Assign in all respects. You must have

previously assigned (and have not since deassigned) to use this method.

Issue 1.0 June 2002 59

Image 59
Contents Avaya Interaction Center Acknowledgment Contents Agent Data Unit Server Programmer’s Guide ContentsFont Type Meaning Before YOU BeginTypographical Conventions Contacting Technical SupportElectronic Documentation Product DocumentationReadme File Printed Documentation Educational ServicesEducational Services Issue 1.0 June 2002Agent Data Unit Server Programmer’s Guide Overview Start-up ProceduresChapter ADU Server ADU Server Cooperation of ADU ServersADU Creation Chapter Agent Data UnitDefinition of an ADU ADU LifecycleAgent Data Unit Listing Active ADUsADU Termination Aduid Bytes Example Description ContentsAduid ADU Data TableADU Contents Field Name Description Set By ADU ContentsCore ADU Fields Sheet 1 Agent ADU FieldsDescription Set By Sheet 2 Sheet 3 Value Explanation Voice Data ContainersSheet 4 Following ADU fields are used by queues on Avaya IC Queue ADU FieldsContainers ContainersContainer Names and Special Tokens Limitations of Container Syntax Containername .!loginidADU.Create VDU.Create Container ConfigurationsParameter Type Default Description ADU.Update VDU.UpdateEDU Values written if tscon is set to true Agent Data Unit Description Message Chapter Event MonitoringADU Event Monitoring Event Monitoring Starting and Stopping Event MonitoringMonitoring Criteria Syntax Setting Event Monitoring CriteriaSetting Event Monitoring Criteria Example ADU.Assign loginid=Joe & ts.1.s=wrapup Relational Operators Symbol Definition DescriptionWildcard Definition Example Boolean OperatorsMonitoring Criteria Wildcards Criteria Example Description Monitoring Criteria ExamplesEvent Monitoring Agent Data Unit Server Programmer’s Guide Priority Description Cause/Recommended Action Chapter AlarmsAlarms ADU Server Alias Name Chapter ADU Server ConfigurationConfiguration Parameters System ConsiderationsADU Server Configuration Configuration Parameters Sheet 4 Name Description Set them on the Config tab of the ADU Server Editor dialogADU Server Configuration Chapter IDL Specification IDL Specification Exception Information Chapter ADU Server MethodsMethod Objectives ADU Server Methods Routing RequestsMethod Overview Method Overview ADU.Create MethodsADU.Assign ADU.Deassign ADU.DeassignADU.DeleteOneValue ADU.DeleteValues ADU.DeleteSubTreeADU.EventsIn ADU.EventsInADU.Find Locate an ADU having a key containing ADU.FindByKeyADU.FindOrCreate ADU.FindOrCreateADU.ForceTerminate ADU.ForwardEventADU.GetOneValue ADU.GetActiveADU.GetSomeValues ADU.GetSomeValuesADU.GetSubTree ADU.GetValueHistory ADU.GetValuesADU.GetValuesHistory ADU.GetValuesHistoryFirst value that was set was truth ADU.IncrValue ADU.IncrValueADU.Monitor ADU.SetAndTerminate ADU.RemoteWatcherADU.SetAndTransfer ADU.SetDefaultHistoryFilterADU.SetAndTransfer Hsnostart Hsnochange Hsnotransfer Hsnouser Hsnodelete ADU.SetHistoryFilterADU.SetOneValue ADU.SetOneValueADU.SetValuesExtended ADU.SetValuesADU.Suspend ADU.SuspendADU.Terminate ADU.Touch ADU.TerminateMineADU.Transfer ADU.TransferADU Server Methods Agent Data Unit Server Programmer’s Guide Index SymbolsAduid IndexIssue 1.0 June 2002 Index Index Index Agent Data Unit Server Programmer’s Guide