camunda

How to query running instances of a process definition?

岁酱吖の 提交于 2019-12-04 18:17:44
问题 Does the camunda engine provides an API to query all running instances of a certain process? Does this query includes suspended instances too? 回答1: You can query all running process instance of a process using the following code: package org.camunda.bpm; import org.camunda.bpm.engine.ProcessEngine; import org.camunda.bpm.engine.RepositoryService; import org.camunda.bpm.engine.RuntimeService; import org.camunda.bpm.engine.repository.ProcessDefinition; import org.camunda.bpm.engine.runtime

How to query the position of a process instance?

我怕爱的太早我们不能终老 提交于 2019-12-04 17:38:31
I want to get the current position of a single instance in my process. Is it possible to get the name of the activity additionaly to the id as return value? You can get the current position of your process instance using the following code, which will also give you the name of the activity(ies) when the process waits in multiple position. package org.camunda.bpm; import java.util.HashMap; import java.util.List; import java.util.Map; import org.camunda.bpm.engine.ProcessEngine; import org.camunda.bpm.engine.RepositoryService; import org.camunda.bpm.engine.RuntimeService; import org.camunda.bpm

Access service running in docker container from inside another docker container

。_饼干妹妹 提交于 2019-12-04 04:40:14
问题 At the moment I'm running a node.js application inside a docker container which needs to connect to camunda, which runs in another container. I start the containers with the following command docker run -d --restart=always --name camunda -p 8000:8080 camunda/camunda-bpm-platform:tomcat-7.4.0 docker run -d --name app -p 3000:3000 app Both applications are now running and I can access camunda by navigating to my host's IP on port 8000, and running wget http://localhost:8000 -q -O - also returns

How to query running instances of a process definition?

雨燕双飞 提交于 2019-12-03 11:53:21
Does the camunda engine provides an API to query all running instances of a certain process? Does this query includes suspended instances too? You can query all running process instance of a process using the following code: package org.camunda.bpm; import org.camunda.bpm.engine.ProcessEngine; import org.camunda.bpm.engine.RepositoryService; import org.camunda.bpm.engine.RuntimeService; import org.camunda.bpm.engine.repository.ProcessDefinition; import org.camunda.bpm.engine.runtime.ProcessInstance; import java.util.List; public class AllRunningProcessInstances { public List<ProcessInstance>