- can rename Flows, Operations, UI Activities or System Properties (Elements)
- can rename Namespaces (folders)
- can move Elements to another Namespaces (folders)
- can refactor on multiple projects at once
- renames not only the particular Element but also all its references
- At least OO / RPA 2020.02 (with Python 3.8 support)
- Following CPs deployed:
- CS Base 1.6.0+ (https://marketplace.microfocus.com/itom/content/cloudslang-base-content)
- cs-base-te-addon 1.0.4+ (https://github.com/rpa-micro-focus/cs-base-te-addon/releases/latest)
- extends CS Base CP
- depends on the above
- cs-microfocus-rpa 1.1.5+ (https://github.com/rpa-micro-focus/rpa-rpa/releases/latest)
- content managing an OO/RPA instance (including Workflow Designer project)
- depends on the above
- cs-designer-project-refactor 1.0.0+ (https://github.com/rpa-micro-focus/cs-designer-project-refactor/releases/latest)
- content to refactor Workflow Designer project
- depends on the above
- Run download_project flow
- provide Designer workspace user / password
- wait for getting the project replicated from Designer Workspace to OO worker node local folder
- obtain Session Token (as the flow output)
- (optional) Run download_project flow again
- provide another Desginer workspace user / password
- provide the same Session Token as before
- (optional) Run download_project flow as many times as needed
- each time provide the same Session Token
- each time download another user's project files
- Run move_file, move_folder, move_property_file or rename_property flow to refactor your projects
- provide Session Token obtained in the first step
- move_file renames the given Flow/Operation/Activity to another file (changing name) or folder (changing namespace) or both
- move_folder renames the folder to another folder thus changing the namespace of all the Flows/Operations/Activities under the original folder
- move_property_file moves the file with System Properties to another folder thus changing the namespace of all System Properties in the file
- rename_property changes name of one particular System Property (while keeping all the others)
- Run any of the flows above as many times as needed
- all refactoring is done on all checked-out projects
- all changes are made on the OO worker node local file system only
- if your project is linked with a GIT repo, nothing is commited/pushed to the repo yet (you have still the choice of dropping your changes with no impact)
- Run upload_projects
- provide Session Token obtained in the first step
- all your changes (so far made on the OO worker node local file system only) will be replicated to the particular user's workspace in Designer
- your Session is over and all data (user passwords, user project files) are removed from the OO worker node file system
- unless you provide input parameter keep_session = true; in such a case, you may continue with your refactorings to run flows as in chapter II. (this option is good to verify refactoring made so far; see chapter IV.)
- if your project is linked with a GIT repo, nothing is commited/pushed to the repo yet (you still have the choice of dropping your changes with no impact)
- Login to user workspace in Workflow Designer (or refresh the page in browser)
- Verify no content is red
- (Mandatory) Debug your content to verify nothing got broken
- repeat that for all refactored projects
- Commit / push your changes to the linked GIT repo
- is not secure (do not use in production or shared environment!!)
- during the session, the user credentials are insecurely stored on the OO worker node file system
- does not rename steps (which usually take their names after the Elements)
- will not work when multiple worker nodes are used
- all the user workspaces should belong to the same Tenant
- tested only on WD generated projects (may not work on content written in CS using a text editor); e.g. imports do not work
Please, let the author ([email protected]) know your feedback and if any of the limitations needs to be addressed!