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:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!--?xml version = "1.0" encoding = "UTF-8"?-->
  <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:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!--?xml version = "1.0" encoding = "UTF-8"?-->
<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>
        </resultdata>
      </result>
    </resultrecord>
  </replaceresultrequest>
</imsx_poxbody>
</imsx_poxenveloperequest>