Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

creating worker / running experimants without using the jatos GUI

Hi, first thank you for helping us bring our experiments online.

Currently I have a running jatos server and several experiments

working on the server.

I need to find a way to start an experiment without creating

first a specific worker,

For example, I have a participant with a personal ID number of

"123456"

Can I communicate with the server and run an experiment with

worker ID "123456" without creating the worker first?

I hope I explained the problem

Thank you

Dror

Comments

  • Hi Dror,

    I think I understand what you want to achieve. In JATOS lingo: you don't want pre-created workers but create them on the fly when the participant clicks on some link. There are three worker types that are created on-the-fly: General Single, General Multiple, and MTurk. Then the worker ID you can pass on via URL query parameters and access them during the study run form JavaScript with jatos.urlQueryParameters .

    E.g. I have a study and the link that starts General Single runs is: https://experiments.jatos.org/publix/1/start?batchId=1&generalSingle

    You or your participants can use this link multiple times. But you can add the worker ID as an additional URL query parameter to individualize it: https://experiments.jatos.org/publix/1/start?batchId=1&generalSingle&myWorkerId=12345678

    I named the worker ID myWorkerId to make it clear that there is already an internal, independent workerId in JATOS (you can access it via jatos.workerId).

    Then in your study's JS code you can get the jatos.urlQueryParameters.myWorkerId and e.g. put it in the result data so you can later on identify this participant.

    Hint: all three worker types (General Single, General Multiple, and MTurk) are deactivated by default because they have no limitation in the number of participants. You have to activate them in Worker & Batch Manager by clicking on the checkbox in their line.

    Best,

    Kristian

  • thank you kristian

    This is exactly what I need

    Dror

Sign In or Register to comment.