Skip to main content

Task Management System

When a task is selected, a Python script is executed in the background. The Python script can be freely programmed and can therefore perform any tasks. Files created by the Python script are then displayed in the web interface. The user can then download the created files or view the files in the web interface.

An example video showing how to create a shipping label based on a task:

For example, we can use this method to create personalised shipping labels that contain the customer's name. The shipping label is then passed to the Python script as an image URL and the Python script creates the shipping label with the customer's name. This saves us a lot of time as we don't have to create each shipping label manually.

Real-time synchronisation between browser windows

The Task Management System offers real-time synchronisation between browser windows. Changes made by one user in the web interface are immediately transferred to all other users. To avoid conflicts, the corresponding input fields are blocked for other users.

Configuration of a task

A configuration file must be created for each task that is to be executed via the web interface. This configuration file contains all the information required to run the task. The configuration file specifies which parameters are required to execute the Python script and which options are available for selection.

{
"category": "Shinnex",
"name": "Create Shipping Label",
"globalInputs": [],
"tasks": [
{
"name": "Create Shipping Label",
"onFinish": "next",
"undoPossible": false,
"repeatPossible": true,
"scriptPath": "script.py",
"parameters": [
{
"parameterName": "shipping_label_url",
"type": "text",
"displayName": "Image URL of Shipping Label"
},
{
"parameterName": "customer_first_name",
"type": "text",
"displayName": "Customer's First Name"
},
{
"parameterName": "package_size",
"type": "select",
"displayName": "Select Package Size",
"options": ["#1 Standard Package", "#2 Large Package"]
}
]
}
]
}