Export Workflow Manager configuration

935
5
Jump to solution
04-28-2021 02:57 AM
AlistairMcDougall1
Esri Contributor

Hello,

With Workflow Manager (Classic), I believe there was out-of-the-box functionality to export your configuration and import into a new database. Does the new Workflow Manager have anything similar for migrating configs between ArcGIS Enterprise instances? If not, are there any code samples available for achieving this? I would like to manually create/update a configuration in the UI and automatically push to a production Portal.

Thanks in advance!

Alistair

Tags (1)
1 Solution

Accepted Solutions
by Anonymous User
Not applicable

Hi Alistair,

Not with a user interface at the moment however you can script moving elements from one to another using our python api https://developers.arcgis.com/python/api-reference/arcgis.gis.workflowmanager.html 

One thing we did improve is you can export an element (a diagram for example) and then save it into the other system with the original's unique ID. So both systems use the same ID structure. 

We don't have any public samples, but I'll check with a co-worker who scripted it whether they can provide any of their work or a sample.

Cheers,

Michael

View solution in original post

0 Kudos
5 Replies
by Anonymous User
Not applicable

Hi Alistair,

Not with a user interface at the moment however you can script moving elements from one to another using our python api https://developers.arcgis.com/python/api-reference/arcgis.gis.workflowmanager.html 

One thing we did improve is you can export an element (a diagram for example) and then save it into the other system with the original's unique ID. So both systems use the same ID structure. 

We don't have any public samples, but I'll check with a co-worker who scripted it whether they can provide any of their work or a sample.

Cheers,

Michael

0 Kudos
AlistairMcDougall1
Esri Contributor

Excellent, thanks for the quick reply and if you do have any code samples I'd love to see them.

0 Kudos
JohnAnderson1
New Contributor III

There is additional information in the following thread for anyone else who is interested:

how to migrate ArcGIS Workflow Manager (service-dr... - Esri Community

0 Kudos
JohnAnderson1
New Contributor III

I would like to export a Workflow Item from ArcGIS Workflow Manager Server for backup and restore purposes. Will the following REST API calls achieve this?

https://developers.arcgis.com/workflow-manager/api-reference/rest/export-workflow-configuration/

https://developers.arcgis.com/workflow-manager/api-reference/rest/import-workflow-configuration/

Would these API calls also provide a solution to the original question by @AlistairMcDougall1 ?

Is there any other way to export/import and backup/restore Workflow Items?

0 Kudos
Paulakark
Esri Contributor

Hello @JohnAnderson1 ,

Yes, and you can also use the python API to do the same. 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 

Paulina