08-23-2014 03:23 AM
String taskId = request.getParameter("taskId").toString();
List<FormProperty> formPropList = formService.getTaskFormData(taskId).getFormProperties();
Map<String, String> properties = new HashMap<String, String>();
for (FormProperty formProperty : formPropList) {
properties.put(formProperty.getId(), request.getParameter(formProperty.getId()));
}
formService.submitTaskFormData(taskId, properties);
Aug 23, 2014 12:35:21 PM org.activiti.engine.impl.bpmn.deployer.BpmnDeployer deploy
INFO: Processing resource DocumentApprove140821.bpmn
Aug 23, 2014 12:35:22 PM org.activiti.engine.impl.bpmn.deployer.BpmnDeployer deploy
INFO: Processing resource DocumentApprove140821.myProcess.png
Exception in thread "main" org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: org.apache.ibatis.reflection.ReflectionException: Could not set property 'byteArrayRef' of 'VariableInstanceEntity[id=19105, name=docId, type=string]' with value 'ByteArrayRef[id=null, name=null, entity=null]' Cause: org.apache.ibatis.reflection.ReflectionException: There is no setter for property named 'byteArrayRef' in 'class org.activiti.engine.impl.persistence.entity.VariableInstanceEntity'
### The error may involve org.activiti.engine.impl.persistence.entity.VariableInstanceEntity.selectVariablesByExecutionId-Inline
### The error occurred while setting parameters
### Cause: org.apache.ibatis.reflection.ReflectionException: Could not set property 'byteArrayRef' of 'VariableInstanceEntity[id=19105, name=docId, type=string]' with value 'ByteArrayRef[id=null, name=null, entity=null]' Cause: org.apache.ibatis.reflection.ReflectionException: There is no setter for property named 'byteArrayRef' in 'class org.activiti.engine.impl.persistence.entity.VariableInstanceEntity'
at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:8)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:61)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:53)
at org.activiti.engine.impl.db.DbSqlSession.selectListWithRawParameter(DbSqlSession.java:305)
at org.activiti.engine.impl.db.DbSqlSession.selectList(DbSqlSession.java:296)
at org.activiti.engine.impl.db.DbSqlSession.selectList(DbSqlSession.java:291)
at org.activiti.engine.impl.db.DbSqlSession.selectList(DbSqlSession.java:272)
at org.activiti.engine.impl.persistence.entity.VariableInstanceEntityManager.findVariableInstancesByExecutionId(VariableInstanceEntityManager.java:34)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.loadVariableInstances(ExecutionEntity.java:1036)
at org.activiti.engine.impl.persistence.entity.VariableScopeImpl.ensureVariableInstancesInitialized(VariableScopeImpl.java:63)
at org.activiti.engine.impl.persistence.entity.VariableScopeImpl.hasVariableLocal(VariableScopeImpl.java:138)
at org.activiti.engine.impl.persistence.entity.VariableScopeImpl.setVariable(VariableScopeImpl.java:244)
at org.activiti.engine.impl.persistence.entity.VariableScopeImpl.setVariable(VariableScopeImpl.java:240)
at org.activiti.engine.impl.form.FormPropertyHandler.submitFormProperty(FormPropertyHandler.java:110)
at org.activiti.engine.impl.form.DefaultFormHandler.submitFormProperties(DefaultFormHandler.java:97)
at org.activiti.engine.impl.cmd.SubmitTaskFormCmd.execute(SubmitTaskFormCmd.java:47)
at org.activiti.engine.impl.cmd.NeedsActiveTaskCmd.execute(NeedsActiveTaskCmd.java:61)
at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24)
at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57)
at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:47)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:45)
at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)
at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)
at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35)
at org.activiti.engine.impl.FormServiceImpl.submitTaskFormData(FormServiceImpl.java:70)
at com.aura.web.WorkFlowTest.main(WorkFlowTest.java:50)
Caused by: org.apache.ibatis.reflection.ReflectionException: Could not set property 'byteArrayRef' of 'VariableInstanceEntity[id=19105, name=docId, type=string]' with value 'ByteArrayRef[id=null, name=null, entity=null]' Cause: org.apache.ibatis.reflection.ReflectionException: There is no setter for property named 'byteArrayRef' in 'class org.activiti.engine.impl.persistence.entity.VariableInstanceEntity'
at org.apache.ibatis.reflection.wrapper.BeanWrapper.setBeanProperty(BeanWrapper.java:154)
at org.apache.ibatis.reflection.wrapper.BeanWrapper.set(BeanWrapper.java:36)
at org.apache.ibatis.reflection.MetaObject.setValue(MetaObject.java:120)
at org.apache.ibatis.executor.resultset.FastResultSetHandler.applyPropertyMappings(FastResultSetHandler.java:224)
at org.apache.ibatis.executor.resultset.FastResultSetHandler.getRowValue(FastResultSetHandler.java:196)
at org.apache.ibatis.executor.resultset.FastResultSetHandler.handleRowValues(FastResultSetHandler.java:145)
at org.apache.ibatis.executor.resultset.FastResultSetHandler.handleResultSet(FastResultSetHandler.java:121)
at org.apache.ibatis.executor.resultset.FastResultSetHandler.handleResultSets(FastResultSetHandler.java:98)
at org.apache.ibatis.executor.statement.PreparedStatementHandler.query(PreparedStatementHandler.java:40)
at org.apache.ibatis.executor.statement.RoutingStatementHandler.query(RoutingStatementHandler.java:55)
at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:41)
at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:94)
at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:72)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:59)
… 25 more
Caused by: org.apache.ibatis.reflection.ReflectionException: There is no setter for property named 'byteArrayRef' in 'class org.activiti.engine.impl.persistence.entity.VariableInstanceEntity'
at org.apache.ibatis.reflection.Reflector.getSetInvoker(Reflector.java:300)
at org.apache.ibatis.reflection.MetaClass.getSetInvoker(MetaClass.java:97)
at org.apache.ibatis.reflection.wrapper.BeanWrapper.setBeanProperty(BeanWrapper.java:146)
… 38 more
Java Result: 1
List<FormProperty> formPropList = formService.getStartFormData(pdefId).getFormProperties();
Map<String, String> properties = new HashMap<String, String>();
for (FormProperty formProperty : formPropList) {
properties.put(formProperty.getId(), request.getParameter(formProperty.getId()));
}
formService.submitStartFormData(pdefId, properties);
08-30-2014 01:48 PM
08-31-2014 10:23 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.