Bpmn deploy problem

With Modeler I was make two bpmn files.

Files: https://drive.google.com/open?id=1VY4Ypi4fhnqjoIP8KBWSD-7JYD5v8t1q

When I deployed it, the demo8.bpmn is deployed perfectly, I can find it in the ‘act_re_procdef’ table and I can use it.
The sleep.bpmn after the deploying I can’t find in the ‘act_re_procdef’ table, so I can’t use.

I don’t know what is the problem with sleep.bpmn file. In the log on deploying (I use debug mod), I don’t see any error, warning.

The logs: in a comment (I can attached only 2 files)

I use spring-boot-start-web 1.5.10 with camunda-bpm-spring-boot-starter 2.2.0 and camunda version is 7.7.0
The modeler: 1.11.3

The deploy script:
public void deploy(String name, InputStream inputStream) {
try {
Deployment deployment = repositoryService.createDeployment().addInputStream(name, inputStream).deploy();
} catch (Exception e) {
throw new IllegalStateException(e);
}
}

What is missing in the sleep.bpmn?
I can’t figure it :frowning:

Is the any error in the logs?

I don’t find :frowning:

Try changing the file name from sleep.bpmn.xml to just sleep.bpmn

1 Like

The deploy(String name, InputStream inputStream) function name parameter will be ‘sleep.bpmn’?

When I was deploy ‘demo8.bpmn’, the name parameter was ‘demo-bpmn’ (It work pefectly).
When I was deploy ‘sleep.bpmn’, the name parameter was ‘sleep’. Do I need to change name parameter to ‘sleep.bpmn’? I ask it, because InputStream don’t know the file name and I think the file name is irrelevant, the content is important (I hope, I don’t miss something).

The name parameter need to end with '.bpmn" and it work perfectly always.

So I generate a random file name with UUID :slight_smile:

1 Like