Result Data Extension
This extension is used to pass data in addition to a grade when using the outcome service
Introduction
If this extension is supported the consumer sends a list of accepted data
values and the provider adds a resultData node to the result
XML sent to the consumer.
Launch Parameters
| Name | Required | Description |
|---|---|---|
| ext_outcome_data_values_accepted | yes |
Presence of this key indicates that the consumer is capable of using the resultData extension.
The value should be a comma separated list of: url, text,
or values agreed upon between consumer and provider.
|
Tool Provider Response
If the provider wants to supply these values, it can augment the POX sent with the grading value. LTI replaceResult POX
Only one type of resultData should be sent, if multiple types are sent the tool consumer behavior is undefined and is implementation-specific.
Text
Add a resultData node with a text node of plain text in the same encoding as
the rest of the document within it like this:
<?xml version = "1.0" encoding = "UTF-8"?>
<imsx_POXEnvelopeRequest xmlns="http://www.imsglobal.org/services/ltiv1p1/xsd/imsoms_v1p0">
<imsx_POXHeader>
<imsx_POXRequestHeaderInfo>
<imsx_version>V1.0</imsx_version>
<imsx_messageIdentifier>999999123</imsx_messageIdentifier>
</imsx_POXRequestHeaderInfo>
</imsx_POXHeader>
<imsx_POXBody>
<replaceResultRequest>
<resultRecord>
<sourcedGUID>
<sourcedId>3124567</sourcedId>
</sourcedGUID>
<result>
<resultScore>
<language>en</language>
<textString>0.92</textString>
</resultScore>
<!-- Added element -->
<resultData>
<text>text data for canvas submission</text>
</resultData>
</result>
</resultRecord>
</replaceResultRequest>
</imsx_POXBody>
</imsx_POXEnvelopeRequest>
URL
Add a resultData node with a url node within it like this:
<?xml version = "1.0" encoding = "UTF-8"?>
<imsx_POXEnvelopeRequest xmlns="http://www.imsglobal.org/services/ltiv1p1/xsd/imsoms_v1p0">
<imsx_POXHeader>
<imsx_POXRequestHeaderInfo>
<imsx_version>V1.0</imsx_version>
<imsx_messageIdentifier>999999123</imsx_messageIdentifier>
</imsx_POXRequestHeaderInfo>
</imsx_POXHeader>
<imsx_POXBody>
<replaceResultRequest>
<resultRecord>
<sourcedGUID>
<sourcedId>3124567</sourcedId>
</sourcedGUID>
<result>
<resultScore>
<language>en</language>
<textString>0.92</textString>
</resultScore>
<!-- Added element -->
<resultData>
<url>https://www.example.com/cool_lti_link_submission</url>
</resultData>
</result>
</resultRecord>
</replaceResultRequest>
</imsx_POXBody>
</imsx_POXEnvelopeRequest>