[JBoss jBPM] - Help with concurrent subprocess instances!
by kosulin
I am pretty new to jBPM, and tried to find solution in forums and wike without much success.
Here is what I need:
I have a single (reusable) process which processes a single file with a given name.
To be able to run this process I define a superprocess with task node for user to provide the file name and this process as subprocess. This causes no problems.
I also need to create another process which would take all file names from, say, a specified directory, create sub-process instances for every file, wait for all subprocess instances to finish, and report results from every subprocess to a user for further decision. I do not know how many files there are. This sounds like fork and join with variable number of tokens. How can I implement it? And how to pass parameters in this case?
Also, because all these forked instances have the same process definition, I could try to run concurrent instances of a single transition (I found a reference that this is possible), but how to do this?
And is there way to reflect this concurrency in GPD diagram?
Thanks,
Vlad
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054101#4054101
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054101
18Â years, 11Â months
[JBoss AOP] - AS 4.0.5 Deployment exceptions in 'all' config
by system.out
I followed the instruction in reference manual to install aop in AS 4.0.5. Here is the exception I get upon starting the server:
14:13:59,859 INFO [Embedded] Catalina naming disabled
| 14:14:00,734 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
| 14:14:00,734 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
| 14:14:03,999 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
| 14:14:03,999 INFO [Catalina] Initialization processed in 3265 ms
| 14:14:03,999 INFO [StandardService] Starting service jboss.web
| 14:14:04,030 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.20
| 14:14:04,358 INFO [StandardHost] XML validation disabled
| 14:14:04,780 INFO [Catalina] Server startup in 781 ms
| 14:14:05,155 ERROR [MainDeployer] Could not create deployment: file:/D:/tools/jboss-4.0.5.GA/server/all/deploy/httpha-invoker.sar/invoker.war/
| java.lang.NoSuchMethodError: javassist.scopedpool.ScopedClassPool.<init>(Ljava/lang/ClassLoader;Ljavassist/ClassPool;Ljavassist/scopedpool/ScopedClassPoolRepository;Z)V
| at org.jboss.aop.classpool.AOPClassPool.<init>(AOPClassPool.java:66)
| at org.jboss.aop.classpool.AOPClassPool.<init>(AOPClassPool.java:56)
| at org.jboss.aop.deployment.JBossClassPoolFactory.create(JBossClassPoolFactory.java:67)
| at javassist.scopedpool.ScopedClassPoolRepositoryImpl.createScopedClassPool(ScopedClassPoolRepositoryImpl.java:99)
| at javassist.scopedpool.ScopedClassPoolRepositoryImpl.registerClassLoader(ScopedClassPoolRepositoryImpl.java:125)
| at javassist.scopedpool.ScopedClassPoolRepositoryImpl.findClassPool(ScopedClassPoolRepositoryImpl.java:106)
| at org.jboss.lang.AnnotationHelper.getCtClass(AnnotationHelper.java:111)
| at org.jboss.lang.AnnotationHelper.getAnnotationsInternal(AnnotationHelper.java:98)
Here is what I have done:
1. replace jboss-aop.deployer with jboss-aop-jdk50.deployer in /deploy directory.
2. enable Weaving to true
3. copy pluggable-instrument.jar in /bin
4. modify run.bat to add set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME% -javaagent:pluggable-instrumentor.jar
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054092#4054092
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054092
18Â years, 11Â months