cancel
Showing results for 
Search instead for 
Did you mean: 

How to import existing bpmn file into the modeler?

kaech
Champ in-the-making
Champ in-the-making
I have an existing BPMN file created from scratch, which works fine in the engine.
How can I import this file into the modeler?
13 REPLIES 13

nanda
Champ in-the-making
Champ in-the-making
Hi, I've a related question.
When I try to import a bpmn file exported from other BPMN 2.0 compliant systems [like iGrafx or BlueWorksLive(BWL)], the modeler throws this error message "Import Failed". First of all, the modeler throws two error messages one on top of the other & so not readable at all. I've to click over it to get rid-off the error message thrown on top to see the earlier error message. [I've the screenshots if you'd want me to send to you. I can not attach them here as only .txt file is allowed.]

When I check the catalina log, I get this NullPointerException message in the log:

Apr 16, 2014 6:39:42 AM com.vaadin.Application terminalError
SEVERE: Terminal error:
com.vaadin.event.ListenerMethod$MethodException: Invocation of method uploadFinished in org.activiti.explorer.ui.custom.ImportComponent failed.
        at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:530)
        at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:164)
        at com.vaadin.ui.AbstractComponent.fireEvent(AbstractComponent.java:1219)
        at com.vaadin.ui.Upload.fireUploadInterrupted(Upload.java:731)
        at com.vaadin.ui.Upload$1.streamingFailed(Upload.java:1037)
        at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.streamToReceiver(AbstractCommunicationManager.java:619)
        at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleSimpleMultipartFileUpload(AbstractCommunicationManager.java:476)
        at com.vaadin.terminal.gwt.server.CommunicationManager.handleFileUpload(CommunicationManager.java:259)
        at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:495)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.activiti.explorer.filter.ExplorerFilter.doFilter(ExplorerFilter.java:44)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
        at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:680)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.NullPointerException
        at org.activiti.editor.ui.ImportUploadReceiver.showUploadedDeployment(ImportUploadReceiver.java:149)
        at org.activiti.editor.ui.ImportUploadReceiver.uploadFinished(ImportUploadReceiver.java:81)
        at org.activiti.explorer.ui.custom.ImportComponent.uploadFinished(ImportComponent.java:139)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
      at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:510)
        … 29 more

Can you please help out on that?  

We use Activiti version 5.15.

PS: If I try to export a process definition with bpmn2.0 format & import back between iGrafx & BWL, they work fine. Also, exporting a natively defined process definition in Activiti modeler & importing onto iGrafx & BWL also seem to work fine.

Thanks very much.

trademak
Star Contributor
Star Contributor
Could you provide the BPMN XML file as well?

Thanks,

geostp
Champ in-the-making
Champ in-the-making
Please find the bpmn file exported from Blueworks Live

geostp
Champ in-the-making
Champ in-the-making
Not able to import these files in Activit 5.14

frederikherema1
Star Contributor
Star Contributor
Seems to deploy fine, but the Explorer UI throws an error… Can you try deploying the file through the API (managementService.createDeployment().add…)?

geostp
Champ in-the-making
Champ in-the-making
Hi Frederik,

Thanks for the reply.

Following is the error in Catalina.out . If it is deploying correctly , then it should list in the deployed process definition right?. it is not listing.
Can u help us to resolve the UI error .  I will try with code meanwhile

When I check the catalina log, I get this NullPointerException message in the log:

Apr 16, 2014 6:39:42 AM com.vaadin.Application terminalError
SEVERE: Terminal error:
com.vaadin.event.ListenerMethod$MethodException: Invocation of method uploadFinished in org.activiti.explorer.ui.custom.ImportComponent failed.
at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:530)
at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:164)
at com.vaadin.ui.AbstractComponent.fireEvent(AbstractComponent.java:1219)
at com.vaadin.ui.Upload.fireUploadInterrupted(Upload.java:731)
at com.vaadin.ui.Upload$1.streamingFailed(Upload.java:1037)
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.streamToReceiver(AbstractCommunicationManager.java:619)
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleSimpleMultipartFileUpload(AbstractCommunicationManager.java:476)
at com.vaadin.terminal.gwt.server.CommunicationManager.handleFileUpload(CommunicationManager.java:259)
at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:495)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.activiti.explorer.filter.ExplorerFilter.doFilter(ExplorerFilter.java:44)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:680)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.NullPointerException
at org.activiti.editor.ui.ImportUploadReceiver.showUploadedDeployment(ImportUploadReceiver.java:149)
at org.activiti.editor.ui.ImportUploadReceiver.uploadFinished(ImportUploadReceiver.java:81)
at org.activiti.explorer.ui.custom.ImportComponent.uploadFinished(ImportComponent.java:139)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:510)
… 29 more

frederikherema1
Star Contributor
Star Contributor
It's deploying correctly, but the request that originated the deployment API-call thaws an exception, effectively rolling back the transaction (and the deployment of the process). Seems that the modelData is null -> can you set the isExecutable attribute on the process to true? Activiti only "deploys" executable processes, the rest are ignored. The Explorer UI import expects an executable process…

geostp
Champ in-the-making
Champ in-the-making
Hi Fred,

Thanks for the reply
I have deployed the Initial Project Plan.bpmn
and  KYC Process - Asset Ser_AIS_GM_GCM.bpmn with isExecutable="true". But it is the same error in the catalina.out as mentioned above.
In the UI , when I import  KYC Process - Asset Ser_AIS_GM_GCM.bpmn  , it says "Could not import file only .bpmn or .bpmn20.xml files are supported". When I import Initial Project Plan.bpmn it says two warnings overlapping each other. 1) "Could not import file only .bpmn or .bpmn20.xml files are supported"  2) Could not find BPMN DI information . Make sure file contains BPMN DI Information""
Both the file has filetype  .bpmn as extension.

Thanks
George

geostp
Champ in-the-making
Champ in-the-making
Hi Fred,

Just want to clarify that activiti 5.14 is having automatic layout module. Does it require BPMN DI in the model . Without this will it not import the file.?

Thanks
George