CompleteActivity |
|
This Web service operation is used to complete the activity which is in the released state. The CompleteActivity is a part of the CaseInstanceExecution Web service interface with the namespace [http://schemas.cordys.com/casemanagement/execution/1.0].
![]() |
Note that using this SOAP API to complete an activity will not remove the task from the Inbox. It is recommended to use the PerformTaskAction API to complete a task. |
SOAP Request
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP:Body> <CompleteActivity xmlns="http://schemas.cordys.com/casemanagement/execution/1.0"> <caseinstanceid>005056C0-0008-11E0-EEA8-6762BBE7F3C8</caseinstanceid> <activityinstanceid activityid="005056C0-0008-11E0-EE8E-91E83ABE93C8">005056C0-0008-11E0-EEA8-6762BBE853C8</activityinstanceid> </CompleteActivity> </SOAP:Body> </SOAP:Envelope>
Request Parameters
Parameter |
Description |
Mandatory |
Accepted Input Values |
---|---|---|---|
caseinstanceid |
Refers to the unique identifier of the Case instance. The Case instance ID can be obtained from any of the following:
|
Yes |
|
activityinstanceid |
Refers to the unique identifier of the activity instance. The activity instance ID can be obtained from: |
Yes |
|
activityid |
Refers to the unique identifier of the activity definition. The activity ID can be obtained from: |
Yes |
|
SOAP Response
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP:Body> <CompleteActivityResponse xmlns="http://schemas.cordys.com/casemanagement/execution/1.0"> <activestates> <state id="final_state" name=""/> </activestates> </CompleteActivityResponse> </SOAP:Body> </SOAP:Envelope>
Response Parameters
Parameter |
Description |
---|---|
state |
Indicates the current state of the Case model that is triggered after completing the Case activity |