> For the complete documentation index, see [llms.txt](https://docs.theconfigteam.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.theconfigteam.com/prebilt-ewm/user/games/challenges.md).

# Challenges

A Challenge is similar to a Competition, but is associated with the individual participant only.

{% hint style="info" %}
**Example**

A personal Challenge is achieved when the participant picks 5000 cartons.
{% endhint %}

A Challenge has one or multiple *Levels*. These Levels allow the Challenge to gradually increase in difficulty.

{% hint style="info" %}
**Example**

Entry Level is reached after the first pick, Beginner Level is reached at 500 cartons, Intermediate at 1000 cartons, and so on…
{% endhint %}

When a Challenge Level is reached, the participant will be presented with a Trophy. Like Medals, a Trophy can also have a reward associated with it, determined by the game organiser.

Defining a new Challenge involves maintaining the following objects:

* A Participation Type which is used to define whether the Challenge is automatically available to all users, manually assigned to a user, or manually selected by an applicable user.
* A Metric configuration which defines what the Challenge will be evaluating.
* One or multiple Levels, each with a unique Goal at which point the sub-Challenge finishes and a Trophy is awarded to the user.
* The Timeframe during which the Challenge is valid. This can either be open ended or defined within a specific start and end period.

## Create a new challenge

{% embed url="<https://www.youtube.com/watch?v=zpuM3nHeYfs>" %}

From the EWM warehouse monitor, double click on node `Games > Challenges` and click on **Execute** in the selection popup:

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-1e7bb4a37e2ee7a1601835e41440899631bc2d89%2Fimage%20(205).png?alt=media" alt=""><figcaption></figcaption></figure>

From the Challenges report toolbar, click on `More Methods > Create Challenge`:

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-e559d763d979cef5fa283f29e99ae6cd82a10725%2Fimage%20(206).png?alt=media" alt=""><figcaption></figcaption></figure>

Enter the following fields for the new Challenge and click on OK:

<table data-header-hidden><thead><tr><th width="218">Field</th><th>Use</th></tr></thead><tbody><tr><td><strong>Field</strong></td><td><strong>Use</strong></td></tr><tr><td>Challenge Title</td><td>Short game description</td></tr><tr><td>Challenge Description</td><td>Long game description</td></tr><tr><td>Participation Type</td><td><p>Controls which participants are applicable for the challenge:</p><p>· AUTO - Available for all users</p><p>· PROMPT - Ask applicable participants to join from the PreBilt app.</p><p>· MANUAL - Manual selection of participants</p></td></tr><tr><td>Game Metric</td><td>Currently only WTCONF (confirmed warehouse tasks) is supported</td></tr></tbody></table>

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-c2f8e7fca9cef8a1f2e518f9ba1d83b5739f2c4b%2Fimage%20(207).png?alt=media" alt=""><figcaption></figcaption></figure>

The Challenge is created with a new ID and status PREPPING:

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-77cb36f9f19f9dc7206cbe2719cec925a2f341b8%2Fimage%20(208).png?alt=media" alt=""><figcaption></figcaption></figure>

### Configure the metric

{% embed url="<https://www.youtube.com/watch?v=JxpoZMH_098>" %}

The Metric defines what the Challenge will be evaluating, based on warehouse task attributes.

Highlight the Challenge and click on the Configure Metric button:

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-4131a0f7192de0a435d622f78bf13545b59092ce%2Fimage%20(209).png?alt=media" alt=""><figcaption></figcaption></figure>

A popup is displayed to define the Metric filters and the Goal’s score calculation.

In the metric filters, enter the warehouse task attributes that you want the system to track for the game.

{% hint style="info" %}
**Example**

Your Challenge is only focusing on picking tasks (WPT 2010) where the source storage type is RK01.
{% endhint %}

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-68d52751f79e53bd5658e1565133efc1d91f0280%2FEWM-configure%20metric%2002.png?alt=media" alt=""><figcaption></figcaption></figure>

In the Goals section, enter the following fields:

<table data-header-hidden><thead><tr><th width="201"></th><th></th></tr></thead><tbody><tr><td>Field</td><td>Use</td></tr><tr><td>Score Calculation</td><td><p>Defines how the system tracks scores:</p><p>· 1 – Each confirmed task is a score point</p><p>· 2 – Score points are based on confirmed quantity</p></td></tr><tr><td>Game Metric Unit</td><td>Free text to indicate the Metric unit. This is displayed in game scores in the warehouse monitor and the PreBilt app.</td></tr></tbody></table>

{% hint style="info" %}
**Example**

The Challenge will track score based on confirmed task quantity (Score Calculation = 2) and the Metric unit will be ‘Cases’ because only full cases are picked from RK01.
{% endhint %}

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-dc4cda4f8b468297e04ef318d771de1518b9e2f4%2FEWM-configure%20metric%2003.png?alt=media" alt=""><figcaption></figcaption></figure>

Click on the Execute button. The Metric Ok? column is flagged:

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-7327634272b6c611331c3841ea1bc01f1f4cf4c3%2Fimage%20(210).png?alt=media" alt=""><figcaption></figcaption></figure>

### Define levels

{% embed url="<https://www.youtube.com/watch?v=jWRj1PKAayE>" %}

A Challenge can have one or multiple Levels, each with a unique Goal at which point the Challenge finishes and a Trophy is awarded to the participant.

To create a Level, highlight the Challenge and click on the Add Level button:

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-468dc02df7d6bba650ded538426cb0ec38d794bb%2Fimage%20(212).png?alt=media" alt=""><figcaption></figcaption></figure>

A popup is displayed to define the Level. Enter the following fields and click on OK:

<table data-header-hidden><thead><tr><th width="217"></th><th></th></tr></thead><tbody><tr><td>Field</td><td>Use</td></tr><tr><td>Level Number</td><td>Freely definable Level number</td></tr><tr><td>Level Title</td><td>Short Level description</td></tr><tr><td>Level Description</td><td>Additional Level description</td></tr><tr><td>Rewards Exists</td><td>(Optional) Activate checkbox if a reward will be given to the participant when the Level is reached</td></tr><tr><td>Reward Description</td><td>(Optional) Reward description, if applicable</td></tr></tbody></table>

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-94d25c45ff39171bcf1386324e8738bd45338972%2Fimage%20(213).png?alt=media" alt=""><figcaption></figcaption></figure>

The Level is saved and the current maximum Level Number is updated against the Challenge:

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-5504eda59a97d864bb2c1670f22f91db46347a59%2Fimage%20(214).png?alt=media" alt=""><figcaption></figcaption></figure>

Highlight the Challenge and click on the Levels button, to display the newly created Level.

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-da8141b65841784794231c83e1db36b63009c46a%2Fimage%20(215).png?alt=media" alt=""><figcaption></figcaption></figure>

Highlight the Level and click on the Configure Goal button:

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-f58e2be8735a9bebf34740526a92ff336e42f8a8%2Fimage%20(216).png?alt=media" alt=""><figcaption></figcaption></figure>

Enter the Goal Threshold for this Level and click on Execute:

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-63e262e4d8c97750efc2d26676358fb7b1713de3%2FEWM-define%20levels%2006.png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Note**

Repeat the same process to create as many Levels as required in the Challenge.
{% endhint %}

### Define the timeframe

{% embed url="<https://www.youtube.com/watch?v=8VCJSaz_6-s>" %}

Highlight the Challenge and click on the Add Timeframe icon:

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-3b12fa4bf032e7e59ba8d3aac1d6fc4b9e8af1ae%2Fimage%20(217).png?alt=media" alt=""><figcaption></figcaption></figure>

Enter the start and end date/time for your Competition and click on OK. The start date/time must be in the future.

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-599a65a42fbf6fe34a2fd75c374c63fbc1e0b24b%2Fimage%20(218).png?alt=media" alt=""><figcaption></figcaption></figure>

### Add participants

{% embed url="<https://www.youtube.com/watch?v=Ef67VZGeUhs>" %}

{% hint style="info" %}
**Note**

This step is not required if the Participation Type of the Challenge is set to AUTO.
{% endhint %}

Highlight the Challenge and click on the Add Participant button:

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-571e2eed47d0e7e8e7d06cbff38378055ae228a4%2Fimage%20(219).png?alt=media" alt=""><figcaption></figcaption></figure>

A popup is displayed to add participants. Click on the Multiple Selection button to add multiple participants:

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-ce03f82fd8d2851b015532885b1c0e612ce6ab48%2Fimage%20(194).png?alt=media" alt=""><figcaption></figcaption></figure>

Enter the username of all Participants and click on Execute twice:

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-4339caa02f91160730ef3d325abf02a1d5432429%2Fimage%20(221).png?alt=media" alt=""><figcaption></figcaption></figure>

The Participants can be displayed by clicking on the Participants button against the Challenge:

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-7c27a1af4188ad1946fe126815c66fa273514d31%2Fimage%20(222).png?alt=media" alt=""><figcaption></figcaption></figure>

### Start the challenge

{% embed url="<https://www.youtube.com/watch?v=M1AupsXJJ1w>" %}

Once a Challenge is fully defined (i.e. Metric, Levels, Timeframe, Participants), click on Set to Ready button to release it.

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-5f42b3b116013e69d571f24290e72ecc58617f0c%2Fimage%20(223).png?alt=media" alt=""><figcaption></figcaption></figure>

The status changes to READY:

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-e8bdde82f9aea0dae6dec208358b02966e3688ff%2Fimage%20(224).png?alt=media" alt=""><figcaption></figcaption></figure>

Once the Challenge start time is reached, the status automatically changes to RUNNING and the system starts tracking scores for each Participant.

## Change the challenge

The Challenge header attributes can be changed by clicking on `More Methods > Change Competition`:

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-e89e3df5bf7f7bf2a858af661225e6a97a17255d%2Fimage%20(225).png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Note**

The Metric and Level Threshold can only be changed if the Challenge status is set to PREPPING.
{% endhint %}

### Set to prepping

To change the Challenge status back to PREPPING, click on `More Methods > Set to Prepping`:

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-69b23ed2bd94f0e5b9c18bafba2bbb37a9d13074%2Fimage%20(226).png?alt=media" alt=""><figcaption></figcaption></figure>

### Change the metric

{% hint style="info" %}
Note

To change the Metric, first ensure the Challenge status is set back to PREPPING.
{% endhint %}

Click on the Configure Metric button:

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-b325dcceb51b7ca2ee2cec62f7f1706168b69858%2Fimage%20(227).png?alt=media" alt=""><figcaption></figcaption></figure>

Update the Metric as required and click on Execute:

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-0cc73f0a0baee33f754200a9cbe806d54bc3a25b%2FEWM-change%20challenge%2004.png?alt=media" alt=""><figcaption></figcaption></figure>

### Change the levels

{% hint style="info" %}
**Note**

To add, change or delete a Level, first ensure the Challenge status is set back to PREPPING.
{% endhint %}

Highlight the Challenge and click on the Levels button, to display the newly created Level.

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-88d6e08a9c1c440f445522fae4afd11a7e9ab62e%2Fimage%20(232).png?alt=media" alt=""><figcaption></figcaption></figure>

To change the Goal Threshold, highlight the Level and click on the Configure Goal button:

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-4c39935a6971f35c86692f8cf621621bc7625938%2Fimage%20(233).png?alt=media" alt=""><figcaption></figcaption></figure>

Edit the Goal Threshold value and click on Execute:

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-2df0774a2c8e893acf642b365bde2832c309ed84%2FEWM-change%20challenge%2007.png?alt=media" alt=""><figcaption></figcaption></figure>

To change a Level title, description or reward, highlight the line and click on Change Level:

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-5e3c6ddfc3c6370eb446f9860193b40a8d092669%2Fimage%20(234).png?alt=media" alt=""><figcaption></figcaption></figure>

Edit the required data and click on Execute:

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-beb9002b32dd5253461d4d70f42b527aa69bfd51%2Fimage%20(235).png?alt=media" alt=""><figcaption></figcaption></figure>

To delete a Level, highlight it and click on Remove Level:

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-5c1c2ff9bf1a62bc0b5a6228b52e6a2397bb82ea%2Fimage%20(236).png?alt=media" alt=""><figcaption></figcaption></figure>

### Change the timeframe

{% hint style="info" %}
**Note**

To change or delete a Timeframe, first ensure the Challenge status is set back to PREPPING.
{% endhint %}

Highlight the Challenge and click on the Time Frames button, then click on the Change or Remove buttons.

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-1213a4e492b7fc53b6b785d4502e7044c51c1268%2Fimage%20(237).png?alt=media" alt=""><figcaption></figcaption></figure>

### Add or remove participants

To add a Participant, follow the same steps as described in [Add Participants](#add-participants).

To remove a Participant, highlight the Challenge and click on the Participants button, then highlight the required Participant and click on the Delete button.

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-b31402a5d9e6270edb75991d78c5ae0500f6d9b0%2Fimage%20(238).png?alt=media" alt=""><figcaption></figcaption></figure>

If required, a Participant’s status or score can be changed by clicking the Change Participant button.

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-9bd1447cc6024180c75018f309c7d4ebbe21b005%2Fimage%20(239).png?alt=media" alt=""><figcaption></figcaption></figure>

Update the score and/or status and click on OK:

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-c01044e949bd4649d8afae98c0b34718e154370e%2Fimage%20(240).png?alt=media" alt=""><figcaption></figcaption></figure>

### Close the challenge manually

{% embed url="<https://www.youtube.com/watch?v=-u52nokSxg8>" %}

A Challenge can be finished early if needed, by clicking on `More Methods > Set to Closed`.

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-972f390caac9000306ec3d4580370e0cd590fde5%2Fimage%20(241).png?alt=media" alt=""><figcaption></figcaption></figure>

### Delete the challenge

{% embed url="<https://www.youtube.com/watch?v=aRMpUdnehgs>" %}

A Challenge in status PREPPING can be deleted by clicking on `More Methods > Delete Challenge`:

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-739e4f028e7be4fb577feb9665945c0bd8b8b159%2Fimage%20(242).png?alt=media" alt=""><figcaption></figcaption></figure>
