getAvailableActions
Retrieves the current state of each object specified in the recordIds array. It also returns all the available state transitions and their subAction information.
Parameters
recordIds is the array of record IDs you need the state transition information for.
Returns
An array of AvailableAction objects is returned.
Errors
- InvalidArgumentException
- The recordIds are invalid.
- java.lang.Exception
- A system error occurred when the request was being processed.
- AccessException
- The user does not have access to the record.
Sample request
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ws="http://ws.tririga.com">
<soapenv:Body>
<ws:getAvailableActions>
<ws:recordIds>
<!--Zero or more repetitions:-->
<ws:long>2592271</ws:long>
</ws:recordIds>
</ws:getAvailableActions>
</soapenv:Body>
</soapenv:Envelope>
Sample response
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body>
<getAvailableActionsResponse xmlns="http://ws.tririga.com">
<out>
<ns1:AvailableAction xmlns:ns1="http://dto.ws.tririga.com">
<availableTransitions xmlns="http://dto.ws.tririga.com">
<Transition>
<action>Apply</action>
<actionId>0</actionId>
<actionSequence>750212</actionSequence>
<label>Save</label>
<nextState xsi:nil="true"/>
<subActions xsi:nil="true"/>
</Transition> </availableTransitions>
<currentState xmlns="http://dto.ws.tririga.com">Active</currentState>
<recordId xmlns="http://dto.ws.tririga.com">2592271</recordId>
</ns1:AvailableAction>
</out>
</getAvailableActionsResponse>
</soap:Body>
</soap:Envelope>