Skip to content

Commit

Permalink
Merge pull request #441 from gokulprathin8/restore/worflow-m
Browse files Browse the repository at this point in the history
Restore Workflow -- added back the function that was removed by mistake
  • Loading branch information
ZihengSun authored Jan 16, 2024
2 parents 1ab137d + 700553f commit e172a6d
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions src/main/resources/static/js/gw.workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -1106,8 +1106,25 @@ GW.workflow = {
});

},




restoreCheckpoint: function(workflowId, executionId) {
if (confirm("CAUTION: Restore will remove changes that are not stored in history. Proceed?")) {
$.ajax({
url: `/Geoweaver/checkpoint/restoreWorkflow`,
method: "POST",
data: JSON.stringify({"workflowId": workflowId, "executionId": executionId }),
headers: {'Content-Type': 'application/json'}
}).done((resp) => {
window.alert('Successfully restored to this checkpoint.');
GW.workflow.showWorkflow(workflowId);
// GW.workspace.init();
}).fail(err => {
window.alert(`Failed to restore. checkpoint not found`);
})
}
},


stop: function(workflow_history_id){

Expand Down

0 comments on commit e172a6d

Please sign in to comment.