Dovico.TrackITAPI.CWorkflow.GetAvailableMatrixEmployees(System.String,Dovico.TrackITAPI.CStateInfo)
Function Overview:
This method build a list of available employees for a matrix approval rule. The query xml should be structured in availablematrixemployees.xsd format. If you are inquiring on available employees for a template set PROJECTID=0.
Parameter List:
sXml - string - xml in the format availablematrixemployees.xsd to retrieve the available employees for
siState - CStateInfo - State information needed to process the transaction
Returns
A string of xml containing the available employee list for a matrix approval rule.
Example:
// build up xml that will query the database for all employees/managers that are
// available for a matrix workflow. If you are interested in all employees
// and managers available and wish to ignore what has been set in the database for
// a particular workflow than set IGNOREWORKFLOW to T
string sXml = "<AvailableMatrixEmployees:AVAILABLEMATRIXEMPLOYEES ";
sXml += "xmlns:AvailableMatrixEmployees=\"http://www.dovico.com/schemas/availablematrixemployees.xsd\" ";
sXml += "WORKFLOWID=\"100\" WORKFLOWTYPE=\"T\" PROJECTID=\"100\" IGNOREWORKFLOW=\"F\"/>";
// call the method to query for available employees/managers
string sResult = wsapi.MethodInvoke("WorkflowGetAvailableMatrixEmployees", sXml, stToken);