How to obtain deployment-id?

309 views
Skip to first unread message

sanjay....@gmail.com

unread,
Feb 22, 2016, 1:55:45 AM2/22/16
to camunda BPM users
I would like to call the RepositoryService.getDeploymentResourceNames(String) [1] method in the Java API. The string argument is a "deploymentId", but I am unable to find any way to get the deploymentId. What am I missing?

Thanks for any help,

- Sanjay

[1] https://docs.camunda.org/javadoc/camunda-bpm-platform/7.4/org/camunda/bpm/engine/RepositoryService.html#getDeploymentResourceNames(java.lang.String)

Philipp Ossler

unread,
Feb 22, 2016, 2:32:19 AM2/22/16
to camunda BPM users, sanjay....@gmail.com
Hi Sanjay,

you can retrieve this id from a deployment. For example, when you create a deployment using the RepositoryService. Or you can query deployments using the RepositoryService: createDeploymentQuery(). On a deployment you can call the getId() method to get the deployment id.

Greetings,
Philipp

Sanjay Dasgupta

unread,
Feb 22, 2016, 2:46:00 AM2/22/16
to camunda-...@googlegroups.com
Hi Philipp,

Thanks for your help. 

I was not being able to find a deployment instance, but the ManagementService's  "getRegisteredDeployments()" method seems to be what I need.

Regards,
- Sanjay

--
You received this message because you are subscribed to a topic in the Google Groups "camunda BPM users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/camunda-bpm-users/ZTmQGQngA3Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to camunda-bpm-us...@googlegroups.com.
To post to this group, send email to camunda-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/camunda-bpm-users/67d7aa7d-92db-4d07-ab35-90779e2e8a67%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages