pp108 : GetCaseActivities

GetCaseActivities

This method can be used to obtain the details of all activities associated with a Case model that is currently available for creating new instances. The GetCaseActivities is a part of the CaseModel Administration method set with the namespace http://schemas.cordys.com/casemanagement/modeladministration/1.0.

SOAP Request

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP:Body>
        <GetCaseActivities xmlns="http://schemas.cordys.com/casemanagement/modeladministration/1.0">
            <cursor connId="27733746402374" id="0" maxRows="99999"
                numRows="5" position="0" sameConnection="false"/>
            <model name="/HospitalManagement/case/HealthCheck" space="organization"/>
        </GetCaseActivities>
    </SOAP:Body>
</SOAP:Envelope>
Request Parameters

Parameter

Description Mandatory Accepted Input Values

name

Refers to the Fully Qualified Name (FQN) of the Case model for which the details are to be retrieved

Yes

space

Refers to the space where the Case model is deployed.

If space is not given,it first checks for the case model in the organization space from where request is fired,if case model is not found it falls back to isv space.

No
  • isv
  • organization

SOAP Response

<data>
    <GetCaseActivitiesResponse
        xmlns="http://schemas.cordys.com/casemanagement/modeladministration/1.0" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
        <cursor connId="27733746402374" numRows="5"
            sameConnection="false"
            xmlns="http://schemas.cordys.com/casemanagement/modeladministration/1.0" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"/>
        <tuple>
            <old>
                <CASE_ACTIVITY>
                    <ACTIVITY_ID>18326381-32c3-4e1a-995f-8a032023285f</ACTIVITY_ID>
                    <ACTIVITY_MODEL_ID>fd227ba3-85f1-4ca6-a50e-554008b85103</ACTIVITY_MODEL_ID>
                    <ACTIVITY_NAME>Meet patient</ACTIVITY_NAME>
                    <ACTIVITY_TYPE>HUMANTASK</ACTIVITY_TYPE>
                </CASE_ACTIVITY>
            </old>
        </tuple>
        <tuple>
            <old>
                <CASE_ACTIVITY>
                    <ACTIVITY_ID>599f0aad-59aa-4ee4-ba80-6e63b363374f</ACTIVITY_ID>
                    <ACTIVITY_MODEL_ID>98c6890f-7fbd-4b07-a70f-ab6e9ccb061c</ACTIVITY_MODEL_ID>
                    <ACTIVITY_NAME>Collect past medical history</ACTIVITY_NAME>
                    <ACTIVITY_TYPE>HUMANTASK</ACTIVITY_TYPE>
                </CASE_ACTIVITY>
            </old>
        </tuple>
    </GetCaseActivitiesResponse>
</data>
Response Parameters

Parameter

Description

ACTIVITY_ID

Contains the unique identifier of the retrieved activity

ACTIVITY_MODEL_ID

Contains the unique identifier of the retrieved activity during design-time

ACTIVITY_NAME

Contains the name of the retrieved activity

ACTIVITY_TYPE

Contains the type of the retrieved activity. It will have one of the following values:

  • HUMANTASK (When the activity is an user interface)
  • BPMTASK (When the activity is a sub bpm)
  • CASETASK (When the activity is a sub case)