IBM Business Process Manager, Version 8.5.5

REST interface for BPD-related resources - Service Resource - POST (start) Method

Use this method to start a service.

Sample method invocation

POST /rest/bpm/wle/v1/service/{instanceId}?action={string}[&createTask={boolean}][&parts={string}][&params={string}][&snapshotId={string}][&callerTaskId={string}]

Usage Notes

Parameters

Required parameters
NameValue TypeDescription
action string
A string indicating the action to be taken on the service.
ValueDescription
start
Runs a service until a natural stopping point is encountered, such as a Coach, a Postpone, or the end.
Optional parameters
NameValue TypeDescription
createTask boolean
A flag which indicates whether or not a corresponding task should be created when starting the service. Valid values are "true" and "false". The default is "false".
parts string
A string indicating which parts of the response data should be returned. Valid values are "data", "all" (the default), or "none".
params string
A string containing a JSON expression that contains one or more input parameter settings. Each of the variables will be set in the context of the running process.

Example:

....params={"orderNumber":"5","customerName":{"firstName":"John","lastName":"Doe"}}

snapshotId string
The id of the snapshot to be used to start the service. If not specified, then the tip snapshot of the default track within the process application will be used.
callerTaskId string
The id of an existing task that should be associated with the new service instance. If not specified, then the new service instance will not be associated with an existing task.

Request content

MIME type: application/x-www-form-urlencoded

Use this mime-type in situations where the length of the query string might cause the request URI to exceed the maximum length supported by the browser or HTTP client environment. With this mime-type, you can move all of your query parameters to the HTTP request body and avoid request URI length restrictions.

Example:

   POST  http://myhost.mycompany.com:9080/rest/bpm/wle/v1/service/<serviceModelID>

   HTTP Headers:
      Content-Type: application/x-www-form-urlencoded
      Accept: application/json

   HTTP Request Body:
      action=start&params={"orderNumber":"5","customerName":{"firstName":"John","lastName":"Doe"}}

Response content

Service Run Model details (ServiceRunModel complexType).

The default content type is application/json.

MIME type: application/json


+ View schema
{  "description": "WLE Service Run Model", 
   "type": "object",
   "properties":
   { 
      "serviceStatus": {"type": "string", 
         "description": "Status of the service.",
         "enum":
         [
            "end", 
            "coach",
            "error",
            "debug" 
         ]
      },
      "key": {"type": "string",
         "description": "The ID of the running server or task instance. This is the ID to use when resuming the service or task."
      },
      "step": {"type": "string",
         "description": "The ID of the current step within the context of the running service."
      },
      "data": {"type": "[object]",
         "description": "The data (symbol table) associated with the running service."
      },
      "coach": {"type": "string",
         "description": "If the service status is "coach", this field contains the coach XML data."
      },
      "coachEvals": {"type": "map",
         "description": "If the service status is "coach", this field contains attribute/value pairs representing evaluated coach values."
      },
      "actions": {"type": "string",
         "description": "If the service statis is "coach", this field contains a list of available actions (end point)."
      }
      "actionsMap": {"type": "map",
         "description": "If the service status is "coach", this field contains attribute/value representing actions and names"
      },
   }
}
+ View example content
{
   "status":"200",
   "data":{
      "serviceStatus":"coach",
      "key":"@2",
      "step":"Create job requisition",
      "data":{
         "instanceId":null,
         "currentPosition":{
            "replacement":{

            }
         },
         "requisition":{
            "instanceId":null,
            "date":"2011-04-28T18:22:34Z"
         }
      },
      "coach":"<Form xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n  <FormTitle>Create Job Requisition</FormTitle>\n  \n    \n    
\n Job Requisition Information\n \n \n \n \n
\n Requisition\n \n \n \n
\n Section Title\n \n \n \n \n <InputText binding=\"tw.local.requisition.reqNum\">\n \n </InputText>\n \n \n <InputText binding=\"tw.local.requisition.requestor\">\n \n </InputText>\n \n \n \n \n \n --Select a status--\n Full time\n Part time\n Contract\n <BasedOn type=\"None\" />\n \n \n \n \n \n \n \n --Select a location--\n Boston\n Austin\n Atlanta\n <BasedOn type=\"None\" />\n \n \n \n \n \n \n \n --Select a position type--\n New\n Existing\n <BasedOn type=\"None\" />\n \n \n \n \n \n \n \n \n <BasedOn />\n \n \n \n \n \n \n --Select a department--\n Finance\n Products\n Marketing\n Sales\n Customer Service\n <BasedOn type=\"None\" />\n \n \n \n \n <InputText binding=\"tw.local.requisition.empNum\">\n \n </InputText>\n \n \n <InputText binding=\"tw.local.currentPosition.jobTitle\">\n \n </InputText>\n \n \n \n \n \n \n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n</Form>", "coachEvals":{ }, "actions":{ "bg0_ok" }, "actionsMap":{ "bg0_ok" : "Ok" } } }

MIME type: application/xml


+ View schema
<?xml version="1.0" encoding="UTF-8"?>
<schema targetNamespace="http://rest.bpm.ibm.com/v1/data/service"
	elementFormDefault="unqualified"
	xmlns="http://www.w3.org/2001/XMLSchema"
	xmlns:tns="http://rest.bpm.ibm.com/v1/data/service"
	xmlns:pref="http://rest.bpm.ibm.com/v1/data/root"
	xmlns:cmn="http://rest.bpm.ibm.com/v1/data/common">

    <import schemaLocation="Common.xsd" namespace="http://rest.bpm.ibm.com/v1/data/common"/>
    <import schemaLocation="BPMRestData.xsd" namespace="http://rest.bpm.ibm.com/v1/data/root"/>

    <!--
	This type represents a service model.
    -->
    <complexType name="ServiceModel">
	<complexContent>
	    <extension base="pref:Data">
		<sequence>

		    <!-- This field corresponds to the "header" part of the service model -->
		    <element name="header" type="tns:Header"/>

		    <!-- This field corresponds to the "diagram" part of the service model -->
		    <element name="diagram" type="tns:Diagram"/>

		    <!-- This field corresponds to the "dataModel" part of the service model -->
		    <element name="dataModel" type="tns:DataModel"/>
		</sequence>
	    </extension>
	</complexContent>
    </complexType>

    <complexType name="Header">
	<sequence>

	    <!-- The unique ID of the service -->
	    <element name="UUID" type="string" />
	    
	    <!-- The type of the service -->
	    <element name="type" type="string" />
	    
	    <!-- The name of the service -->
	    <element name="name" type="string" />

	    <!-- The description of the service -->
	    <element name="description" type="string" />
	    <element name="richDescription" type="string" />
	    
	    <!-- The snapshot ID of the service -->
	    <element name="snapshotId" type="string" />
	    
	    <!-- Warning -->
	    <element name="warning" type="string" />

	    <!-- not used -->
	    <element name="startTaskURL" type="string" />

	    <!-- not used -->
	    <element name="startServiceURL" type="string" />
	</sequence>
    </complexType>


    <complexType name="Diagram">
	<sequence>

	    <!-- The list of steps associated with the service -->
	    <element name="step" type="tns:ServiceStep" minOccurs="0" maxOccurs="unbounded" />
	</sequence>
    </complexType>

    <complexType name="DataModel">
	<sequence>

	    <!-- The variables (properties) associated with the service
	         The key is the name of the property.
	         The value containing a description of the property:
	            * type (name of the type)
	            * isList
	            * description
	            * richDescription
	    -->
	    <element name="properties" type="cmn:Map" />

	    <!-- The input variables associated with the service
	         The key is the name of the variable.
	         The value containing a description of the parameter:
	            * type (name of the type)
	            * isList
	            * description
	            * richDescription
	    -->
	    <element name="inputs" type="cmn:Map" />

	    <!-- The output variables associated with the service
	         The key is the name of the variable.
	         TThe value containing a description of the parameter:
	            * type (name of the type)
	            * isList
	            * description
	            * richDescription
	    -->
	    <element name="outputs" type="cmn:Map" />

        <!-- Detailed information about the types referenced by the service.
             Each type referenced above and nested types are described.
	         The key is the name of the type.
	         The value is an map of information about the type  Here are some of the fields:
	            * ID, pattern, properties, isShared, options, min, max, description, fixedLength
	    -->
	    <!-- A structure explaining the data model of the service -->
	    <element name="validation" type="cmn:Map" />
	</sequence>
    </complexType>

    <!--
	This type represents a step associated with a service.
    -->
    <complexType name="ServiceStep">
	<sequence>

	    <!-- The step ID -->
	    <element name="ID" type="string" />

	    <!-- The step name -->
	    <element name="name" type="string" />

	    <!-- The X, Y coordinate of the center point of the step within the diagram -->
	    <element name="x" type="int" />
	    <element name="y" type="int" />

	    <!-- The step type -->
	    <element name="type" type="string" />
	    
	    	    
	    <!-- Web Service Integration Data -->
	    <element name="data" type="tns:WSIntegrationData" />

	    <!-- The set of lines extending out from this step within the diagram -->
	    <element name="lines" type="tns:ServiceStepLines" />
	</sequence>
    </complexType>
    
    <!-- 
	 This type represents webservices integration data
    -->
    <complexType name="WSIntegrationData">
	<sequence>
	    <element name="wsdlURI" type="string" />
	    <element name="serviceName" type="string" />
	    <element name="portName" type="string" />
	    <element name="operationName" type="string" />
	    <element name="isProtectedWSDL" type="boolean" />
        <element name="isOverrideEndpointAddress" type="boolean" />
        <element name="endpointAddressURL" type="string" />
	</sequence>
    </complexType>
    
    <!-- 
	 This type represents a set of lines associated with a service step
    -->
    <complexType name="ServiceStepLines">
	<sequence>
	    <element name="stepLine" minOccurs="0" maxOccurs="unbounded" type="tns:ServiceStepLine" />
	</sequence>
    </complexType>

    <!--
	This type represents a single line associated with a service step
    -->
    <complexType name="ServiceStepLine">
	<sequence>

	    <!-- The ID of the step to which this line extends -->
	    <element name="to" type="string" />

	    <!-- 
		 A string containing a comma-separated list of coordinates through which this line extends.
		 The list of points must contain the first point (coordinate of the "fromPort") 
		 and the last point (coordinate of the "toPort").
	    -->
	    <element name="points" type="string" />
	</sequence>
    </complexType>
    
    
    <!--
	This type contains information related to a running service
    -->
    <complexType name="ServiceRunModel">
	<complexContent>
	    <extension base="pref:Data">
		<sequence>

		    <!-- The status of the service; values: "end" "coach", "error", "debug" -->
		    <element name="serviceStatus" type="string" />

		    <!-- 
			 The ID of the running service or task instance.
			 This is the ID to be used when resuming the service or task.
		    -->
		    <element name="key" type="string" />

		    <!-- The ID of the current step within the context of the running service -->
		    <element name="step" type="string" />

		    <!-- The data (symbol table) associated with the running service -->
		    <element name="data" type="anyType" />

		    <!-- If the service status is "coach", this field contains the coach XML data -->
		    <element name="coach" type="string" />

		    <!-- If the service status is "coach", this field contains a Map of evaluated coach values -->
		    <element name="coachEvals" type="cmn:Map" />

		    <!-- If the service status is "coach", this field contains a list of available actions (end point) -->
		    <element name="actions" type="string" minOccurs="0" maxOccurs="unbounded" />
		    
		     <!-- If the service status is "coach", this field contains a map of actions and associated labels -->
		    <element name="actionsMap" type="cmn:Map" />
		    
		</sequence>
	    </extension>
	</complexContent>
    </complexType>
    
    <complexType name="CoachEval">
        <sequence>
            <element name="ID" type="string" />
	    <element name="value" type="string" />
        </sequence>
    </complexType>
    
    
    <!--    
	 This type represents a list of currently running services
    -->
    <complexType name="CurrentlyRunning">
    	<complexContent>
	    <extension base="pref:Data">
		<sequence>

		    <!-- A list of keys of services that are currently running for the current user -->
		    <element name="instanceIDs" type="string" minOccurs="0" maxOccurs="unbounded" />
		</sequence>
	    </extension>
        </complexContent>
    </complexType>
    

    <!--
	This type represents the result obtained from evaluating a javascript expression
	within the context of a currently running service
    -->
    <complexType name="Result">
    	<complexContent>
	    <extension base="pref:Data">
		<sequence>
		    <element name="result" type="string" minOccurs="0" maxOccurs="1" />
		    <!--
		     Data information stored in an actual Map
		    -->
		    <element name="resultMap" type="cmn:Map" minOccurs="0"/>
		</sequence>
	    </extension>
        </complexContent>
    </complexType>
    
</schema>
+ View example content
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<bpm:ResponseData xmlns:bpm='http://rest.bpm.ibm.com/v1/data'>
  <status>200</status>
  <data xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:svc='http://rest.bpm.ibm.com/v1/data/service' xsi:type='svc:ServiceRunModel'>
    <serviceStatus>coach</serviceStatus>
    <key>@1</key>
    <step>Create job requisition</step>
    <data xsi:type='cmn:Map' xmlns:cmn='http://rest.bpm.ibm.com/v1/data/common'>
      <item key='instanceId' />
      <item key='currentPosition'>
        <value xsi:type='cmn:Map'>
          <item key='replacement'>
            <value xsi:type='cmn:Map' />
          </item>
        </value>
      </item>
      <item key='requisition'>
        <value xsi:type='cmn:Map'>
          <item key='instanceId' />
          <item key='date'>
            <value xmlns:ns6='http://www.w3.org/2001/XMLSchema' xsi:type='ns6:string'>2011-04-28T18:19:52Z</value>
          </item>
        </value>
      </item>
    </data>
    <coach>&lt;Form xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
  &lt;FormTitle&gt;Create Job Requisition&lt;/FormTitle&gt;
  &lt;Layout&gt;
    &lt;Visibility /&gt;
    &lt;Section columns=&quot;1&quot;&gt;
      &lt;SectionTitle visible=&quot;true&quot;&gt;Job Requisition Information&lt;/SectionTitle&gt;
      &lt;Row rows=&quot;1&quot;&gt;
        &lt;Column&gt;
          &lt;Control col=&quot;1&quot; colspan=&quot;1&quot; id=&quot;Section0&quot; row=&quot;1&quot; rowspan=&quot;1&quot;&gt;
            &lt;Visibility /&gt;
            &lt;Section binding=&quot;tw.local.requisition&quot; columns=&quot;1&quot;&gt;
              &lt;SectionTitle visible=&quot;false&quot;&gt;Requisition&lt;/SectionTitle&gt;
              &lt;Row rows=&quot;1&quot;&gt;
                &lt;Column&gt;
                  &lt;Control col=&quot;1&quot; colspan=&quot;1&quot; id=&quot;section2&quot; row=&quot;1&quot; rowspan=&quot;1&quot;&gt;
                    &lt;Section columns=&quot;2&quot;&gt;
                      &lt;SectionTitle id=&quot;sectionTitle&quot; visible=&quot;false&quot;&gt;Section Title&lt;/SectionTitle&gt;
                      &lt;Row rows=&quot;5&quot;&gt;
                        &lt;Column width=&quot;50%&quot;&gt;
                          &lt;Control col=&quot;1&quot; colspan=&quot;1&quot; id=&quot;InputText3&quot; row=&quot;1&quot; rowspan=&quot;1&quot;&gt;
                            &lt;Visibility /&gt;
                            &lt;InputText binding=&quot;tw.local.requisition.reqNum&quot;&gt;
                              &lt;Label visible=&quot;true&quot;&gt;Requisition number:&lt;/Label&gt;
                            &lt;/InputText&gt;
                          &lt;/Control&gt;
                          &lt;Control col=&quot;1&quot; colspan=&quot;1&quot; id=&quot;InputText2&quot; row=&quot;2&quot; rowspan=&quot;1&quot;&gt;
                            &lt;InputText binding=&quot;tw.local.requisition.requestor&quot;&gt;
                              &lt;Label visible=&quot;true&quot;&gt;Hiring manager:&lt;/Label&gt;
                            &lt;/InputText&gt;
                          &lt;/Control&gt;
                          &lt;Control col=&quot;1&quot; colspan=&quot;1&quot; id=&quot;InputText1&quot; row=&quot;3&quot; rowspan=&quot;1&quot;&gt;
                            &lt;Visibility default=&quot;required&quot; overrideParentVisibility=&quot;true&quot; /&gt;
                            &lt;SingleSelect binding=&quot;tw.local.requisition.status&quot;&gt;
                              &lt;Label visible=&quot;true&quot;&gt;Employment status:&lt;/Label&gt;
                              &lt;StaticOption value=&quot;&quot;&gt;--Select a status--&lt;/StaticOption&gt;
                              &lt;StaticOption value=&quot;Full time&quot;&gt;Full time&lt;/StaticOption&gt;
                              &lt;StaticOption value=&quot;Part time&quot;&gt;Part time&lt;/StaticOption&gt;
                              &lt;StaticOption value=&quot;Contract&quot;&gt;Contract&lt;/StaticOption&gt;
                              &lt;BasedOn type=&quot;None&quot; /&gt;
                              &lt;VisualDropDown /&gt;
                            &lt;/SingleSelect&gt;
                          &lt;/Control&gt;
                          &lt;Control col=&quot;1&quot; colspan=&quot;1&quot; id=&quot;InputText8&quot; row=&quot;4&quot; rowspan=&quot;1&quot;&gt;
                            &lt;Visibility default=&quot;required&quot; overrideParentVisibility=&quot;true&quot; /&gt;
                            &lt;SingleSelect binding=&quot;tw.local.requisition.location&quot;&gt;
                              &lt;Label visible=&quot;true&quot;&gt;Location:&lt;/Label&gt;
                              &lt;StaticOption value=&quot;&quot;&gt;--Select a location--&lt;/StaticOption&gt;
                              &lt;StaticOption value=&quot;Boston&quot;&gt;Boston&lt;/StaticOption&gt;
                              &lt;StaticOption value=&quot;Austin&quot;&gt;Austin&lt;/StaticOption&gt;
                              &lt;StaticOption value=&quot;Atlanta&quot;&gt;Atlanta&lt;/StaticOption&gt;
                              &lt;BasedOn type=&quot;None&quot; /&gt;
                              &lt;VisualDropDown /&gt;
                            &lt;/SingleSelect&gt;
                          &lt;/Control&gt;
                          &lt;Control col=&quot;1&quot; colspan=&quot;1&quot; id=&quot;InputText4&quot; row=&quot;5&quot; rowspan=&quot;1&quot;&gt;
                            &lt;Visibility default=&quot;required&quot; overrideParentVisibility=&quot;true&quot; /&gt;
                            &lt;SingleSelect binding=&quot;tw.local.currentPosition.positionType&quot;&gt;
                              &lt;Label visible=&quot;true&quot;&gt;Position type:&lt;/Label&gt;
                              &lt;StaticOption value=&quot;&quot;&gt;--Select a position type--&lt;/StaticOption&gt;
                              &lt;StaticOption value=&quot;New&quot;&gt;New&lt;/StaticOption&gt;
                              &lt;StaticOption value=&quot;Existing&quot;&gt;Existing&lt;/StaticOption&gt;
                              &lt;BasedOn type=&quot;None&quot; /&gt;
                              &lt;VisualDropDown /&gt;
                            &lt;/SingleSelect&gt;
                          &lt;/Control&gt;
                        &lt;/Column&gt;
                        &lt;Column width=&quot;50%&quot;&gt;
                          &lt;Control col=&quot;2&quot; colspan=&quot;1&quot; id=&quot;DateSelector0&quot; row=&quot;1&quot; rowspan=&quot;1&quot;&gt;
                            &lt;OutputText binding=&quot;tw.local.requisition.date&quot;&gt;
                              &lt;Label visible=&quot;true&quot;&gt;Date:&lt;/Label&gt;
                              &lt;BasedOn /&gt;
                            &lt;/OutputText&gt;
                          &lt;/Control&gt;
                          &lt;Control col=&quot;2&quot; colspan=&quot;1&quot; id=&quot;InputText7&quot; row=&quot;2&quot; rowspan=&quot;1&quot;&gt;
                            &lt;Visibility default=&quot;required&quot; overrideParentVisibility=&quot;true&quot; /&gt;
                            &lt;SingleSelect binding=&quot;tw.local.requisition.department&quot;&gt;
                              &lt;Label visible=&quot;true&quot;&gt;Department:&lt;/Label&gt;
                              &lt;StaticOption value=&quot;&quot;&gt;--Select a department--&lt;/StaticOption&gt;
                              &lt;StaticOption value=&quot;Finance&quot;&gt;Finance&lt;/StaticOption&gt;
                              &lt;StaticOption value=&quot;Products&quot;&gt;Products&lt;/StaticOption&gt;
                              &lt;StaticOption value=&quot;Marketing&quot;&gt;Marketing&lt;/StaticOption&gt;
                              &lt;StaticOption value=&quot;Sales&quot;&gt;Sales&lt;/StaticOption&gt;
                              &lt;StaticOption value=&quot;Customer Service&quot;&gt;Customer Service&lt;/StaticOption&gt;
                              &lt;BasedOn type=&quot;None&quot; /&gt;
                              &lt;VisualDropDown /&gt;
                            &lt;/SingleSelect&gt;
                          &lt;/Control&gt;
                          &lt;Control col=&quot;2&quot; colspan=&quot;1&quot; id=&quot;InputText10&quot; row=&quot;3&quot; rowspan=&quot;1&quot;&gt;
                            &lt;InputText binding=&quot;tw.local.requisition.empNum&quot;&gt;
                              &lt;Label visible=&quot;true&quot;&gt;Number of employees needed:&lt;/Label&gt;
                            &lt;/InputText&gt;
                          &lt;/Control&gt;
                          &lt;Control col=&quot;2&quot; colspan=&quot;1&quot; id=&quot;InputText5&quot; row=&quot;4&quot; rowspan=&quot;1&quot;&gt;
                            &lt;InputText binding=&quot;tw.local.currentPosition.jobTitle&quot;&gt;
                              &lt;Label visible=&quot;true&quot;&gt;Job title:&lt;/Label&gt;
                            &lt;/InputText&gt;
                          &lt;/Control&gt;
                          &lt;Control col=&quot;2&quot; colspan=&quot;1&quot; id=&quot;bg0&quot; row=&quot;5&quot; rowspan=&quot;1&quot;&gt;
                            &lt;ButtonGroup&gt;
                              &lt;Label visible=&quot;true&quot; /&gt;
                              &lt;Button decisionPoint=&quot;true&quot; id=&quot;ok&quot;&gt;
                                &lt;Label&gt;Next &amp;gt;&amp;gt;&lt;/Label&gt;
                              &lt;/Button&gt;
                            &lt;/ButtonGroup&gt;
                          &lt;/Control&gt;
                        &lt;/Column&gt;
                      &lt;/Row&gt;
                    &lt;/Section&gt;
                  &lt;/Control&gt;
                &lt;/Column&gt;
              &lt;/Row&gt;
            &lt;/Section&gt;
          &lt;/Control&gt;
        &lt;/Column&gt;
      &lt;/Row&gt;
    &lt;/Section&gt;
  &lt;/Layout&gt;
&lt;/Form&gt;</coach>
    <coachEvals />
    <actions>bg0_ok</actions>
    <actionsMap xsi:type='cmn:Map' xmlns:cmn='http://rest.bpm.ibm.com/v1/data/common'>
      <item key='bg0_ok'>
        <value xmlns:ns6='http://www.w3.org/2001/XMLSchema' xsi:type='ns6:string'>Ok</value>
      </item>
    </actionsMap>  
  </data>
</bpm:ResponseData>

MIME type: application/x-javascript

Error Response content

Detailed error information.

The default content type is application/json.

MIME type: application/json


+ View schema
{  "description": "WLE Error Response", 
   "type": "object",
   "properties":
   {  "status": {"type": "string",
         "description": "The status of the previous API call."
      },
      "exceptionType": {"type": "string",
         "description": "The classname associated with the exception."
      },
      "errorNumber": {"type": "string",
         "description": "Message ID of the exception."
      },
      "errorMessage": {"type": "string",
         "description": "Message text of the exception."
      },
      "errorMessageParameters": {"type": ["string"], "optional": true,
         "description":"Message text parameters of the exception."
      },
      "programmersDetails": {"type": "object", "optional": true,
         "description":"Additional exception details, for example, a stack trace."
      }
   }
} 

MIME type: application/xml


+ View schema
<?xml version="1.0" encoding="UTF-8"?>
<schema targetNamespace="http://rest.bpm.ibm.com/v1/data/exception"
	elementFormDefault="unqualified" xmlns="http://www.w3.org/2001/XMLSchema"
	xmlns:tns="http://rest.bpm.ibm.com/v1/data/exception"
	xmlns:dat="http://rest.bpm.ibm.com/v1/data/root">

    <import schemaLocation="BPMRestData.xsd" namespace="http://rest.bpm.ibm.com/v1/data/root" />
    
    <!--
	This type represents an error response.
    -->    
    <element name="RestRuntimeException">
	<complexType>
	    <sequence>
		<element name="status" type="string"/>
		<element name="Data" type="tns:ExceptionData">
    		</element>
	    </sequence>
	</complexType>
    </element>

    <!-- 
	 This type contains detailed error information associated with an exception.
    -->
    <complexType name="ExceptionData">
	<sequence>
	    <element name="status" type="string"/>

	    <!-- This specifies the java class name of the exception -->
	    <element name="exceptionType" type="string"/>

	    <!-- The message ID of the error message -->
	    <element name="errorNumber" type="string" minOccurs="0"/>

	    <!-- The complete error message -->
	    <element name="errorMessage" type="string"/>

	    <!-- The list of strings inserted into the error message -->
	    <element name="errorMessageParameters" type="string" minOccurs="0" maxOccurs="unbounded"/>

	    <!-- 
		 The stacktrace associated with the exception.
		 Note that this will be omitted unless the "server-stacktrace-enabled" property
		 is enabled in the server's 100Custom.xml file.
	    -->     
	    <element name="programmersDetails" type="string"></element>
	    
	    <!-- Prior responses.  Set if a bulk command was used -->
	    <element name="responses" type="dat:BulkCommandResponses" minOccurs="0"></element>
	</sequence>
    </complexType>
</schema>

MIME type: application/x-javascript

Status codes

The method returns one of the following status codes:
CodeDescription
200 OKSuccess completion.
400 Bad RequestThe parameters are not valid or they are missing.
401 UnauthorizedThe caller is not authorized for this request.
404 Not Found
The service model does not exist.
406 Not AcceptableThe requested content type or content encoding is not supported.
500 Internal Server ErrorA severe problem has occurred, programmer's details are provided.

Available since

7.5.0

Parent Topic: Service Resource