[JBoss jBPM] - Workflow periodic execution and timers
by jjrs
Hi,
I would like to know if it's possible to have periodic execution of a certain workflow definition. In case the answer is YES, and jBPM offers this scheduling functionality, could anyone point me in the right direction ?
I have tried to use timers (using the repeat property), but without too much success.
Also I have been looking at the documents but I am having problems for using timers specifying an absolute value. Could anyone provide me a basic example where the basedate is defined ? I have been examples in the manual, but I am not able to find where dateOfPension (as an example) is defined, or how to define it (java code ? other configuration file ? in the bussines calendar config file??)
<timer name="pensionReminder" duedate="#{dateOfPension} - 1 year" >...</timer>
Thanks.
Jose.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201131#4201131
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4201131
17 years, 6 months
[Microcontainer] - Re: Microcontainer support in Netty
by trustin
"alesj" wrote : "trustin" wrote : BTW, I still didn't figure out how to hide internal beans. How can I exactly do that?Annotate your bean with @DeploymentScope and @ApplicationScope - via xml or directly on the class. This will move the bean out of main Kernel(Controller) into a scoped one.
|
| By default your scoped bean only 'sees' its scope and ancestors. But you can 'change' the lookup order with @Search markup. @Search takes type on how to search - currently only annotation support. But you need to explicitly add SearchAnnotationPlugin - see the tests on how to do it.
OK. This forum post seem to be related: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=147051 It would be great if there's an easier way to add an annotation plugin without using callbacks though.
"alesj" wrote : "trustin" wrote : I'm also thinking about distributing a minimal JBossMC binary tarball with my tutorial so that a user can play with MC more easily (i.e. untar and drop the sample JARs etc etc). I think it might help MC adoption because people are really used to just downloading a Tomcat tarball and dropping a WAR and see it working. We already have something similar in jboss-demos, but I think it needs to be a binary form so that users can familiarize with MC quickly. I can do this while I write my tutorial. WDYT?I would add your example directly under mc-demos. Simply create new netty sub-module and hack all the stuff there.
|
| See my previous examples on how to do this, following the same concept.
| Glue code:
| - bootstrap
| - jmx
| - classloading
| Actual example code:
| - models
| - ioc
| - classpath
|
| Then simply link the tutorial to that code. Or even better, write a simple article about it at DZone, could be even part of my MC series - more than welcome to 'host' it.
It's a great idea to host the netty + jbossmc example under jboss-demos. I'd love to do that once I get a write permission. I'm not sure if it's a good idea to publish the tutorial as a part of your MC series though because it will be quite a lot about fast protocol prototyping and evolution as well as highlighting some MC features.
Regarding the distribution, my point is to provide a downloadable working binary distribution of embedded microcontainer with HDScanner so that a user can play with it without building it. jboss-demos already provides everything required to build the distribution except some startup scripts. For example, Equinox is very easy to play with even for a beginner: http://tinyurl.com/7j97ak
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201125#4201125
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4201125
17 years, 6 months