triggerActions
Triggers the state transition actions on the records that are specified in the TriggerActions Array.
Parameters
triggerActions is an array of TriggerActions objects that contains the record ID and the action name to trigger.
Errors
- RecordDoesNotExistException
- The record does not exist.
- ActionDoesNotExistException
- The action does not exist for an object type or the record is not in a state that allows an action.
- InvalidArgumentException
- The record ID or action name is invalid.
- AccessException
- The user does not have access to read the record.
- java.lang.Exception
- A system error occurred when the request was being processed.
Sample request
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.tririga.com" xmlns:dto="http://dto.ws.tririga.com">
<soapenv:Body>
<ws:triggerActions>
<ws:TriggerActions>
<!--Zero or more repetitions:-->
<dto:TriggerActions>
<dto:actionName>triSave</dto:actionName>
<dto:recordId>2528575</dto:recordId>
</dto:TriggerActions>
</ws:TriggerActions>
</ws:triggerActions>
</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>
<triggerActionsResponse xmlns="http://ws.tririga.com">
<out>
<anyFailed xmlns="http://dto.ws.tririga.com">false</anyFailed>
<failed xmlns="http://dto.ws.tririga.com">0</failed>
<responseHelpers xmlns="http://dto.ws.tririga.com">
<ResponseHelper>
<key>1163465792078_0.36783446356265104</key>
<name>triSave</name>
<recordId>2528575</recordId>
<status xsi:nil="true">Successful</status>
<value xsi:nil="true"/>
</ResponseHelper>
</responseHelpers>
<successful xmlns="http://dto.ws.tririga.com">1</successful>
<total xmlns="http://dto.ws.tririga.com">1</total>
</out>
</triggerActionsResponse>
</soap:Body>
</soap:Envelope>