05-17-2011 11:35 AM
org.apache.ibatis.exceptions.PersistenceException:
### Error updating database. Cause: com.ibm.websphere.ce.cm.DuplicateKeyException: ORA-00001: unique constraint (SWT1CO.SYS_C0041136)
violated
### The error may involve org.activiti.engine.impl.persistence.entity.VariableInstanceEntity.insertByteArray-Inline
### The error occurred while setting parameters
### Cause: com.ibm.websphere.ce.cm.DuplicateKeyException: ORA-00001: unique constraint (SWT1CO.SYS_C0041136) violated
at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:8)
at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:120)
at org.apache.ibatis.session.defaults.DefaultSqlSession.insert(DefaultSqlSession.java:107)
at org.activiti.engine.impl.db.DbSqlSession.flushInserts(DbSqlSession.java:410)
at org.activiti.engine.impl.db.DbSqlSession.flush(DbSqlSession.java:337)
at org.activiti.engine.impl.interceptor.CommandContext.flushSessions(CommandContext.java:147)
at org.activiti.engine.impl.interceptor.CommandContext.close(CommandContext.java:103)
at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:49)
at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
at org.activiti.engine.impl.RuntimeServiceImpl.startProcessInstanceByKey(RuntimeServiceImpl.java:49)
ProcessEngineConfiguration processEngineConfiguration = ProcessEngineConfiguration.createProcessEngineConfigurationFromResourceDefault();
processEngineConfiguration.setDataSource(this.activitiDataSource);
processEngineConfiguration.setTransactionsExternallyManaged(true);
processEngineConfiguration.setDatabaseSchemaUpdate("false");
processEngineConfiguration.setHistory("full");
ProcessEngine processEngine = processEngineConfiguration.buildProcessEngine();
05-18-2011 05:14 AM
05-18-2011 06:58 AM
05-18-2011 07:04 AM
05-18-2011 10:25 AM
<process id="wfTest" name="Test">
<startEvent id="start" name="Start" />
<sequenceFlow id="sequenceflow1" sourceRef="start" targetRef="masterDataService" />
<serviceTask id="masterDataService" name="MD Service"
activiti:class="test.EjbWorkflowTask">
<extensionElements>
<activiti:field name="ejbJNDIName" stringValue="ejblocal:MasterDataService/local" />
<activiti:field name="ejbMethod" stringValue="handleMessage" />
</extensionElements>
</serviceTask>
<sequenceFlow id="sequenceflow2" sourceRef="masterDataService" targetRef="endOK">
<conditionExpression xsi:type="tFormalExpression">
<![CDATA[${WorkflowData.nodeResult == WorkflowData.nodeResultOK}]]>
</conditionExpression>
</sequenceFlow>
<sequenceFlow id="sequenceflow3" sourceRef="masterDataService" targetRef="endError">
<conditionExpression xsi:type="tFormalExpression">
<![CDATA[${WorkflowData.nodeResult == WorkflowData.nodeResultERROR}]]>
</conditionExpression>
</sequenceFlow>
<endEvent id="endOK" name="End" />
<endEvent id="endError" name="End mit Fehler" />
</process>
05-18-2011 10:56 AM
for (String key : processes) {
startTransaction();
runtimeService.startProcessInstanceByKey(key, variables);
commitTransaction();
}
It would be usful to see your code.05-19-2011 02:06 PM
05-20-2011 04:18 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.