[JBoss jBPM] - Re: Working with holidays
by kukeltje
anonymous wrote : I think it is boring and a common users can't do that..
Boring? hmmmm... subjective statement. But I agree that common users can't do that. But..... it was never meant for common users to change this file. So I do not see a real problem
anonymous wrote : I would you like to know if there's a another way to do that?
Yes there is. You can change the jBPM core so that it reads the file/data from somewhere else. Than in addition, you can develop a webapp that helps you changing this data. You can even make it configurable per process.
anonymous wrote : I think JBPM doesn't know how to deal with this situation.
Correct
anonymous wrote : Do you understand me?
Yes
anonymous wrote : Any idea how to solve it?
Yes, at least three
1: by writing an application that takes the definition, reads the duedates from the definition and recalculates all the new ones PER instance and stores that. That is assuming
- you can be sure the duedate should be changed (it was not changed in another way) and you know at what date it was set.
- you have the original date so you can recalculate (e.g. it was not based on a variable)
- .... some other 'hazards'
2: By changing the core of jBPM so it always calculates the duedate (expensive in queries!) based on the latest data
3: By changing the jBPM core so more info about duedates is stored and can be used
(Contributions always welcome ;-))
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4220431#4220431
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4220431
17 years
[JBoss jBPM] - Working with holidays
by desson
Hi all,
I am using the business calendar to calculate the time for a task occurs, actually I'm scheduling a job.This class reads jbpm.business.calendar.properties to know about the business hour and holidays. So, to add holidays I need open this file and edit it, I think it is boring and a common users can't do that..I would you like to know if there's a another way to do that?
Another question is about the absolute duetime.
For example: I create a job today (March 23) with the duration of 3 days. So the duedate is today + 3 (March 26). But let's suppose that I add a holiday (March 24), the duedate should be calculated again. I think JBPM doesn't know how to deal with this situation. Do you understand me? Any idea how to solve it?
thanks in advance
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4220418#4220418
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4220418
17 years
[JBoss jBPM] - Timer action is not called and event mail is also not fired
by Arunkumar DSRC
Hi,
In a task-node I configured a timer with action. When timer executes the action class is not getting called. Also I have a event configured on which I am trying to send mail which is not happening as expected. But below the same event under mail I have a script with SOP, which I printed, in my log file. I don't know weather I am missing any configuration can any one pls help. I have the code sample, which I have configured.
| <task-node name="timer">
| <task name="task-assign" notify="true">
| <assignment class="com.myconpany.handler.MailHandler"></assignment>
| </task>
| <event type="node-leave">
| <mail name="task-assign" actors="arunkumar at yourcompany.com" >
| <subject>readmylips</subject>
| <text>nomoretaxes</text>
| </mail>
| <script>
| System.out.println("to escalated");
| </script>
| </event>
| <timer duedate="7 seconds" name="timer" transition="to somenode">
| <action class="com.youcomapny.handler.CustomMailHandler"></action>
| </timer>
| <transition to="isapprove" name="to isTsmRoleApprvlornot"></transition>
| <transition to="somenode" name="to somenode"></transition>
| </task-node>
|
Thanks in advance.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4220134#4220134
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4220134
17 years