public void copyAnnotationsForDraftWorkflow(String parentWorkflowName) throws Exception { final String originalPropKey = WorkflowDesignerConstants.ANNOTATION_PREFIX.concat(parentWorkflowName); final String originalJson = workflowDesignerPropertySet.getProperty(originalPropKey); if (StringUtils.isNotBlank(originalJson)) { String propKey = WorkflowDesignerConstants.ANNOTATION_DRAFT_PREFIX.concat(parentWorkflowName); workflowDesignerPropertySet.setProperty(propKey, originalJson); } }
private String getPropertyKey(JiraWorkflow workflow) { String propKey; if (workflow.isDraftWorkflow()) { propKey = WorkflowDesignerConstants.ANNOTATION_DRAFT_PREFIX.concat(workflow.getName()); } else { propKey = WorkflowDesignerConstants.ANNOTATION_PREFIX.concat(workflow.getName()); } return propKey; }