Camunda Cockpit Error

Hi everyone :slight_smile:

I have a problem that i do not know how to handle. I have a spring boot project with camunda. This is my bpmn
stammdaten-starter.bpmn (7.8 KB)

I start a process from tasklist with the help of a form. When i start it locally, everything works fine. I deployed it on the dev stage and when i try to do the same thing, i get this error
" Der Prozess konnte nicht gestartet werden. : Cannot instantiate process definition 058654be-21c8-11ef-9fc0-76b1e90dce19: Unknown property used in expression: ${caseDatenInputValidationTask}. Cause: Cannot resolve identifier ‘caseDatenInputValidationTask’"
Can anybody help me? The version of the project is the exact same localy and in the cloud… The class for the ${caseDatenInputValidationTask} Task is this one

@Component()
@RequiredArgsConstructor
@Slf4j
public class CaseDatenInputValidationTask extends ProcessDelegateBaseTask {

private final CaseDatenInputValidationService inputValidationService;

@Override
public void executeTask(DelegateExecution execution) throws Exception {
    ByteArrayInputStream inputDataByteArray = execution.getVariable(ProcessConstants.INPUT_DATA);

// more code here
}
}

The class is annotated with the @Component and the nameing is the exact same except it starts wit a upper case C

Hello my friend!!

Is your main application initialization class in the project root folder or did you put it in some other package?

If you placed it in another package, you will need to annotate the main class with @ComponentScan to tell spring to scan your classes that are components of your app and are not in the same package.

I hope this helps.

William Robert Alves

Hi William,

thank you for the reply. Yes it is. Here is a picture of my packaging
image
The main class is Application and it looks like this
@SpringBootApplication(scanBasePackages = {“de.ruv.bpm”, “de.ruv.stammdaten”, “de.ruv.camunda”}, exclude = {UserDetailsServiceAutoConfiguration.class})
@EnableRetry
public class Application {

public static void main(String[] args) {
    ApplicationContext ctx = SpringApplication.run(Application.class, args);
    DispatcherServlet dispatcherServlet = (DispatcherServlet) ctx.getBean("dispatcherServlet");
    dispatcherServlet.setThrowExceptionIfNoHandlerFound(true);
}

I specifically say @SpringBootApplication(scanBasePackages = {“de.ruv.stammdaten”} because the CaseDatenInputValidationTask is in the stammdaten → domain package. I also tried to annotate the class with @Component("caseDatenInputValidationTask ") and also tried to rename the class and the delegate expression and also make the bpmn from scratch, nothing works. In this projekt i have another bpmn that starts by a form, that one works good

I found the problem. I forgot the asyncronous continuation. Thank you for the help

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.