-
Notifications
You must be signed in to change notification settings - Fork 13
Colored wackamole
The first step is to create a new task configuration for the colored wackamole
This script is the blueprint for mole positions and timing. It can be reused if needed.
This task will be used first with the configuration created on the previous step.
Usual task group, just attaching the task created on the previous step
The special part of this session configuration is the flag for recording events. It needs to be ON
Record ephemeral events
Use only when recording, this can overload the server
Add the task group created on the previous step
This execution will be saved and it will be selectable by ID. So if the intent is to record different execution styles. Each execution can be each different behavior, but there is no problem if more sessions are needed for the perfect recording, the final verison ID is the one that needs to be annotaded.
To test the recording a new session is needed.
- Session
- Task group
- Task
The task configuration can be reused.
It needs to be OFF.
Record ephemeral events
Use only when recording, this can overload the server
But the TASK needs to have two fields set:
Enable Task Replay
And
Session id:
With the ID to be tested. To be able to have the best performance it is good to have all other perpetual sessions closed
The steps for the study are the same of the testing phase. For the dynamic selection of the recorded sessions ids a survey needs to be created. The survey can have as many questions as needed, what matters for the right value to be saved an AFTER TASK WORK script must be created. The question can have any text as long as it is distinguishible in the script. Two values are required for this script to work, the field's index position (zero based). So as an example the first question is the one used, and the options are explicitly set as the color names. In this case the session ids must be changed as well.
var _teammates = JSON.parse(teammates);
var _isSoloTask = isSoloTask;
var _taskConfigurationAttributes = JSON.parse(taskConfigurationAttributes);
var _completedTaskAttributes = JSON.parse(completedTaskAttributes);
var colorSelected = "";
for(var i = 0 ; i < _completedTaskAttributes.length; i ++) {
if(_completedTaskAttributes[i].attributeName == "surveyAnswer0"){
if ( _completedTaskAttributes[i].stringValue = 'RED'){
colorSelected = "5781";//REDID
}
if ( _completedTaskAttributes[i].stringValue = 'BLUE'){
colorSelected = "5784";//GREENID
}
if ( _completedTaskAttributes[i].stringValue = 'GREEN'){
colorSelected = "5785";//BLUEID
}
}
}
//politicalOrientation
_completedTaskAttributesToAdd = [{
"attributeName": "REPLAY_SESSION_ID",
"stringValue": colorSelected
}];
sessionExecutionAttributesToAdd = JSON.stringify(_completedTaskAttributesToAdd);