[jBPM Users] - Using Process variables as parameters for method calls
by sebastian.s
Hello everybody,
I was reading the section about java activities and process variables in the userguide and wondering about some things.
In a java or a custom activity I could use
Object getVariable(String key);
to retrieve the values of process variables and then I could go use them as arguments for method calls.
But that means that if I changed the names of the process variables I would need to change the implementation of the java or custom activity, too. So wouldn't it be more convient to be able to specifiy process variables in the process definition which would be passed as arguments? So in case the process variable names changed just the process definition would need need changes but the java class wouldn't need to be touched?
If I got it wrong I'd be happy for some clarifying words. If not this seems to turn out to be a discussion for the dev forum, right?
I was also wondering why you can specify the method name for a java activity in the GPD but not the number of arguments.
Sebastian
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4259029#4259029
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4259029
16 years, 6 months
[jBPM Users] - Re: Unit test succeeds but process does not properly run whe
by sebastian.s
>From the Tomcat log files:
| 07.10.2009 07:55:32 org.hibernate.LazyInitializationException <init>
| SCHWERWIEGEND: could not initialize proxy - no Session
| org.hibernate.LazyInitializationException: could not initialize proxy - no Session
| at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:86)
| at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:140)
| at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:190)
| at org.jbpm.pvm.internal.model.ExecutionImpl_$$_javassist_4.getId(ExecutionImpl_$$_javassist_4.java)
| at org.jbpm.integration.console.ModelAdaptor.adoptTask(ModelAdaptor.java:147)
| at org.jbpm.integration.console.TaskManagementImpl.adoptTasks(TaskManagementImpl.java:69)
| at org.jbpm.integration.console.TaskManagementImpl.getAssignedTasks(TaskManagementImpl.java:49)
| at org.jboss.bpm.console.server.TaskListFacade.getTasksForIdRef(TaskListFacade.java:99)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)
| at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)
| at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)
| at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)
| at org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)
| at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
| at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
| at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
| at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
| 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.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| 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.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| 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:849)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
| at java.lang.Thread.run(Thread.java:619)
|
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4259023#4259023
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4259023
16 years, 6 months
[jBPM Users] - Re: Integration problem of jBPM 4, Spring and Hibernate
by makam
Hy , sorry by my english,
Meaby can you help me...
I have integrated jbpm4 with spring and hibernate, and everything work perfect, but i have problems with the delete, i can`t delete anything from de jbpm database, it throw me and "java.lang.NullPointerException" , i`don´t know what hapend because all the functions of the jbpm Api work perfect, createUser, CrearDeploy , etc...
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4258939#4258939
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4258939
16 years, 6 months