diff --git a/dotCMS/src/main/java/com/dotmarketing/portlets/workflows/business/WorkflowFactoryImpl.java b/dotCMS/src/main/java/com/dotmarketing/portlets/workflows/business/WorkflowFactoryImpl.java index e9a4b8813f84..4c7424d0f8b8 100644 --- a/dotCMS/src/main/java/com/dotmarketing/portlets/workflows/business/WorkflowFactoryImpl.java +++ b/dotCMS/src/main/java/com/dotmarketing/portlets/workflows/business/WorkflowFactoryImpl.java @@ -973,7 +973,17 @@ public List findStepsByContentlet(final Contentlet contentlet, fin this.deleteWorkflowTask(this.findWorkFlowTaskById(workflowTaskId)); } - steps = Collections.emptyList(); + // if it is the community license, has a diff workflow of the system workflow instead of removing the steps, use the first steps of the system workflow + if ((LicenseUtil.getLevel() < LicenseLevel.STANDARD.level) && null != workflowTaskId && !WorkflowAPI.SYSTEM_WORKFLOW_ID.equals(workflowTaskId)) { + + final List schemeSteps = this.findSteps(this.findSystemWorkflow()); + if(UtilMethods.isSet(schemeSteps)){ + final WorkflowStep step = schemeSteps.get(0); + steps.add(step); + } + } else { + steps = Collections.emptyList(); + } } cache.addSteps(contentlet, steps);