No process deployment with id found

Hi all,
So i am having this error so i have added bpmn file in the resources/process/.bpmn file

and to start this processInstance i wrote the backend code for it this way
ProcessInstance processInstance=runtimeService.startProcessInstanceById(“startprocess”,variables); but i keeo getting the error
no deployed process definition found with id ‘startprocess’ if you could help me with this

Thankyou,
Kartik

Hey @kartik,

The folder should be resources/processes not resources/process. Are you sure that you do not have a typo in the name of the folder?

Cheers,
Filip

yeah its typo i have the same thing resources/processes inside this i have 3 bpmn files

Are you using our spring boot starters?

Cheers,
Filip

yes i am using spring boot starters

Then please create a minimal project showing the problem. What you are explaining is the most basic scenario which should work properly.

This is my simple task

<?xml version="1.0" encoding="UTF-8"?> this is simple workflow of the working model

This is the backend code i wrote for it package com.example.workflow.common_workflow;

import com.bt.srims.workflow.runtime.service.ProcessRuntimeService;
import com.bt.srims.workflow.runtime.service.WorkflowTaskService;
import com.bt.srims.workflow.runtime.service.impl.ProcessInstanceDetailImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CommonService {
@Autowired
private RuntimeService runtimeService;
@Autowired
private TaskService taskService;

public void startprocess(){
    ProcessInstance processInstance=runtimeService.startProcessInstanceById("workflow");
    System.out.println("The process Instance Id "+processInstance.getProcessInstanceId());
}

}

org.flowable.common.engine.api.FlowableObjectNotFoundException: no deployed process definition found with id ‘workflow’

i keep getting this error

Can you please share the full log from when the application boots up?

org.flowable.common.engine.api.FlowableObjectNotFoundException: no deployed process definition found with id ‘workflow’
at org.flowable.engine.impl.persistence.deploy.DeploymentManager.findDeployedProcessDefinitionById(DeploymentManager.java:78) ~[flowable-engine-7.0.1.jar:7.0.1]
at org.flowable.engine.impl.cmd.StartProcessInstanceCmd.getProcessDefinition(StartProcessInstanceCmd.java:274) ~[flowable-engine-7.0.1.jar:7.0.1]
at org.flowable.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:128) ~[flowable-engine-7.0.1.jar:7.0.1]
at org.flowable.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:53) ~[flowable-engine-7.0.1.jar:7.0.1]
at org.flowable.engine.impl.interceptor.CommandInvoker$1.run(CommandInvoker.java:72) ~[flowable-engine-7.0.1.jar:7.0.1]
at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperation(CommandInvoker.java:176) ~[flowable-engine-7.0.1.jar:7.0.1]
at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperations(CommandInvoker.java:121) ~[flowable-engine-7.0.1.jar:7.0.1]
at org.flowable.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:77) ~[flowable-engine-7.0.1.jar:7.0.1]
at org.flowable.engine.impl.interceptor.BpmnOverrideContextInterceptor.execute(BpmnOverrideContextInterceptor.java:26) ~[flowable-engine-7.0.1.jar:7.0.1]
at org.flowable.common.engine.impl.interceptor.TransactionContextInterceptor.execute(TransactionContextInterceptor.java:53) ~[flowable-engine-common-7.0.1.jar:7.0.1]
at org.flowable.common.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:105) ~[flowable-engine-common-7.0.1.jar:7.0.1]
at org.flowable.common.spring.SpringTransactionInterceptor.lambda$execute$0(SpringTransactionInterceptor.java:57) ~[flowable-spring-common-7.0.1.jar:7.0.1]
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140) ~[spring-tx-6.1.11.jar:6.1.11]
at org.flowable.common.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:57) ~[flowable-spring-common-7.0.1.jar:7.0.1]
at org.flowable.common.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:30) ~[flowable-engine-common-7.0.1.jar:7.0.1]
at org.flowable.common.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:56) ~[flowable-engine-common-7.0.1.jar:7.0.1]
at org.flowable.common.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:51) ~[flowable-engine-common-7.0.1.jar:7.0.1]
at org.flowable.engine.impl.RuntimeServiceImpl.startProcessInstanceById(RuntimeServiceImpl.java:171) ~[flowable-engine-7.0.1.jar:7.0.1]
at com.example.workflow.common_workflow.CommonService.startprocess(CommonService.java:27) ~[classes/:na]
at com.example.workflow.common_workflow.CommonController.startprocess(CommonController.java:20) ~[classes/:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:568) ~[na:na]
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:255) ~[spring-web-6.1.11.jar:6.1.11]
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:188) ~[spring-web-6.1.11.jar:6.1.11]
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:118) ~[spring-webmvc-6.1.11.jar:6.1.11]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:926) ~[spring-webmvc-6.1.11.jar:6.1.11]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:831) ~[spring-webmvc-6.1.11.jar:6.1.11]
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-6.1.11.jar:6.1.11]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1089) ~[spring-webmvc-6.1.11.jar:6.1.11]
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:979) ~[spring-webmvc-6.1.11.jar:6.1.11]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1014) ~[spring-webmvc-6.1.11.jar:6.1.11]
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:914) ~[spring-webmvc-6.1.11.jar:6.1.11]
at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:590) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:885) ~[spring-webmvc-6.1.11.jar:6.1.11]
at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:658) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:195) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51) ~[tomcat-embed-websocket-10.1.26.jar:10.1.26]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) ~[spring-web-6.1.11.jar:6.1.11]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.1.11.jar:6.1.11]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) ~[spring-web-6.1.11.jar:6.1.11]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.1.11.jar:6.1.11]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
at org.springframework.web.filter.ServerHttpObservationFilter.doFilterInternal(ServerHttpObservationFilter.java:113) ~[spring-web-6.1.11.jar:6.1.11]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.1.11.jar:6.1.11]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) ~[spring-web-6.1.11.jar:6.1.11]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.1.11.jar:6.1.11]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:483) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:115) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:389) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:904) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1741) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
at java.base/java.lang.Thread.run(Thread.java:842) ~[na:na]

. ____ _ __ _ _
/\ / __ _ () __ __ _ \ \ \
( ( )_
_ | '_ | '| | ’ / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) )
’ |
| .__|| ||| |_, | / / / /
=========|
|==============|/=////

:: Spring Boot :: (v3.3.2)

2024-08-22T18:07:37.740+05:30 INFO 26224 — [common-workflow] [ main] c.e.w.c.CommonWorkflowApplication : Starting CommonWorkflowApplication using Java 17.0.11 with PID 26224 (C:\Users\617361303\Downloads\common-workflow\common-workflow\target\classes started by 617361303 in C:\Users\617361303\Downloads\common-workflow\common-workflow)
2024-08-22T18:07:37.740+05:30 INFO 26224 — [common-workflow] [ main] c.e.w.c.CommonWorkflowApplication : No active profile set, falling back to 1 default profile: “default”
2024-08-22T18:07:40.858+05:30 INFO 26224 — [common-workflow] [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port 8090 (http)
2024-08-22T18:07:40.874+05:30 INFO 26224 — [common-workflow] [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2024-08-22T18:07:40.874+05:30 INFO 26224 — [common-workflow] [ main] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.26]
2024-08-22T18:07:41.022+05:30 INFO 26224 — [common-workflow] [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2024-08-22T18:07:41.036+05:30 INFO 26224 — [common-workflow] [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 3208 ms
2024-08-22T18:07:41.508+05:30 INFO 26224 — [common-workflow] [ main] o.f.s.b.app.AppEngineAutoConfiguration : No deployment resources were found for autodeployment
2024-08-22T18:07:41.744+05:30 WARN 26224 — [common-workflow] [ main] .s.w.r.s.c.ProcessIdGeneratorInitializer : process.instanceId.generator property is missing application.properties
2024-08-22T18:07:42.004+05:30 INFO 26224 — [common-workflow] [ main] .b.s.w.r.s.c.WorkflowEngineConfiguration : Process engine configuration is initialized.
2024-08-22T18:07:42.043+05:30 INFO 26224 — [common-workflow] [ main] o.f.s.b.c.CmmnEngineAutoConfiguration : No deployment resources were found for autodeployment
2024-08-22T18:07:42.119+05:30 INFO 26224 — [common-workflow] [ main] o.f.s.b.dmn.DmnEngineAutoConfiguration : No deployment resources were found for autodeployment
2024-08-22T18:07:42.154+05:30 INFO 26224 — [common-workflow] [ main] o.f.s.b.e.EventRegistryAutoConfiguration : No deployment resources were found for autodeployment
2024-08-22T18:07:42.203+05:30 INFO 26224 — [common-workflow] [ main] o.f.a.s.SpringAppEngineConfiguration : Found 5 Engine Configurators in total:
2024-08-22T18:07:42.203+05:30 INFO 26224 — [common-workflow] [ main] o.f.a.s.SpringAppEngineConfiguration : class org.flowable.engine.spring.configurator.SpringProcessEngineConfigurator (priority:50000)
2024-08-22T18:07:42.203+05:30 INFO 26224 — [common-workflow] [ main] o.f.a.s.SpringAppEngineConfiguration : class org.flowable.eventregistry.spring.configurator.SpringEventRegistryConfigurator (priority:100000)
2024-08-22T18:07:42.203+05:30 INFO 26224 — [common-workflow] [ main] o.f.a.s.SpringAppEngineConfiguration : class org.flowable.idm.spring.configurator.SpringIdmEngineConfigurator (priority:150000)
2024-08-22T18:07:42.203+05:30 INFO 26224 — [common-workflow] [ main] o.f.a.s.SpringAppEngineConfiguration : class org.flowable.dmn.spring.configurator.SpringDmnEngineConfigurator (priority:200000)
2024-08-22T18:07:42.203+05:30 INFO 26224 — [common-workflow] [ main] o.f.a.s.SpringAppEngineConfiguration : class org.flowable.cmmn.spring.configurator.SpringCmmnEngineConfigurator (priority:500000)
2024-08-22T18:07:42.203+05:30 INFO 26224 — [common-workflow] [ main] o.f.a.s.SpringAppEngineConfiguration : Executing beforeInit() of class org.flowable.engine.spring.configurator.SpringProcessEngineConfigurator (priority:50000)
2024-08-22T18:07:42.254+05:30 INFO 26224 — [common-workflow] [ main] o.f.a.s.SpringAppEngineConfiguration : Executing beforeInit() of class org.flowable.eventregistry.spring.configurator.SpringEventRegistryConfigurator (priority:100000)
2024-08-22T18:07:42.254+05:30 INFO 26224 — [common-workflow] [ main] o.f.a.s.SpringAppEngineConfiguration : Executing beforeInit() of class org.flowable.idm.spring.configurator.SpringIdmEngineConfigurator (priority:150000)
2024-08-22T18:07:42.254+05:30 INFO 26224 — [common-workflow] [ main] o.f.a.s.SpringAppEngineConfiguration : Executing beforeInit() of class org.flowable.dmn.spring.configurator.SpringDmnEngineConfigurator (priority:200000)
2024-08-22T18:07:42.270+05:30 INFO 26224 — [common-workflow] [ main] o.f.a.s.SpringAppEngineConfiguration : Executing beforeInit() of class org.flowable.cmmn.spring.configurator.SpringCmmnEngineConfigurator (priority:500000)
2024-08-22T18:07:42.353+05:30 INFO 26224 — [common-workflow] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting…
2024-08-22T18:07:42.620+05:30 INFO 26224 — [common-workflow] [ main] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Added connection org.postgresql.jdbc.PgConnection@507f7cd1
2024-08-22T18:07:42.620+05:30 INFO 26224 — [common-workflow] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2024-08-22T18:07:43.913+05:30 INFO 26224 — [common-workflow] [ main] o.f.a.s.SpringAppEngineConfiguration : Executing configure() of class org.flowable.engine.spring.configurator.SpringProcessEngineConfigurator (priority:50000)
2024-08-22T18:07:44.087+05:30 INFO 26224 — [common-workflow] [ main] o.f.engine.impl.ProcessEngineImpl : ProcessEngine default created
2024-08-22T18:07:44.120+05:30 INFO 26224 — [common-workflow] [ main] o.f.e.impl.cmd.ValidateV5EntitiesCmd : Total of v5 deployments found: 0
2024-08-22T18:07:44.120+05:30 INFO 26224 — [common-workflow] [ main] o.f.a.s.SpringAppEngineConfiguration : Executing configure() of class org.flowable.eventregistry.spring.configurator.SpringEventRegistryConfigurator (priority:100000)
2024-08-22T18:07:44.319+05:30 INFO 26224 — [common-workflow] [ main] liquibase.database : Set default schema name to public
2024-08-22T18:07:44.771+05:30 INFO 26224 — [common-workflow] [ main] liquibase.changelog : Reading from public.flw_ev_databasechangelog
Database is up to date, no changesets to execute
2024-08-22T18:07:44.837+05:30 INFO 26224 — [common-workflow] [ main] liquibase.changelog : Reading from public.flw_ev_databasechangelog

UPDATE SUMMARY
Run: 0
Previously run: 3
Filtered out: 0

Total change sets: 3

2024-08-22T18:07:44.846+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : UPDATE SUMMARY
2024-08-22T18:07:44.846+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : Run: 0
2024-08-22T18:07:44.846+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : Previously run: 3
2024-08-22T18:07:44.846+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : Filtered out: 0
2024-08-22T18:07:44.846+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : -------------------------------
2024-08-22T18:07:44.846+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : Total change sets: 3
2024-08-22T18:07:44.846+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : Update summary generated
2024-08-22T18:07:44.870+05:30 INFO 26224 — [common-workflow] [ main] liquibase.lockservice : Successfully released change log lock
2024-08-22T18:07:44.870+05:30 INFO 26224 — [common-workflow] [ main] liquibase.command : Command execution complete
2024-08-22T18:07:44.870+05:30 INFO 26224 — [common-workflow] [ main] o.f.e.impl.EventRegistryEngineImpl : EventRegistryEngine default created
2024-08-22T18:07:44.870+05:30 INFO 26224 — [common-workflow] [ main] o.f.a.s.SpringAppEngineConfiguration : Executing configure() of class org.flowable.idm.spring.configurator.SpringIdmEngineConfigurator (priority:150000)
2024-08-22T18:07:44.892+05:30 INFO 26224 — [common-workflow] [ main] o.f.idm.engine.impl.IdmEngineImpl : IdmEngine default created
2024-08-22T18:07:44.892+05:30 INFO 26224 — [common-workflow] [ main] o.f.a.s.SpringAppEngineConfiguration : Executing configure() of class org.flowable.dmn.spring.configurator.SpringDmnEngineConfigurator (priority:200000)
2024-08-22T18:07:44.934+05:30 INFO 26224 — [common-workflow] [ main] liquibase.database : Set default schema name to public
2024-08-22T18:07:44.979+05:30 INFO 26224 — [common-workflow] [ main] liquibase.changelog : Reading from public.act_dmn_databasechangelog
Database is up to date, no changesets to execute
2024-08-22T18:07:45.011+05:30 INFO 26224 — [common-workflow] [ main] liquibase.changelog : Reading from public.act_dmn_databasechangelog

UPDATE SUMMARY
Run: 0
Previously run: 8
Filtered out: 1

Total change sets: 9

FILTERED CHANGE SETS SUMMARY
DBMS mismatch: 1

2024-08-22T18:07:45.015+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : UPDATE SUMMARY
2024-08-22T18:07:45.016+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : Run: 0
2024-08-22T18:07:45.016+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : Previously run: 8
2024-08-22T18:07:45.016+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : Filtered out: 1
2024-08-22T18:07:45.016+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : -------------------------------
2024-08-22T18:07:45.016+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : Total change sets: 9
2024-08-22T18:07:45.016+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : FILTERED CHANGE SETS SUMMARY
2024-08-22T18:07:45.016+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : DBMS mismatch: 1
2024-08-22T18:07:45.018+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : Update summary generated
2024-08-22T18:07:45.022+05:30 INFO 26224 — [common-workflow] [ main] liquibase.lockservice : Successfully released change log lock
2024-08-22T18:07:45.024+05:30 INFO 26224 — [common-workflow] [ main] liquibase.command : Command execution complete
2024-08-22T18:07:45.025+05:30 INFO 26224 — [common-workflow] [ main] o.f.dmn.engine.impl.DmnEngineImpl : DmnEngine default created
2024-08-22T18:07:45.026+05:30 INFO 26224 — [common-workflow] [ main] o.f.a.s.SpringAppEngineConfiguration : Executing configure() of class org.flowable.cmmn.spring.configurator.SpringCmmnEngineConfigurator (priority:500000)
2024-08-22T18:07:45.154+05:30 INFO 26224 — [common-workflow] [ main] liquibase.database : Set default schema name to public
2024-08-22T18:07:45.218+05:30 INFO 26224 — [common-workflow] [ main] liquibase.changelog : Reading from public.act_cmmn_databasechangelog
Database is up to date, no changesets to execute
2024-08-22T18:07:45.277+05:30 INFO 26224 — [common-workflow] [ main] liquibase.changelog : Reading from public.act_cmmn_databasechangelog

UPDATE SUMMARY
Run: 0
Previously run: 16
Filtered out: 2

Total change sets: 18

FILTERED CHANGE SETS SUMMARY
DBMS mismatch: 2

2024-08-22T18:07:45.281+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : UPDATE SUMMARY
2024-08-22T18:07:45.281+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : Run: 0
2024-08-22T18:07:45.282+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : Previously run: 16
2024-08-22T18:07:45.282+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : Filtered out: 2
2024-08-22T18:07:45.282+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : -------------------------------
2024-08-22T18:07:45.282+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : Total change sets: 18
2024-08-22T18:07:45.282+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : FILTERED CHANGE SETS SUMMARY
2024-08-22T18:07:45.282+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : DBMS mismatch: 2
2024-08-22T18:07:45.282+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : Update summary generated
2024-08-22T18:07:45.285+05:30 INFO 26224 — [common-workflow] [ main] liquibase.lockservice : Successfully released change log lock
2024-08-22T18:07:45.287+05:30 INFO 26224 — [common-workflow] [ main] liquibase.command : Command execution complete
2024-08-22T18:07:45.287+05:30 INFO 26224 — [common-workflow] [ main] o.f.cmmn.engine.impl.CmmnEngineImpl : CmmnEngine default created
2024-08-22T18:07:45.307+05:30 INFO 26224 — [common-workflow] [ main] liquibase.database : Set default schema name to public
2024-08-22T18:07:45.344+05:30 INFO 26224 — [common-workflow] [ main] liquibase.changelog : Reading from public.act_app_databasechangelog
Database is up to date, no changesets to execute
2024-08-22T18:07:45.361+05:30 INFO 26224 — [common-workflow] [ main] liquibase.changelog : Reading from public.act_app_databasechangelog

UPDATE SUMMARY
Run: 0
Previously run: 2
Filtered out: 1

Total change sets: 3

FILTERED CHANGE SETS SUMMARY
DBMS mismatch: 1

2024-08-22T18:07:45.364+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : UPDATE SUMMARY
2024-08-22T18:07:45.365+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : Run: 0
2024-08-22T18:07:45.365+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : Previously run: 2
2024-08-22T18:07:45.365+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : Filtered out: 1
2024-08-22T18:07:45.365+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : -------------------------------
2024-08-22T18:07:45.365+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : Total change sets: 3
2024-08-22T18:07:45.365+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : FILTERED CHANGE SETS SUMMARY
2024-08-22T18:07:45.365+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : DBMS mismatch: 1
2024-08-22T18:07:45.365+05:30 INFO 26224 — [common-workflow] [ main] liquibase.util : Update summary generated
2024-08-22T18:07:45.368+05:30 INFO 26224 — [common-workflow] [ main] liquibase.lockservice : Successfully released change log lock
2024-08-22T18:07:45.370+05:30 INFO 26224 — [common-workflow] [ main] liquibase.command : Command execution complete
2024-08-22T18:07:45.371+05:30 INFO 26224 — [common-workflow] [ main] o.f.app.engine.impl.AppEngineImpl : AppEngine default created
2024-08-22T18:07:45.457+05:30 INFO 26224 — [common-workflow] [ main] c.b.s.w.r.s.config.SpringBeanContext : Spring container initialized, Context Set: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@2c78324b, started on Thu Aug 22 18:07:37 IST 2024
2024-08-22T18:07:46.331+05:30 INFO 26224 — [common-workflow] [ main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 1 endpoint beneath base path ‘/actuator’
2024-08-22T18:07:46.448+05:30 INFO 26224 — [common-workflow] [ main] o.f.j.s.i.a.AbstractAsyncExecutor : Starting up the async job executor [org.flowable.spring.job.service.SpringAsyncExecutor] for engine cmmn
2024-08-22T18:07:46.465+05:30 INFO 26224 — [common-workflow] [ Thread-3] o.f.j.s.i.a.ResetExpiredJobsRunnable : starting to reset expired jobs for engine cmmn
2024-08-22T18:07:46.465+05:30 INFO 26224 — [common-workflow] [ main] o.f.j.s.i.a.AbstractAsyncExecutor : Starting up the async job executor [org.flowable.spring.job.service.SpringAsyncExecutor] for engine bpmn
2024-08-22T18:07:46.465+05:30 INFO 26224 — [common-workflow] [ Thread-1] o.f.j.s.i.a.AcquireAsyncJobsDueRunnable : starting to acquire async jobs due for engine cmmn
2024-08-22T18:07:46.465+05:30 INFO 26224 — [common-workflow] [ Thread-2] o.f.j.s.i.a.AcquireTimerJobsRunnable : starting to acquire async jobs due for engine cmmn
2024-08-22T18:07:46.468+05:30 INFO 26224 — [common-workflow] [ Thread-5] o.f.j.s.i.a.AcquireTimerJobsRunnable : starting to acquire async jobs due for engine bpmn
2024-08-22T18:07:46.468+05:30 INFO 26224 — [common-workflow] [ Thread-6] o.f.j.s.i.a.ResetExpiredJobsRunnable : starting to reset expired jobs for engine bpmn
2024-08-22T18:07:46.468+05:30 INFO 26224 — [common-workflow] [ Thread-4] o.f.j.s.i.a.AcquireAsyncJobsDueRunnable : starting to acquire async jobs due for engine bpmn
2024-08-22T18:07:46.468+05:30 INFO 26224 — [common-workflow] [ main] o.f.s.c.DefaultAutoDeploymentStrategy : Deploying resources [file [C:\Users\617361303\Downloads\common-workflow\common-workflow\target\classes\processes\workflow.bpmn]] for engine org.flowable.engine.impl.ProcessEngineImpl@20b56542 deployment name hint SpringBootAutoDeployment
2024-08-22T18:07:46.523+05:30 INFO 26224 — [common-workflow] [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port 8090 (http) with context path ‘/’
2024-08-22T18:07:46.547+05:30 INFO 26224 — [common-workflow] [ main] c.e.w.c.CommonWorkflowApplication : Started CommonWorkflowApplication in 9.241 seconds (process running for 9.875)
2024-08-22T18:07:54.771+05:30 INFO 26224 — [common-workflow] [nio-8090-exec-2] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet ‘dispatcherServlet’
2024-08-22T18:07:54.771+05:30 INFO 26224 — [common-workflow] [nio-8090-exec-2] o.s.web.servlet.DispatcherServlet : Initializing Servlet ‘dispatcherServlet’
2024-08-22T18:07:54.772+05:30 INFO 26224 — [common-workflow] [nio-8090-exec-2] o.s.web.servlet.DispatcherServlet : Completed initialization in 0 ms
2024-08-22T18:07:58.980+05:30 ERROR 26224 — [common-workflow] [nio-8090-exec-3] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path threw exception [Request processing failed: org.flowable.common.engine.api.FlowableObjectNotFoundException: no deployed process definition found with id ‘workflow’] with root cause

hey i have shared please tell me what i am doing wrong

This to me shows that the file does get deployed.

I would advise you to check what you have in the DB, especially in the ACT_RE_PROCDEF table.

But what are the reasons its not getting deployed? previously when i was creating projects and working with flowable it was working the same way

and i just checked the Db it is getting deployed
as you can seee but it says no deployement ID found

As you can see in the DB it does get deployed. Why you are seeing the errors I cannot explain. Can you please create an example project that we can run and try it out. With what you have shared so far we cannot say why it isn’t working for you.

Cheers,
Filip



@Service
public class FlowableService {
@Autowired
private RuntimeService runtimeService;
@Autowired
private TaskService taskService;

public void startprocess(){
    ProcessInstanceinstance=runtimeService.startProcessInstanceById("startProcess");
    System.out.println("The process Instance Id "+instance.getProcessInstanceId());

}

}

@RestController
@RequestMapping(“/workflow”)
public class Controller {
@Autowired
private FlowableService service;

@PostMapping("/start")
public void startProcess(){
    service.startprocess();
}

}

@kartik please create a github repository with the code and with steps that we need to run to be able to get the error. Just sharing code here is not enough.

okay but if you could atleast tell me the possible reason why the process which is deployed is not getting recognised?

Hey,
ProcessInstance processInstance=runtimeService.startProcessInstanceById(“startprocess”,variables);
is not meant to be called like that.

Starts a new process instance in the exactly specified version of the process definition with the given id.
 *
 * @param processDefinitionId
 *     the id of the process definition, cannot be null.
 * @throws FlowableObjectNotFoundException
 *     when no process definition is deployed with the given key.
 */
ProcessInstance startProcessInstanceById(String processDefinitionId);

The processDefinitionId is the unique ID created during deployment. If you deploy a new version of the same process, you will get a new processDefinitionId.
What you want to use is the

runtimeService.startProcessInstanceByKey(“startProcess”,variables);

Greetings

Christopher

2 Likes