Auto-generating JSON for Custom Python Activities
The Activity Designer enables users to easily create JSON UI definitions for custom Python-based activities. With a single click, users can generate a basic JSON structure that automatically incorporates all identified parameters in their Python code. This feature simplifies the workflow, making it faster and more efficient to define custom activity configurations.
Using "Generate JSON"
To generate JSON:
- Navigate to the Activity Designer.
- Click + New Activity in the left panel.
- In the Create New window:
- Insert a Name for the activity.
- Select how to run the activity.
- Select the Category.
- Write a brief Description.
- Click the Create button.
- Select the Code tab and select Python in the Language dropdown.
- Insert your Python code.
- Click the Generate JSON button in the top right.
- Accept the Generate Json Warning dialog by clicking Ok.
- Toggle to the Json tab to view the code and the preview of your activity.
- Edit JSON as needed.
- Save the custom activity.