pp108 : ConsumeEvent

ConsumeEvent

This Web service operation is deprecated. Use SendEvent instead

This method is used to consume business events.ConsumeEventis part of the *CaseInstanceExecution*methodsetwhose namespace is http://schemas.cordys.com/casemanagement/execution/1.0.

Note:
In the case model, when an event is defined and is associated to an activity and a consumer (transition), a warning message appears indicating that that there is no consumer (transition) for this event.

SOAP Request

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP:Body>
        <ConsumeEvent xmlns="http://schemas.cordys.com/casemanagement/execution/1.0">
            <caseinstanceid>{2I0C054B-E0FB-4DB4-B031-601EA31853AF}</caseinstanceid>
            <event>OrderApproval</event>
        </ConsumeEvent>
    </SOAP:Body>
</SOAP:Envelope>

Request Parameters

Parameter

Description

Data Type

Accepted Input Values

caseinstanceid

Unique identifier for model. This can be a full qualified name or a document id.

event

Name of the event that has to be consumed.

SOAP Response

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

Response Parameters

Parameter

Description

activestates

Contains the names and GUIDs of all the states that are active when this event was consumed