pp108 : CompleteActivityWithFollowup

CompleteActivityWithFollowup

This Web service operation is used to complete the current activity and also plans for the follow-up activities. The CompleteActivityWithFollowup is a part of the CaseInstanceExecution Web service interface with the namespace 'http://schemas.cordys.com/casemanagement/execution/1.0'.

SOAP Request

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP:Body>
        <CompleteActivityWithFollowup xmlns="http://schemas.cordys.com/casemanagement/execution/1.0">
            <caseinstanceid>2I0C054B-E0FB-4DB4-B031-601EA31853AF</caseinstanceid>
            <activityinstanceid activityid="563514C6-2C37-47E5-A200-E2DC94CFF583">B3A9B1E1-8204-4F98-B564-B8F043C80A06</activityinstanceid>
            <planactivities>
                <activity name="ScheduleAppointment" state="Registration" />
                <activity name="CheckInsurance" state="Verification"/>
                <activity name="checkClaim" state="Verification"/>
            </planactivities>
        </CompleteActivityWithFollowup>
    </SOAP:Body>
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:

Yes

String

activityinstanceid

Refers to the unique identifier of the activity instance. The activity instance ID can be obtained from the Workflow.getTaskInstanceId.

Yes

String

activityid

Refers to the unique identifier of the activity definition. The activity ID can be obtained from the Workflow.getCaseActivityId.

Yes

String

planactivities/activity/@name

Refers to the name of the activity which requires to be planned as a follow-up activity

No

String

planactivities/activity/@state

Refers to the name of the state in which the planned activity is modeled

No

String

SOAP Response

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP:Body>
        <CompleteActivityWithFollowupResponse xmlns="http://schemas.cordys.com/casemanagement/execution/1.0">
            <activestates>
                <state id="5E019655-709E-4CF0-BD3B-FA3E066EF8F4" name="Dignosis">2S0C054B-E0FB-4DB4-B031-601EA31853AF</state>
            </activestates>
        </CompleteActivityWithFollowupResponse>
    </SOAP:Body>
</SOAP:Envelope>
Parameter Desccription
state

Indicates the current state of the Case model that is triggered after completing the Case activity