throw new UnsupportedOperationException();
}
public void save() {
EntityManager em = ResourceUtils.getEntityManager();
Gram_Data existingGramData = em.find(Gram_Data.class, new Gram_DataPK(workflowDataResource.getWorkflowInstanceID(), nodeID));
em.close();
em = ResourceUtils.getEntityManager();
em.getTransaction().begin();
Gram_Data gramData = new Gram_Data();
gramData.setNode_id(nodeID);
Workflow_Data workflow_data = em.find(Workflow_Data.class, workflowDataResource.getWorkflowInstanceID());
gramData.setWorkflow_Data(workflow_data);
gramData.setNode_id(nodeID);
gramData.setInvoked_host(invokedHost);
gramData.setLocal_Job_ID(localJobID);
byte[] bytes = rsl.getBytes();
gramData.setRsl(bytes);
if(existingGramData != null){
existingGramData.setInvoked_host(invokedHost);
existingGramData.setLocal_Job_ID(localJobID);
existingGramData.setRsl(bytes);
gramData = em.merge(existingGramData);