Select to view content in your preferred language

Is there a way to 'copy and paste' a workflow diagram from one workflow manager project to another project (within the same enterprise environment).

1283
2
Jump to solution
09-26-2023 04:09 AM
Haley_Clowes
Emerging Contributor

Is it possible to 'copy and paste' a workflow diagram from one workflow manager project to another workflow manager project within the same enterprise environment (along with any related job templates). The way of working follows a 'development' and 'production' method, whereby new sub-workflows (for example, child workflows) are being created and tested within a separate workflow manager project by a delegated team member before the workflow is approved to be copied across into the 'production' workflow project and interlinked. 

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
PaulinaKarkauskaite
Esri Contributor

Hello @Haley_Clowes ,

Currently, you need to build your own script tools that utilize the Python API to migrate workflow components. You can find some sample scripts (for 10.9.x) in this repository: https://github.com/Esri/workflowmanager-samples/tree/master/ServiceBased/10_9_x 

Be aware that you can only import a configuration into another workflow manager item if no jobs exist in it. So the current import/export functionality works best for initial establishment of the production environment, but not for adding new functionality/making changes to the workflows, unless you're okay with deleting all existing jobs in the production environment every time you transfer your configurations.

Paulakark_0-1695727296018.png

https://developers.arcgis.com/python/api-reference/arcgis.gis.workflowmanager.html#workflowmanagerad... 

Thanks,

Paulina

View solution in original post

2 Replies
PaulinaKarkauskaite
Esri Contributor

Hello @Haley_Clowes ,

Currently, you need to build your own script tools that utilize the Python API to migrate workflow components. You can find some sample scripts (for 10.9.x) in this repository: https://github.com/Esri/workflowmanager-samples/tree/master/ServiceBased/10_9_x 

Be aware that you can only import a configuration into another workflow manager item if no jobs exist in it. So the current import/export functionality works best for initial establishment of the production environment, but not for adding new functionality/making changes to the workflows, unless you're okay with deleting all existing jobs in the production environment every time you transfer your configurations.

Paulakark_0-1695727296018.png

https://developers.arcgis.com/python/api-reference/arcgis.gis.workflowmanager.html#workflowmanagerad... 

Thanks,

Paulina

GustavoDrets
Emerging Contributor

Is this script suitable for WF Classic o for the new WFM?

I have tried https://developers.arcgis.com/workflow-manager/api-reference/rest/export-workflow-configuration/ with no luck

GustavoDrets_0-1698153691539.png

any help is welcome

0 Kudos