package hu.user.lis.workflow.project;
-import hu.user.lis.db.repository.ProjectRepository;
import hu.user.lis.workflow.properties.WorkflowProperties;
import lombok.extern.log4j.Log4j2;
import org.camunda.bpm.engine.ProcessEngineException;
import org.camunda.bpm.engine.delegate.DelegateExecution;
-import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import javax.persistence.EntityNotFoundException;
public class CopyCalculationXlsx extends CreateProjectStructure {
private final static String fileSeparator = File.separator; // or FileSystems.getDefault().getSeparator(); File.separatorChar;
- @Autowired
- private ProjectRepository projectRepository;
-
- @Autowired
- private WorkflowProperties workflowProperties;
-
@Override
public void execute(DelegateExecution delegateExecution) throws Exception {
Long projectId = (Long) delegateExecution.getVariable("projectId");