Dashboard
Only available to Pro and Enterprise users
1
Navigate
In the patchflow builder’s Steps sidebar, click the
Add Step icon next to the search box.2
Describe
Describe the Step you wish to create in plain text, and provide the input and output schema.
3
Review
Review the generated code for the step and modify it as needed.
4
Validate
Validate the step by providing a sample input and clicking the
Validate button.5
Save
Once the step is validated, click the
Save button. The step will now be available in the Steps sidebar for use in patchflows.CLI
1
Fork
Fork the patchwork template repository to your machine.
2
Directory
Create a new folder for the step in the
patchwork/steps directory with StepName.3
Step File
Create a file named
StepName.py in the newly created directory. Any additional files required for the step should be placed in the same folder.4
Code
Implement the step logic in the
StepName.py file. The step should inherit from the Step class provided by Patched. The StepName class is expected to have two methods:- init: The constructor of the class. It should accept an inputs dictionary as an argument. This dictionary contains the input data for the step. Checking of the presence and validity of the input data should be done here.
- run: The main method of the class. This method should contain the logic of the step and return a dictionary with the results.
5
Initialize
Update patchwork/steps/init.py to include the new step in the list of available steps.