pp108 : FireTrigger

FireTrigger

This Web service operation is used to raise an external event on a business object instance that is currently under the lifecycle specified by an MDM State Model. It is part of the MDM Service Methodset Web service interface whose namespace is http://schemas.cordys.com/rcor/1.0. FireTrigger is an asynchronous Web service operation.

SOAP Request

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP:Body>
        <FireTrigger xmlns="http://schemas.cordys.com/rcor/1.0">
            <event instanceid="" name="update">
                <businessobject>
                    <itemdetails>
                        <GTIN>2500</GTIN>
                        <BRANDNAME>PRORASO</BRANDNAME>
                        <PRICE>54</PRICE>
                        <REORDERLEVEL>1</REORDERLEVEL>
                        <DISCONTINUED>1</DISCONTINUED>
                        <DESCRIPTION>Help-updated</DESCRIPTION>
                    </itemdetails>
                </businessobject>
                <mdmmetadata>
                    <userdn>cn=mdmuser,cn=organizational users,o=mdm,cn=cordys,cn=defaultInst,o=mycompany.com</userdn>
                    <requestorganization>o=mdm,cn=cordys,cn=defaultInst,o=mycompany.com</requestorganization>
                    <rcorguid/>
                    <source>Items SQL Spoke Publisher</source>
                    <operation>Upload</operation>
                    <hub>
                        <keys>
                            <!-- key fields of the hub entity along with the values. -->
                            <GTIN>2500</GTIN>
                        </keys>
                        <!-- Name of the service group associated with hub data store. -->
                        <backend>Items MySQL Hub Publisher</backend>
                        <!-- Business object name of the hub entity. -->
                        <entity>itemdetails</entity>
                        <organization>o=HotFix,cn=cordys,cn=build342,o=vanenburg.com</organization>
                        <!-- The database operation performed on the hub data entity. Can be one of insert/update/delete. -->
                        <dbevent>insert</dbevent>
                    </hub>
                    <spoke>
                        <!-- The database operation performed on the spoke data entity. Can be one of insert/update/delete. -->
                        <dbevent>insert</dbevent>
                        <!-- key fields of the spoke entity along with the values. -->
                        <keys>
                            <GTIN>2500</GTIN>
                        </keys>
                        <!-- Name of the service group associated with spoke data store. -->
                        <backend>Items SQL Spoke Publisher</backend>
                        <!-- Business object name of the spoke entity. -->
                        <entity>ITEMDETAILS</entity>
                        <organization>o=HotFix,cn=cordys,cn=build342,o=vanenburg.com</organization>
                    </spoke>
                </mdmmetadata>
                <activestates>
                    <state name="Waiting"/>
                </activestates>
            </event>
        </FireTrigger>
    </SOAP:Body>
</SOAP:Envelope>

Request Parameters

Parameter

Description

Manadatory

Accepted Input Values

businessobject
XML specifying the data of the business object instance data Yes XML
mdmmetadata
Meta information about the business object instance Yes XML

event name

Name of the event to be raised

No

String

event instanceid GUID that uniquely identifies a business object instance from the state instance table No String
activestates
Has exactly one state element whose name attribute represents the state name in which the instance exists at the moment. No String

SOAP Response

<FireTriggerResponse xmlns="http://schemas.cordys.com/rcor/1.0"
    xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xfr="http://schemas.cordys.com/1.0/xforms/runtime">
    <SEINSTANCEID>D70815E6-C57C-11E2-EE1E-9CB65262BF91</SEINSTANCEID>
</FireTriggerResponse>
Response Parameters

Parameter

Description

SEINSTANCEID

Instance ID of the state instance