05-23-2013 02:00 PM
groovy:000> runtimeService.getVariables('28')
===> {documentID=null, companyID=51613, initiator=mwalker, personID=4132522 }
groovy:000> runtimeService.getVariables('28').companyID.class
===> class java.lang.Integer
groovy:000> taskService.createTaskQuery().processVariableValueEquals("companyID", 51613).list()
ERROR org.activiti.engine.ActivitiIllegalArgumentException:
Variables of type ByteArray cannot be used to query
at org.activiti.engine.impl.QueryVariableValue.initialize (QueryVariableValue.java:52)
at org.activiti.engine.impl.TaskQueryImpl.ensureVariablesInitialized (TaskQueryImpl.java:416)
at org.activiti.engine.impl.TaskQueryImpl.executeList (TaskQueryImpl.java:461)
at org.activiti.engine.impl.AbstractQuery.execute (AbstractQuery.java:139)
at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute (CommandExecutorImpl.java:24)
at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute (CommandContextInterceptor.java:61)
at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction (SpringTransactionInterceptor.java:42)
at org.activiti.spring.SpringTransactionInterceptor.execute (SpringTransactionInterceptor.java:40)
at org.activiti.engine.impl.interceptor.LogInterceptor.execute (LogInterceptor.java:31)
at org.activiti.engine.impl.AbstractQuery.list (AbstractQuery.java:113)
at groovysh_evaluate.run (groovysh_evaluate:2)
…
05-23-2013 02:03 PM
05-23-2013 05:02 PM
05-24-2013 04:23 AM
05-24-2013 11:04 AM
05-27-2013 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.