public void updateWorkflowNodeGramData(
WorkflowNodeGramData workflowNodeGramData) throws RegistryException {
if (provenanceRegistry != null){
provenanceRegistry.updateWorkflowNodeGramData(workflowNodeGramData);
}else {
ApplicationJob job = new ApplicationJob();
job.setJobId(workflowNodeGramData.getGramJobID());
job.setHostDescriptionId(workflowNodeGramData.getInvokedHost());
job.setExperimentId(workflowNodeGramData.getWorkflowInstanceId());
job.setWorkflowExecutionId(workflowNodeGramData.getWorkflowInstanceId());
job.setNodeId(workflowNodeGramData.getNodeID());
job.setJobData(workflowNodeGramData.getRsl());
if (isApplicationJobExists(job.getJobId())){
updateApplicationJob(job);
}else{
addApplicationJob(job);
}
}