cancel
Showing results for 
Search instead for 
Did you mean: 

How to create the activiti expressions and listeners

valarmathi
Champ in-the-making
Champ in-the-making
Hi,
How can i use the activiti expressions(java script expressions) and listeners.
Please tell me the flow how can i do it?

Thanks,
Valarmathi P
27 REPLIES 27

valarmathi
Champ in-the-making
Champ in-the-making
I have one more question,i don't know this is chilly question or not.

If i upload the class files (jar file) to the classpath,then i upload the bar file from  the activiti explorer and start the process using explorer is it working fine or not.

Thanks,
Valarmathi P

frederikherema1
Star Contributor
Star Contributor
Yes, that should work fine. Keep in mind, however, most containers (like tomcat) require a restart when in order to pick up classpath-changes… So just dropping the JAR in the lib-folder won't cut it, when using tomcat, reboot is needed.

valarmathi
Champ in-the-making
Champ in-the-making
I did this,when i put the jar file in the lib folder i stopped the tomcat after putting the file i start the tomcat.But in the activiti explorer i can't upload the bar file.

Thanks,
Valarmathi P

valarmathi
Champ in-the-making
Champ in-the-making
Now is working fine.Export the project using eclipse in jar file and i have put it in the jar file into

these folders
C:\activiti-5.8\apps\apache-tomcat-6.0.32\webapps\activiti-explorer\WEB-INF\lib , C:\activiti-5.8\apps\apache-tomcat-6.0.32\webapps\activiti-rest\WEB-INF\lib ,
C:\activiti-5.8\apps\apache-tomcat-6.0.32\lib

Now working fine.Thanks Belgium.

Thanks,
Valarmathi P

amitbajaj
Champ in-the-making
Champ in-the-making
Hey i have got following error while deploying a bpmn20.xml file into activiti 5.15
11:15:13,950 [http-bio-8080-exec-1] INFO org.activiti.engine.impl.bpmn.deployer.BpmnDeployer - Processing resource capex_sanc_note.bpmn20.xml
11:15:14,102 [http-bio-8080-exec-1] INFO org.activiti.engine.impl.bpmn.deployer.BpmnDeployer - Processing resource capex_sanc_note.bpmn20.xml
Mar 30, 2014 11:15:14 AM com.vaadin.Application terminalError
SEVERE: Terminal error:
com.vaadin.event.ListenerMethod$MethodException: Invocation of method uploadFinished in org.activiti.explorer.ui.custom.UploadComponent 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:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.activiti.explorer.filter.ExplorerFilter.doFilter(ExplorerFilter.java:44)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.NullPointerException
at org.activiti.explorer.ui.management.deployment.DeploymentUploadReceiver.showUploadedDeployment(DeploymentUploadReceiver.java:114)
at org.activiti.explorer.ui.management.deployment.DeploymentUploadReceiver.uploadFinished(DeploymentUploadReceiver.java:73)
at org.activiti.explorer.ui.custom.UploadComponent.uploadFinished(UploadComponent.java:197)
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)

trademak
Star Contributor
Star Contributor
Do you have this issue with every bpmn20.xml file?

Best regards,

benreich
Champ in-the-making
Champ in-the-making
I have the same with every file.

benreich
Champ in-the-making
Champ in-the-making
I have the same with every file.