Migrating Workflow contexts

sraina1
Tera Contributor

We are in the processing of migrating from an leveraged to a dedicated instance of ServiceNow. 

As a result we want to migrate all the open and active tasks(incidents, problems, change_requests etc) and their associated workflows.

We have been trying to perform the same exercises on a sandbox instance and we have encountered issue with migrating workflow contexts for the existing open change requests on Production.
We have migrated the following table between instances:

change_request
change_task
sysapprover_approval
task_ci
conflict
wf_context
wf_executing
wf_history
wf_transition_history
wf_workflow
wf_workflow_version
wf_activity
wf_transition
wf_condition
wf_workflow_binding

So the workflow contexts have been migrated with their current execution status correctly displayed .however , the workflows do not proceed further as expected, i.e, when a task or closed or an approval is completed the workflow behaves unexpectedly each time. 

 

Has anyone had experience of migrating workflows this way ? Is there is better approach to this? Am I missing something?

 

Any help would be appreciated.

 

Cheers

5 REPLIES 5

Kalaiarasan Pus
Giga Sage

There is an export workflow context button out of the box? It is restricted by role and hence you might not have noticed it. You can reuse the code from it to get the list of table that you might want or even use the same script to export the data.

The Export Workflow is on the Workflow Version [wf_workflow_version] I am trying to export the actual running contexts of these workflows.

 

veeramreddy
Tera Contributor

Hello Sraina, 

Any lucks with this ?  Even I'm having the same issue.  Any inputs would be much appericiated. 

 

 

Thanks

Veera

Hello Veera,

Please see reply below. I hope this helps,

Kind regards,

Phonsie