[JBoss jBPM] - Re: Design Patterns
by kukeltje
First of all, thanks for taking the time to post in the correct forum. In return I should take the time to at least try to answer your question.
1) If there is a real persisted wait-state in this loop, you should not get a stackoverflow.
2) If I understand you correctly, you want to have e.g. a node in one 'leg' of a fork go back to the fork node but as a new loop? That is not advised (though it might work, you could give it a try in a unittest). Using recusive subprocesses can be done.
>From what I read, both questions are related. Maybe it is better to give your functional requirements so we can discuss those and try to find a solution that fits.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227561#4227561
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227561
15 years, 7 months
[JBoss Tools (users)] - Re: Components in EJB project come and go from Seam Componen
by rossj2
Okay, I should have looked at the log... (see below)
JBoss Tools: 3.0.0.GA-R200903141626-H5
Seam: 2.1.1.GA
Eclipse 3.4.2
JDK 6 update 13
The following exception appeared in the eclipse log after performing a clean of all projects.
| !ENTRY org.eclipse.core.resources 4 566 2009-04-30 01:58:52.552
| !MESSAGE An error occurred while traversing resources.
| !STACK 0
| java.lang.NullPointerException
| at org.jboss.tools.seam.internal.core.scanner.java.ASTVisitorImpl.visit(ASTVisitorImpl.java:90)
| at org.eclipse.jdt.core.dom.SingleMemberAnnotation.accept0(SingleMemberAnnotation.java:161)
| at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
| at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2548)
| at org.eclipse.jdt.core.dom.AnnotationTypeDeclaration.accept0(AnnotationTypeDeclaration.java:239)
| at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
| at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2548)
| at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:214)
| at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
| at org.jboss.tools.seam.internal.core.scanner.java.JavaScanner$ASTRequestorImpl.acceptAST(JavaScanner.java:167)
| at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:721)
| at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:474)
| at org.eclipse.jdt.core.dom.ASTParser.createASTs(ASTParser.java:736)
| at org.jboss.tools.seam.internal.core.scanner.java.JavaScanner.parse(JavaScanner.java:105)
| at org.jboss.tools.seam.internal.core.SeamResourceVisitor.visit(SeamResourceVisitor.java:94)
| at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:106)
| at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:58)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:81)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
| at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:126)
| at org.eclipse.core.internal.resources.Resource.accept(Resource.java:68)
| at org.eclipse.core.internal.resources.Resource.accept(Resource.java:104)
| at org.eclipse.core.internal.resources.Resource.accept(Resource.java:88)
| at org.jboss.tools.seam.core.SeamCoreBuilder.fullBuild(SeamCoreBuilder.java:129)
| at org.jboss.tools.seam.core.SeamCoreBuilder.build(SeamCoreBuilder.java:100)
| at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:633)
| at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
| at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)
| at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
| at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253)
| at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
| at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)
| at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:309)
| at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:341)
| at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140)
| at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
| at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
|
| !ENTRY org.jboss.tools.seam.core 4 0 2009-04-30 01:58:52.552
| !MESSAGE An error occurred while traversing resources.
| !STACK 1
| org.eclipse.core.internal.resources.ResourceException(/temptrack-ejb)[566]: java.lang.NullPointerException
| at org.jboss.tools.seam.internal.core.scanner.java.ASTVisitorImpl.visit(ASTVisitorImpl.java:90)
| at org.eclipse.jdt.core.dom.SingleMemberAnnotation.accept0(SingleMemberAnnotation.java:161)
| at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
| at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2548)
| at org.eclipse.jdt.core.dom.AnnotationTypeDeclaration.accept0(AnnotationTypeDeclaration.java:239)
| at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
| at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2548)
| at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:214)
| at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
| at org.jboss.tools.seam.internal.core.scanner.java.JavaScanner$ASTRequestorImpl.acceptAST(JavaScanner.java:167)
| at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:721)
| at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:474)
| at org.eclipse.jdt.core.dom.ASTParser.createASTs(ASTParser.java:736)
| at org.jboss.tools.seam.internal.core.scanner.java.JavaScanner.parse(JavaScanner.java:105)
| at org.jboss.tools.seam.internal.core.SeamResourceVisitor.visit(SeamResourceVisitor.java:94)
| at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:106)
| at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:58)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:81)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
| at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:126)
| at org.eclipse.core.internal.resources.Resource.accept(Resource.java:68)
| at org.eclipse.core.internal.resources.Resource.accept(Resource.java:104)
| at org.eclipse.core.internal.resources.Resource.accept(Resource.java:88)
| at org.jboss.tools.seam.core.SeamCoreBuilder.fullBuild(SeamCoreBuilder.java:129)
| at org.jboss.tools.seam.core.SeamCoreBuilder.build(SeamCoreBuilder.java:100)
| at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:633)
| at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
| at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)
| at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
| at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253)
| at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
| at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)
| at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:309)
| at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:341)
| at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140)
| at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
| at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
| !SUBENTRY 1 org.eclipse.core.resources 4 566 2009-04-30 01:58:52.552
| !MESSAGE An error occurred while traversing resources.
| !STACK 0
| java.lang.NullPointerException
| at org.jboss.tools.seam.internal.core.scanner.java.ASTVisitorImpl.visit(ASTVisitorImpl.java:90)
| at org.eclipse.jdt.core.dom.SingleMemberAnnotation.accept0(SingleMemberAnnotation.java:161)
| at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
| at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2548)
| at org.eclipse.jdt.core.dom.AnnotationTypeDeclaration.accept0(AnnotationTypeDeclaration.java:239)
| at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
| at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2548)
| at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:214)
| at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
| at org.jboss.tools.seam.internal.core.scanner.java.JavaScanner$ASTRequestorImpl.acceptAST(JavaScanner.java:167)
| at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:721)
| at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:474)
| at org.eclipse.jdt.core.dom.ASTParser.createASTs(ASTParser.java:736)
| at org.jboss.tools.seam.internal.core.scanner.java.JavaScanner.parse(JavaScanner.java:105)
| at org.jboss.tools.seam.internal.core.SeamResourceVisitor.visit(SeamResourceVisitor.java:94)
| at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:106)
| at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:58)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:81)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
| at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
| at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:126)
| at org.eclipse.core.internal.resources.Resource.accept(Resource.java:68)
| at org.eclipse.core.internal.resources.Resource.accept(Resource.java:104)
| at org.eclipse.core.internal.resources.Resource.accept(Resource.java:88)
| at org.jboss.tools.seam.core.SeamCoreBuilder.fullBuild(SeamCoreBuilder.java:129)
| at org.jboss.tools.seam.core.SeamCoreBuilder.build(SeamCoreBuilder.java:100)
| at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:633)
| at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
| at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)
| at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
| at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253)
| at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
| at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)
| at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:309)
| at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:341)
| at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140)
| at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
| at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227548#4227548
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227548
15 years, 7 months
[JBoss jBPM] - Design Patterns
by rwallis
Hi I new to the forum but have been using jBPM for a bit now (and loving it). I have a couple "design pattern" questions to ask.
1) Should jBPM be used as a "fancy" server side batch processor/scheduler where the token recurses from one processing node to a decision node and then, based on the decision, back to the processing node using a timer thats set at some interval like 1 minute? Will this cause stack overflow problems eventually? Will this cause the log file to get ridiculously large?
2) What is the practical limit of child token hierarchy levels? In other works if a fork is used to send a token back to the node it came from and parallel another token to a different node (resend algorithm), what limit should be put on the resend (or should this algorithm simply not be used), before the child tokens get to be too many and stack over flow occurs?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227546#4227546
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227546
15 years, 7 months