logger.debug("Publishing Experiment Status "+state.toString());
monitorPublisher.publish(new WorkflowNodeStatusChangeRequest(taskStatus.getIdentity(),state));
}
public void updateTaskStatus(String taskId, TaskState state) throws Exception {
TaskDetails details = (TaskDetails)airavataRegistry.get(RegistryModelType.TASK_DETAIL, taskId);
if(details == null) {
details = new TaskDetails();
details.setTaskID(taskId);
}
org.apache.airavata.model.workspace.experiment.TaskStatus status = new org.apache.airavata.model.workspace.experiment.TaskStatus();
status.setExecutionState(state);
status.setTimeOfStateChange(Calendar.getInstance().getTimeInMillis());
details.setTaskStatus(status);
airavataRegistry.update(RegistryModelType.TASK_DETAIL, details, taskId);
}