IMPORTANT: Questionmark recommendeds using the Delivery Odata API (click here for documentation) for new integrations, not the QMWISe API. Although we currently continue to issue maintenance updates to this API to support customers with current QMWISe-based integrations, we are no longer adding new methods/functionality to QMWISe. 

CreateAssessmentResult

Applies to the following products: 
Questionmark OnDemand
Questionmark Perception
Questionmark OnPremise
Applies to the following Perception versions: 
Perception 5.7

This method creates a new result from the information supplied and returns the result ID of the new result. The new result is stored in the A_Result table of the repository database.

The information supplied may include feedback, in which case:

  • A new record will be created in the A_ScoreBand table of the repository database
  • The new score band ID will be written to the A_Result record

The information supplied may also include a list containing of one or more sets of topic scoring information, in which case:

  • A record will be created in the A_ScoreBand table of the repository database for each set for each set of topic information
  • A record will be created in the the A_TopicScore table of the repository database for each set for each set of topic information

In addition, the information supplied may also include a list containing of one or more sets of answer information, in which case:

  • A new record will be created in the A_Answer table of the database for each set of answer information
  • If the set of answer information contains a comment:
    • A new record will be created in the A_Comment table of the repository database
    • The new comment ID will be written to the A_Answer record

The only information that must be provided is:

  • The assessment ID of the assessment to which the result applies
  • The name of the participant who achieved the result
  • The maximum possible score of all the questions in the question blocks that were used
  • The participants actual score for the assessment
  • The participants percentage score for the assessment

A SOAP fault message will be returned if a database error occurs at any point during processing the list.

With this method, the database field A_Result. Course is set to blank.

 

Available in:
  • Version 4.1 +
  • Version 5.1 +

Parameters

Input name     Description Data type Optional field?

AssessmentResult

 

 

 

 

 

 

Result_ID

 

This is ignored

String

Y

 

Assessment_ID

 

The unique assessment ID for the assessment to which the new result applies

String

Y

 

Write_Answer_Data

 

This indicates whether there is any information in the AnswerList below (defaults to the FALSE if not set)

Boolean

Y

 

Participant

 

The participant name of the participant who achieved the new result

String

N

 

Member_Group

 

The group name of the group that the participant who achieved the new result is a member of (defaults to blank if not set)

String

Y

 

Participant_Details

 

The participant details for the participant who achieved the new result (defaults to blank if not set)

String

Y

 

Hostname

 

Hostname of participant (if available) at the start of the session.

String

Y

 

IP_Address

 

IP address of participant (if available) at the start of the session.

String

Y

 

Still_Going

 

This indicates whether or not the assessment to which the new result applies is still active (defaults to FALSE if not set)

Boolean

Y

 

Status

 

The status of the assessment to which the new result applies:

0 - Started 1 - Running 2 - Finished 3 - Expired 4 - Timed out 5 - Quit (defaults 0 - Started if not set)

Short

Y

 

Feedback

 

Indicates whether there is any feedback for the assessment to which the new result applies:

0 - No feedback given 1 - Some feedback given

(defaults is 0 - No feedback given)

Short

Y

 

Number_Sections

 

The number of question blocks in the assessment to which the new result applies (defaults to 0 if not set)

Short

Y

 

Max_Score

 

The maximum possible score for the assessment to which the new result applies

Integer

N

 

Total_Score

 

The actual score for the assessment to which the new result applies

Integer

N

 

Special_1 to 10

 

These parameters contain information specific to the outcome of the questions in the assessment to which the new result applies (each one defaults to blank if not set)

String

Y

 

Time_Taken

 

The time taken, in seconds, between the start and end of the assessment to which the new result applies, should be set to 0 if the assessment is still active (defaults to 0 if not set)

Integer

Y

 

Score_Band_Title

 

The title of the assessment outcome relevant to the assessment to which the new result applies (defaults to blank if not set)

String

Y

 

Score_Band_Number

 

The number of the assessment outcome relevant to the assessment to which the new result applies (defaults to 0 if not set)

Integer

Y

 

Perceptage_Score

 

The percentage score for the assessment to which the new result applies

Short

N

 

Schedule_Name

 

The name of the schedule related to the assessment to which the new result applies (defaults to blank if not set)

String

Y

 

Monitored

 

This indicates whether the assessment to which the new result applies is monitored (defaults to FALSE if not set)

Integer

Y

 

Monitor_Name

 

If the assessment to which the new result applies is monitored, this contains the name of the proctor or invigilator who performs the assessment monitoring (defaults to blank if not set)

String

Y

 

TopicScoringList (may appear several times)

 

This parameter (if used) is in the form of sets of topic information, as detailed below

 

Y

 

 

Topic_ID

The unique topic ID of the topic or subtopic that a question in the assessment to which the new result applies was selected from (required each time TopicScoringList is used, optional if TopicScoringList is not used)

String

Y

 

 

Topic_Name

The topic name of the topic or subtopic that a question in the assessment to which the new result applies was selected from (required each time TopicScoringList is used, optional if TopicScoringList is not used)

String

N

 

 

Description

A description or comment for a topic or subtopic in the assessment to which the new result applies (defaults to blank if not set)

String

Y

 

 

Percentage_Score

The percentage score for a topic or subtopic in the assessment to which the new result applies (required each time TopicScoringList is used, optional if TopicScoringList is not used)

Double

N

 

 

Maximum_Score

The greatest attainable score for a topic or subtopic in the assessment to which the new result applies (required each time TopicScoringList is used, optional if TopicScoringList is not used)

Integer

N

 

 

Num_Questions

The number of questions presented for a topic or subtopic in the assessment to which the new result applies (required each time TopicScoringList is used, optional if TopicScoringList is not used)

Integer

N

 

When_Started

 

The date on which the new result is created (defaults to the current date if not set)

String

Y

 

Session_Last_Modified

 

The date on which the assessment to which the new result applies was last modified (defaults to the current date if not set)

String

Y

 

When_Finished

 

The date on which the assessment to which the new result applies finished, or when it was last updated if it is still going (defaults to the current date if not set)

String

Y

 

Feedback

 

The feedback given by the assessment outcome relevant to the assessment to which the new result applies (defaults to blank if not set)

String

Y

 

AnswerList

(may occur several times)

 

This parameter (if used) is in the form of sets of answer information, as detailed below

 

N

 

 

Question_ID

The question ID of a question in the assessment to which the new result applies (required each time AnswerList is used, optional if TopicScoringList is not used)

String

Y

 

 

Revision

The revision number of a question in the assessment to which the new result applies (defaults to 1 if not set)

Integer

N

 

 

Occurrence

If the same question appears in the assessment to which the new result applies more than once, this is the questions Occurrence number (defaults to 1 if not set)

Short

Y

 

 

Topic_Name

The topic name of the topic or subtopic that a question in the assessment to which the new result applies was selected from (required each time AnswerList is used, optional if TopicScoringList is not used)

String

N

 

 

Block_Number

The number of the question block for a question in the assessment to which the new result applies (required each time AnswerList is used, optional if TopicScoringList is not used)

Short

N

 

 

Question_Number

The number the participant sees for a question in the assessment to which the new result applies (required each time AnswerList is used, optional if TopicScoringList is not used)

Short

N

 

 

Status

The status of a question in the assessment to which the new result applies:

0 - Normal 1 - Retired 2 - Incomplete

(defaults to 0 if not set)

Short

Y

 

 

Times_Answered

The number of times that a question in the assessment to which the new result applies was answered (defaults to 1 if not set)

Short

Y

 

 

Max_Score

The greatest attainable score for a question in the assessment to which the new result applies (required each time AnswerList is used, optional if TopicScoringList is not used)

Integer

N

 

 

Actual_Score

The actual score attained for a question in the assessment to which the new result applies (required each time AnswerList is used, optional if TopicScoringList is not used)

Integer

N

 

 

Know_Time_Taken

This indicates whether the Time_Taken to answer a question in the assessment to which the new result applies is known (defaults to FALSE if not set)

Boolean

Y

 

 

Time_Taken

The number of seconds that the participant took to answer a question in the assessment to which the new result applies (defaults to 0 if not set)

Integer

Y

 

 

Number_Outcomes

The number of distinct question outcomes available for a question in the assessment to which the new result applies (defaults to 0 if not set)

Short

Y

 

 

Outcome_Number

The number of the question outcome first selected for a question in the assessment to which the new result applies (defaults to 0 if not set)

Short

Y

 

 

Outcome_Exponential

For a question in the assessment to which the new result applies, this is calculated as follows:

  1. For each question outcome, find the question outcome number and call it n
  2. For each question outcome, calculate the value of the exponential 2(n-1)
  3. Add together all of the exponentials calculated for the question outcomes to give the Outcome_Exponential

This field is only calculated when there are not more than 32 outcomes (defaults to 0 if not set)

Integer

Y

 

 

Answer_Truncated

This is the first 50 characters of the answer to a question in the assessment to which the new result applies (defaults to blank if not set)

String

Y

 

 

Answer_Full

This is the complete answer to a question in the assessment to which the new result applies (defaults to blank if not set)

String

Y

 

 

Comment

This is the comment entered by a participant for a question in the assessment to which the new result applies (defaults to blank if not set)

String

Y

Response

Output name Description Data type

Result_ID

The Result_ID for the information that was entered

String

Troubleshooting

Please refer to the following page for any error codes that are displayed when using this method.

Appendix - Error codes