02-02-2013 04:06 PM
Feb 2, 2013 5:59:51 PM org.activiti.engine.impl.bpmn.deployer.BpmnDeployer deploy
INFO: Processing resource AprovacaoCredito.bpmn20.xml
Feb 2, 2013 5:59:51 PM com.vaadin.Application terminalError
SEVERE: Terminal error:
com.vaadin.terminal.gwt.server.UploadException: Upload failed
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.streamToReceiver(AbstractCommunicationManager.java:626)
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleSimpleMultipartFileUpload(AbstractCommunicationManager.java:479)
at com.vaadin.terminal.gwt.server.CommunicationManager.handleFileUpload(CommunicationManager.java:257)
at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:495)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:679)
Caused by: com.vaadin.event.ListenerMethod$MethodException
Cause: java.lang.StackOverflowError
at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:532)
at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:164)
at com.vaadin.ui.AbstractComponent.fireEvent(AbstractComponent.java:1219)
at com.vaadin.ui.Upload.fireUploadSuccess(Upload.java:744)
at com.vaadin.ui.Upload$1.streamingFinished(Upload.java:1022)
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.streamToReceiver(AbstractCommunicationManager.java:603)
… 16 more
Caused by: java.lang.StackOverflowError
at org.apache.xerces.util.URI.isConformantSchemeName(URI.java:1213)
at org.apache.xerces.util.URI.setScheme(URI.java:904)
at org.apache.xerces.util.URI.initializeScheme(URI.java:576)
at org.apache.xerces.util.URI.initialize(URI.java:400)
at org.apache.xerces.util.URI.<init>(URI.java:211)
at org.apache.xerces.util.URI.<init>(URI.java:195)
at org.apache.xerces.impl.XMLEntityManager.expandSystemId(XMLEntityManager.java:1140)
at org.apache.xerces.impl.XMLEntityManager.resolveEntity(XMLEntityManager.java:581)
at org.apache.xerces.impl.xs.XMLSchemaLoader.xsdToXMLInputSource(XMLSchemaLoader.java:625)
at org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSchemaLoader.java:580)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:489)
at org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSchemaLoader.java:588)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:489)
at org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSchemaLoader.java:588)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:489)
at org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSchemaLoader.java:588)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:489)
at org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSchemaLoader.java:588)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:489)
at org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSchemaLoader.java:588)
<dependency>
<groupId>org.activiti</groupId>
<artifactId>activiti-engine</artifactId>
<version>5.10</version>
</dependency>
<dependency>
<groupId>org.activiti</groupId>
<artifactId>activiti-spring</artifactId>
<version>5.10</version>
</dependency>
<bean id="dataSourceBean"
class="org.springframework.jdbc.datasource.SimpleDriverDataSource">
<property name="driverClass" value="#{props.bpmjdbcdriver}" />
<property name="url" value="#{props.bpmjdbcurl}" />
<property name="username" value="#{props.bpmjdbcusername}" />
<property name="password" value="#{props.bpmjdbcpassword}" />
</bean>
<bean id="transactionManagerBean"
class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="dataSourceBean" />
</bean>
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
<property name="dataSource" ref="dataSourceBean" />
<property name="transactionManager" ref="transactionManagerBean" />
<property name="databaseSchemaUpdate" value="true" />
<property name="jobExecutorActivate" value="false" />
</bean>
<bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean">
<property name="processEngineConfiguration" ref="processEngineConfiguration" />
</bean>
<bean id="repositoryService" factory-bean="processEngine"
factory-method="getRepositoryService" />
<bean id="runtimeService" factory-bean="processEngine"
factory-method="getRuntimeService" />
<bean id="taskService" factory-bean="processEngine"
factory-method="getTaskService" />
<bean id="historyService" factory-bean="processEngine"
factory-method="getHistoryService" />
<bean id="managementService" factory-bean="processEngine"
factory-method="getManagementService" />
<bean id="identityService" factory-bean="processEngine"
factory-method="getIdentityService" />
<bean id="formService" factory-bean="processEngine"
factory-method="getFormService" />
public void deployProcessBar(String fileName, byte [] barBytes) throws ExecutionException {
DeploymentBuilder deploymentBuilder = repositoryService.createDeployment().name(fileName);
InputStream byteArrayInputStream = new ByteArrayInputStream(bytes);
ZipInputStream zipInputStream = new ZipInputStream(byteArrayInputStream);
deploymentBuilder.addZipInputStream(zipInputStream).deploy();
try {
byteArrayInputStream.close();
} catch (IOException e) {
throw new ExecutionException(e);
}
}
02-04-2013 04:10 AM
at org.apache.xerces.impl.XMLEntityManager.expandSystemId(XMLEntityManager.java:1140)
at org.apache.xerces.impl.XMLEntityManager.resolveEntity(XMLEntityManager.java:581)
at org.apache.xerces.impl.xs.XMLSchemaLoader.xsdToXMLInputSource(XMLSchemaLoader.java:625)
at org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSchemaLoader.java:580)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:489)
at org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSchemaLoader.java:588)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:489)
at org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSchemaLoader.java:588)
02-04-2013 01:52 PM
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlnsmgdc="http://www.omg.org/spec/DD/20100524/DC" xmlnsmgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.ye.com/bpmn">
<process id="aprovacaoCredito" name="Revisar e aprovar Documentação para Carta de Crédito" isExecutable="true" activiti:candidateStarterGroups="Agente de Crédito,Agente Administrativo">
<documentation>Fluxo para análise de documentação de carta de crédito, tal como análise do contrato.</documentation>
<startEvent id="startevent1" name="Start">
<extensionElements>
<activiti:formProperty id="nomeCliente" name="Nome do Cliente" type="string" variable="nomeCliente" required="true"></activiti:formProperty>
<activiti:formProperty id="valorSolicitado" name="Valor Solicitado" type="string" variable="valorSolicitado" required="true"></activiti:formProperty>
<activiti:formProperty id="numeroParcelas" name="Numero de Parcelas" type="string" variable="numeroParcelas" required="true"></activiti:formProperty>
<activiti:formProperty id="phoneNumber" name="Telefone Cliente" type="string" variable="telefoneCliente" required="true"></activiti:formProperty>
<activiti:formProperty id="identidadeCliente" name="Documento com Foto" type="string" variable="identidadeCliente" required="true"></activiti:formProperty>
<activiti:formProperty id="comprovanteEnderecoCliente" name="Comprovante de Endereço" type="string" variable="comprovanteEnderecoCliente" required="true"></activiti:formProperty>
<activiti:formProperty id="comprovanteConsultaSpcSerasaCliente" name="Comprovante de Consulta SPC/Serasa" type="string" variable="comprovanteConsultaSpcSerasaCliente" required="true"></activiti:formProperty>
<activiti:formProperty id="contrachequeCliente" name="Contracheque" type="string" variable="contrachequeCliente" required="true"></activiti:formProperty>
<activiti:formProperty id="contratoEmprestimo" name="Contrato de Empréstimo" type="string" variable="contratoEmprestimo" required="true"></activiti:formProperty>
<activiti:formProperty id="contratoCliente" name="Contrato de Empréstimo" type="yeAttachment" required="true"></activiti:formProperty>
</extensionElements>
</startEvent>
<userTask id="reviewDocuments" name="Revisar Documentação" activiti:candidateGroups="Gerência">
<extensionElements>
<activiti:formProperty id="aprovarCredito" name="Deseja aprovar ou rejeitar a solicitação de Empréstimo?" type="boolean" variable="aprovarCredito" required="true">
<activiti:value id="aprovarEmprestimo" name="Aprovar"></activiti:value>
<activiti:value id="negarEmprestimo" name="Rejeitar"></activiti:value>
</activiti:formProperty>
<activiti:formProperty id="aprovacaoObservacao" name="Observação" type="string"></activiti:formProperty>
</extensionElements>
</userTask>
<sequenceFlow id="flow1" sourceRef="startevent1" targetRef="reviewDocuments"></sequenceFlow>
<serviceTask id="smsTask" name="Enviar SMS notificando Aprovação" activiti:class="com.ye.ye.bpm.tasks.SmsTask" activiti:resultVariableName="Sua solicitacao de crédito foi aprovada."></serviceTask>
<serviceTask id="emailTask" name="Notifica o Agente de Crédito a rejeição do Empréstimo" activiti:class="com.ye.ye.bpm.tasks.EmailTask"></serviceTask>
<endEvent id="terminateendevent1" name="TerminateEndEvent">
<terminateEventDefinition></terminateEventDefinition>
</endEvent>
<sequenceFlow id="flow7" sourceRef="smsTask" targetRef="terminateendevent1"></sequenceFlow>
<sequenceFlow id="flow8" sourceRef="emailTask" targetRef="terminateendevent1"></sequenceFlow>
<exclusiveGateway id="exclusivegateway1" name="Exclusive Gateway"></exclusiveGateway>
<sequenceFlow id="flow9" sourceRef="reviewDocuments" targetRef="exclusivegateway1"></sequenceFlow>
<sequenceFlow id="flow10" sourceRef="exclusivegateway1" targetRef="smsTask">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${aprovarCredito == 'true'}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="flow11" sourceRef="exclusivegateway1" targetRef="emailTask">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${aprovarCredito == 'false'}]]></conditionExpression>
</sequenceFlow>
<textAnnotation id="textannotation1">
<text>Para iniciar o Processo, é necessário anexar os seguintes documentos:
- Documento de Identificação com Foto
- Comprovante de Endereço
- Comprovante de consulta SPC/Serasa
- Contracheque
- Contrato assinado</text>
</textAnnotation>
</process>
<bpmndi:BPMNDiagram id="BPMNDiagram_aprovacaoCredito">
<bpmndi:BPMNPlane bpmnElement="aprovacaoCredito" id="BPMNPlane_aprovacaoCredito">
<bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1">
<omgdc:Bounds height="35.0" width="35.0" x="60.0" y="224.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="reviewDocuments" id="BPMNShape_reviewDocuments">
<omgdc:Bounds height="55.0" width="105.0" x="180.0" y="214.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="smsTask" id="BPMNShape_smsTask">
<omgdc:Bounds height="55.0" width="161.0" x="472.0" y="110.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="emailTask" id="BPMNShape_emailTask">
<omgdc:Bounds height="55.0" width="161.0" x="472.0" y="320.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="textannotation1" id="BPMNShape_textannotation1">
<omgdc:Bounds height="131.0" width="211.0" x="94.0" y="50.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="terminateendevent1" id="BPMNShape_terminateendevent1">
<omgdc:Bounds height="35.0" width="35.0" x="770.0" y="224.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="exclusivegateway1" id="BPMNShape_exclusivegateway1">
<omgdc:Bounds height="40.0" width="40.0" x="370.0" y="221.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
<omgdi:waypoint x="95.0" y="241.0"></omgdi:waypoint>
<omgdi:waypoint x="180.0" y="241.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow7" id="BPMNEdge_flow7">
<omgdi:waypoint x="633.0" y="137.0"></omgdi:waypoint>
<omgdi:waypoint x="787.0" y="137.0"></omgdi:waypoint>
<omgdi:waypoint x="787.0" y="224.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow8" id="BPMNEdge_flow8">
<omgdi:waypoint x="633.0" y="347.0"></omgdi:waypoint>
<omgdi:waypoint x="787.0" y="347.0"></omgdi:waypoint>
<omgdi:waypoint x="787.0" y="259.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow9" id="BPMNEdge_flow9">
<omgdi:waypoint x="285.0" y="241.0"></omgdi:waypoint>
<omgdi:waypoint x="370.0" y="241.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow10" id="BPMNEdge_flow10">
<omgdi:waypoint x="390.0" y="221.0"></omgdi:waypoint>
<omgdi:waypoint x="390.0" y="137.0"></omgdi:waypoint>
<omgdi:waypoint x="472.0" y="137.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow11" id="BPMNEdge_flow11">
<omgdi:waypoint x="390.0" y="261.0"></omgdi:waypoint>
<omgdi:waypoint x="390.0" y="347.0"></omgdi:waypoint>
<omgdi:waypoint x="472.0" y="347.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>
02-04-2013 01:54 PM
02-05-2013 07:28 AM
Caused by: org.activiti.engine.ActivitiIllegalArgumentException: unknown type 'yeAttachment' contratoCliente
org.activiti.engine.ActivitiException: Errors while parsing:
'resultVariableName' not supported for service tasks using 'class' or 'delegateExpression | serviceTask | line 28 | column 187
02-05-2013 10:51 AM
02-05-2013 12:49 PM
02-06-2013 03:42 AM
02-06-2013 06:33 AM
02-06-2013 09:36 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.