CLI tool to extract Scriptable Actions from vRO Workflows (.xml), Packages (.package), and Folder structures (data).
npm install vro-action-extractor.js)
.py)
.ps1)
/* ... /)
""" ... """)
<# ... #>)
bash
npm install -g vro-action-extractor
`
Usage
The tool exposes the vro-extract command:
$3
`bash
vro-extract "path/to/my-package.package"
`
Creates Actions and Workflows folders in the same directory as the package.
$3
`bash
vro-extract "path/to/project_root"
`
Scans for all valid data and .xml files recursively and extracts them into Actions and Workflows folders relative to their source.
$3
`bash
vro-extract "path/to/workflow.xml" [output_directory]
`
Folder Structure & Examples
The tool organizes extracted scripts into Actions and Workflows directories.
$3
`
.
├── Actions/
│ └── com/
│ └── vmware/
│ └── library/
│ └── myAction.js (Action: com.vmware.library.myAction)
│ └── utilAction.py (Action: com.vmware.library.utilAction)
└── Workflows/
└── My_Complex_Workflow/
├── Validate_Inputs.js (Scriptable Task)
└── Call_External_API.py (Scriptable Task)
`
$3
| Input Source | Output Location | Structure |
|--------------|-----------------|-----------|
| Package (my.package) | ./Actions/
./Workflows/ | Actions are grouped by namespace (e.g. com/group/name). Workflows are in named folders. |
| Directory (./src) | ./src/Actions/
./src/Workflows/ | recursive extraction relative to found files. |
| Single Workflow (wf.xml) | ./Workflows/Wf_Name/ | Creates a folder for the workflow relative to the input file. |
| Single Action (action.xml) | ./Actions/com/group/` | Creates the group hierarchy relative to the input file. |