cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any way by which i can query process on the basis of value of process variables defined in it

akshayburjwal
Champ on-the-rise
Champ on-the-rise

i have a set of instantiated process and i want to query some Process on the basis of value of process variables present in process. 

1 ACCEPTED ANSWER
4 REPLIES 4

I am new to Activiti Development. Where would the user perform these queries?

ryandawson
Elite Collaborator
Elite Collaborator

I assumed the context for this question was running the activiti engine embedded in a java process (so not from the UI), which is most common with the community edition. But a runtimeService and other engine services can also be used within a service task as part of an activiti process. Here is an example - activiti-examples/VariableToDataModelMapping.java at master · cijujoseph/activiti-examples · GitHub  (the example uses AlfrescoRuntimeDataModelService but RuntimeService could be autowired in the same way).

akshayburjwal
Champ on-the-rise
Champ on-the-rise

Thanks bro.