05-28-2012 07:32 AM
Map<String, Object> variables = new HashMap<String, Object>();
variables.put("my_object_class", myObject.getClass().getName());
variables.put("my_object_id", myObject.getId());
runtimeService.startProcessInstanceByKey(processDefinitionKey, variables);
private List<ProcessInstance> returnProcessInstances(MyObject myObject) {
Map<String, Object> variables = new HashMap<String, Object>();
variables.put("my_object_class", myObject.getClass().getName());
variables.put("my_object_id", myObject.getId());
for(Map.Entry<String, Object> variable : variables.entrySet()) {
query.variableValueEquals(variable.getKey(), variable.getValue());
}
return query.list();
}
01-21-2014 08:15 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.