Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GihanAyesh committed Dec 14, 2023
1 parent 504ee62 commit 7c7a2e4
Showing 1 changed file with 13 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,17 +137,22 @@ public void load() throws WorkflowException, RegistryException {

workflowElem = workflowExtensionsElem.getFirstChildWithName(
new QName(WorkflowConstants.API_REVISION_DEPLOYMENT));
executorClass = workflowElem.getAttributeValue(new QName(WorkflowConstants.EXECUTOR));
try {
clazz = TenantWorkflowConfigHolder.class.getClassLoader().loadClass(executorClass);
workFlowExecutor = (WorkflowExecutor) clazz.newInstance();
loadProperties(workflowElem, workFlowExecutor);
} catch (ClassNotFoundException e1) {
if (workflowElem != null) {
executorClass = workflowElem.getAttributeValue(new QName(WorkflowConstants.EXECUTOR));
try {
clazz = TenantWorkflowConfigHolder.class.getClassLoader().loadClass(executorClass);
workFlowExecutor = (WorkflowExecutor) clazz.newInstance();
loadProperties(workflowElem, workFlowExecutor);
} catch (ClassNotFoundException e) {
workFlowExecutor = new APIRevisionDeploymentSimpleWorkflowExecutor();
}

workflowExecutorMap.put(WorkflowConstants.WF_TYPE_AM_REVISION_DEPLOYMENT, workFlowExecutor);
} else {
workFlowExecutor = new APIRevisionDeploymentSimpleWorkflowExecutor();
workflowExecutorMap.put(WorkflowConstants.WF_TYPE_AM_REVISION_DEPLOYMENT, workFlowExecutor);
}

workflowExecutorMap.put(WorkflowConstants.WF_TYPE_AM_REVISION_DEPLOYMENT, workFlowExecutor);

workflowElem = workflowExtensionsElem.getFirstChildWithName(
new QName(WorkflowConstants.USER_SIGN_UP));
executorClass = workflowElem.getAttributeValue(new QName(WorkflowConstants.EXECUTOR));
Expand Down

0 comments on commit 7c7a2e4

Please sign in to comment.