UpdateCaseData |
|
This method is used to update the Case data of a Case instance. The UpdateCaseData is a part of the CaseInstanceExecution method set with the namespace 'http://schemas.cordys.com/casemanagement/execution/1.0'.
SOAP Request
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP:Header> <CaseConfiguration xmlns="http://schemas.cordys.com/casemanagement/execution/1.0"> <changestatus>true</changestatus> </CaseConfiguration> </SOAP:Header> <SOAP:Body> <UpdateCaseData xmlns="http://schemas.cordys.com/casemanagement/execution/1.0"> <caseinstanceid>005056C0-0008-11E0-EE48-87535AD473C8</caseinstanceid> <casedata lockID="005056C0-0008-11E0-EE49-90C9742153C8"> <data name="sch:emp"> <emp> <id>10884</id> <name>John</name> <designation>Soft Ware Engineer</designation> </emp> </data> </casedata> </UpdateCaseData> </SOAP:Body> </SOAP:Envelope>
Request Parameters
Parameter |
Description |
Mandatory |
Accepted Input Values |
---|---|---|---|
changestatus |
Specifies the change in the status of the Case data. |
No |
|
caseinstanceid |
Refers to the unique identifier of the Case instance. This instance ID can be retrieved from the Case instance history. |
Yes |
|
lockID |
The optimistic lock ID of the Case data is required to update the database. This value is available in the response of the GetCaseData Web service. |
Yes |
|
casedata |
Refers to the data that must be sent as input to the Case instance |
No |
|
SOAP Response
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP:Body> <UpdateCaseDataResponse xmlns="http://schemas.cordys.com/casemanagement/execution/1.0"> <caseinstanceid>005056C0-0008-11E0-EE48-87535AD473C8</caseinstanceid> <currentstate>RootCaseModelState</currentstate> </UpdateCaseDataResponse> </SOAP:Body> </SOAP:Envelope>
Response Parameters
Parameter |
Description |
---|---|
caseinstanceid |
Refers to the unique identifier of the Case instance |
currentstate |
Indicates the current state of the Case model |