Workflow deployed , no entry in ACT_RE_PROCDEF

Working on flowable 5.22.0 spring boot version…

Deployed a workflow using the following code.

repositoryService.createDeployment().name(name)
.addInputStream(name, new FileInputStream(new File(“bpmn file”)))
.category(category)
.tenantId(tenant)
.deploy().getId();

With the above statement it created entry into the table ACT_RE_DEPLOYMENT & ACT_GE_BYTEARRAY… But no entry into the table ACT_RE_PROCDEF.

Because of the missing entry into table ACT_RE_PROCDEF , I can’t start new workflow instance…

Not sure whats the issue, Can someone please help me identify the issue…

Here is my gradle dependencies…

compile(“org.flowable:flowable-spring-boot-starter-basic:5.22.0”)
compile(“org.flowable:flowable-spring-boot-starter-rest-api:5.22.0”)
compile(“org.springframework.boot:spring-boot-starter”)
compile(“org.springframework.boot:spring-boot-starter-web”)
compile(“org.springframework.boot:spring-boot-starter-actuator”)
compile(“org.flowable:flowable-spring-boot-starter-jpa:5.22.0”)
compile(“org.postgresql:postgresql:9.2-1003-jdbc4”)
compile(“org.springframework.security.oauth:spring-security-oauth2”)
compile(“org.springframework.boot:spring-boot-starter-security”)
compile(“org.springframework.boot:spring-boot-starter-jdbc”)
compile(“com.fasterxml.jackson.dataformat:jackson-dataformat-xml”)
compile(“org.springframework.boot:spring-boot-starter-logging”)

Hi,

It’s important that the name variable in the addInputStream method ends with .bpmn or .bpmn20.xml. Only files with that extension will be picked up as BPMN files and parsed and deployed.

Best regards,

Tijs

Thanks for quick reply … it worked…