As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
List<Task> tasks = taskService.createTaskQuery() .processVariableValueEquals("status", "12") .orderByProcessInstanceId().asc().list();
<br> /** <br> * Only select process instances which have a global variable with the given value. The type<br> * of variable is determined based on the value, using types configured in <br> * {@link ProcessEngineConfiguration#getVariableTypes()}. <br> * Byte-arrays and {@link Serializable} objects (which are not primitive type wrappers)<br> * are not supported.<br> * @param name name of the variable, cannot be null.<br> */<br> ProcessInstanceQuery variableValueEquals(String name, Object value);<br>
ProcessInstanceQuery (runtimeService.create….):<br> /** <br> * Only select process instances which have a global variable with the given value. The type<br> * of variable is determined based on the value, using types configured in <br> * {@link ProcessEngineConfiguration#getVariableTypes()}. <br> * Byte-arrays and {@link Serializable} objects (which are not primitive type wrappers)<br> * are not supported.<br> * @param name name of the variable, cannot be null.<br> */<br> ProcessInstanceQuery variableValueEquals(String name, Object value);<br>
It help a lot of you read through our API-javadocs for a start, before asking on the forum. We try to make the API as clear as possible so it takes just a few minutes to run though it.http://activiti.org/javadocs/index.html
No worries… Just making sure our hard-work in the documentation pays off in the best possible way