Questions on adding process definition

Hello,

I have 2 questions:

  1. How to add a process definition using RepositoryService?
  2. How to add a process definition to existing deployment?

Regards,
Vitaliy

Hi @yilativs,

Re 1) A process definition can only be added by creating a new deployment.
Re 2) A process definition cannot be added to an existing deployment afterwards. You have to create a new deployment.

Maybe you could explain what exactly you mean with “…add a process definition…”.

Cheers,
Roman

In addition to questions above:

  • What is you use case?
  • What do you want do achieve?
  1. A process definition can only be added by creating a new deployment.
  2. A process definition cannot be added to an existing deployment afterwards. You have to create a new deployment.

If process definition and process deployment are so tightly coupled, what is the purpose of having them both?
Is there any article in documentation(beside javadocs) that describes both of them?

Re In addition to questions above: What is you use case? What do you want do achieve?

I want to load business processes in Camunda Engine dynamically during the program execution.