04-21-2011 04:51 AM
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" >
<property name="url" value="jdbc:mysql://localhost:3306/activiti?autoReconnect=true" />
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
<property name="username" value="activiti" />
<property name="password" value="activiti" />
<property name="defaultAutoCommit" value="false" />
<!– confirm these properties –>
<!– <property name="jdbcMaxActiveConnections" value="300" />
<property name="jdbcMaxIdleConnections" value="30" /> –>
</bean>
<bean id="processEngineConfiguration" class="org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration">
<property name="dataSource" ref="dataSource" />
<property name="databaseType" value="mysql" />
<property name="databaseSchemaUpdate" value="true" />
<property name="jpaPersistenceUnitName" value="GAEPU" />
<property name="jpaHandleTransaction" value="true" />
<property name="jpaCloseEntityManager" value="true" />
<property name="history" value="audit" />
</bean>
private void updatePedidoAutorizacao(PedidoAutorizacao pa) throws Exception {
FacesContext facesContext = FacesContext.getCurrentInstance();
PedidoAutorizacaoJpaController authorizationRequestController = (PedidoAutorizacaoJpaController) facesContext.getApplication().getELResolver().getValue(facesContext.getELContext(), null, "PedidoAutorizacaoJpa");
authorizationRequestController.edit(pa);
}
Internal Exception: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry 'SomeCo' for key 'designacao'
04-21-2011 05:39 AM
if (pa.getEnviadoPortaria()) {
pa.setEstadoPedidoAutorizacao(estadoPedidoAutorizacaoJpa.findEstadoPedidoAutorizacao(AuthorizatonRequestStatus.ENVIADO_PORTARIA.getId()));
04-21-2011 11:02 AM
pa.setEstadoPedidoAutorizacao(estadoPedidoAutorizacaoJpa.findEstadoPedidoAutorizacao(AuthorizatonRequestStatus.ENVIADO_PORTARIA.getId()));
04-22-2011 03:12 AM
04-26-2011 08:40 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.