How Get processInstance for variable?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2013 04:25 AM
hi to all
I want to get process Instance for specific variable,I find query for task
but I need query that get process Instance for "status" variable,it is possible?
I want to get process Instance for specific variable,I find query for task
List<Task> tasks = taskService.createTaskQuery() .processVariableValueEquals("status", "12") .orderByProcessInstanceId().asc().list();
but I need query that get process Instance for "status" variable,it is possible?
Labels:
- Labels:
-
Archive
8 REPLIES 8
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2013 05:01 AM
ProcessInstanceQuery (runtimeService.create….):
/**
* Only select process instances which have a global variable with the given value. The type
* of variable is determined based on the value, using types configured in
* {@link ProcessEngineConfiguration#getVariableTypes()}.
* Byte-arrays and {@link Serializable} objects (which are not primitive type wrappers)
* are not supported.
* @param name name of the variable, cannot be null.
*/
ProcessInstanceQuery variableValueEquals(String name, Object value);

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2013 10:03 AM
ProcessInstanceQuery (runtimeService.create….):
/**
* Only select process instances which have a global variable with the given value. The type
* of variable is determined based on the value, using types configured in
* {@link ProcessEngineConfiguration#getVariableTypes()}.
* Byte-arrays and {@link Serializable} objects (which are not primitive type wrappers)
* are not supported.
* @param name name of the variable, cannot be null.
*/
ProcessInstanceQuery variableValueEquals(String name, Object value);
Thanks

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2013 10:05 AM
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
http://activiti.org/javadocs/index.html

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2013 12:50 AM
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
that's right I'm sorry
i search for "processVariableValueEquals" function in runtiemservices and I was careless.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2013 04:55 AM
No worries… Just making sure our hard-work in the documentation pays off in the best possible way


Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2013 02:31 AM
No worries… Just making sure our hard-work in the documentation pays off in the best possible way
thank you


Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2013 02:34 AM
is there any way to find who is update variable and get updated value in process? :?:
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2013 06:59 AM
new questions in new topic please
