[JBoss jBPM] - Re: jBPM/Spring/jUnit
by kukeltje
the reason is simple, well, it was a few years back. There is a start node. Someone/thing starts the process, so if there is a task in the start node, that task was *assumed* to be for that person. If someone just starts the process, and the first task is for someone else, leave the start node empty.
This reasoning might not be that obvious, though it is valid. This might change in jBPM 4 however. The fact that it is invoked (how do ypou see that from this log btw...) does not mean the result is used.
anonymous wrote : I would have, but trying to extract a 'unit test' from hundreds lines of an application wasn't really practical.
You got the assignmenthandler, part of the processdefinition out of those hundreds of lines of code didn't you? Making a runnable unit test out of it is only 30 minutes extra work. And what is more important, it is much easier for *us*, the ones prroviding support to make sure we are nut hunting ghosts because people make typos when doing partial cutting/pasting etc.... And if it seems to be a real problem, it is easier for us to reproduce....... So... all things considered, it is better to do.
btw, why do you do a leave node in an assignment handler? That is realy wrong.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4194450#4194450
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4194450
17 years, 4 months
[JBoss jBPM] - Scheduler and asynchronous flow in in web app
by jeklund
Hi everyone,
I'm trying to get asynchronous tasks and scheduling for things like
<reminder duedate="1 minute" repeat="30 seconds"/>
to work.
I'm deploying the application as a WAR using Seam and jbpm-jpdl-3.3.0.GA.jar. But I get complaints about the 'scheduler' service isn't started. And I don't think it is, since I have only declared
<jbpm-context>
| ...
| <service name="scheduler" factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
| ...
| </jbpm-configuration>
and not configured any org.jbpm.web.JbpmThreadsServlet in web.xml, since this wasn't included in the latest jbpm-3.3.0.GA release. (Instead it looks like it has been replaced with an EJB service, which isn't great for my WAR.)
Could anyone kick me in the right direction here..? Is this Servlet removed and some other method should be used instead?
Best Regards,
Johan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4194388#4194388
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4194388
17 years, 4 months
[JBoss jBPM] - Re: jBPM/Spring/jUnit
by pojomonkey
"kukeltje" wrote : Assignment handlers do not work in the start task.
That is an interesting nugget of information - why would the start task not permit assignment? Guess I'll have to re-read the docs etc.
My question still stands though - why does it fail when I try to jUnit the code, but (apparently) doesn't fail when the same code is executed in the application?
"kukeltje" wrote : What does the logging tell you (maybe turn up the log level)I can't run the app up right now - in the middle of some changes going through. But I will check as soon as I can.
"kukeltje" wrote : And guys... better to make a unit test from the beginning that demonstrates the problem instead of separate code snippets...
I would have, but trying to extract a 'unit test' from hundreds lines of an application wasn't really practical.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4194372#4194372
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4194372
17 years, 4 months