[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, 2 months
[JBoss jBPM] - Re: Can't get Generate Form to work at all?
by jbwiv
And here's the generated code. Note my task name has no spaces:
<?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition
| xmlns="urn:jbpm.org:jpdl-3.2"
| name="simple">
|
|
| <swimlane name="Submitter">
| <assignment expression="group(pr_submitter)"></assignment>
| </swimlane>
|
| <swimlane name="PR Approver">
| <assignment expression="group(pr_approver)"></assignment>
| </swimlane>
|
| <swimlane name="Vice President">
| <assignment expression="group(vice_president)"></assignment>
| </swimlane>
|
| <swimlane name="Accounting">
| <assignment expression="group(accounting)"></assignment>
| </swimlane>
|
| <swimlane name="Purchasing">
| <assignment expression="group(purchasing)"></assignment>
| </swimlane>
|
|
| <start-state name="Start">
| <task name="Submit_PR" swimlane="Submitter">
| <controller>
| <variable access="read,write,required" name="Location" mapped-name="location"></variable>
| <variable access="read,write,required" name="PR Number" mapped-name="prNumber"></variable>
| <variable access="read,write,required" name="Contact Info" mapped-name="contactInfo"></variable>
| <variable access="read,write,required" name="Date Needed" mapped-name="dateNeeded"></variable>
| <variable access="read,write,required" name="GL Account" mapped-name="glAccount"></variable>
| <variable access="read,write,required" name="GL Department" mapped-name="glDept"></variable>
| <variable access="read,write,required" name="Purchase Type" mapped-name="purchaseType"></variable>
| <variable access="read,write,required" name="Manager" mapped-name="manager"></variable>
| <variable access="read,write,required" name="PO Assigned" mapped-name="poAssigned"></variable>
| <variable access="read,write,required" name="Buyer" mapped-name="buyer"></variable>
| <variable access="read,write,required" name="Supplier" mapped-name="supplier"></variable>
| <variable access="read,write,required" name="Remarks" mapped-name="remarks"></variable>
| </controller>
| </task>
| <transition to="Manager Approval"></transition>
| </start-state>
|
|
| <task-node name="VP Approval">
| <transition to="Accounting Approval" name="Yes"></transition>
| <transition to="Send Rejection Notice" name="No"></transition>
| </task-node>
|
| <task-node name="Accounting Approval">
| <transition to="Route to purchasing" name="Yes"></transition>
| <transition to="Send Rejection Notice" name="No"></transition>
| </task-node>
|
| <decision name="Is Amount greater than 500?">
| <transition to="VP Approval" name="Yes"></transition>
| <transition to="Accounting Approval" name="No"></transition>
| </decision>
|
| <task-node name="Route to purchasing">
| <transition to="Completed"></transition>
| </task-node>
|
| <decision name="Manager Approval">
| <transition to="Is Amount greater than 500?" name="Yes"></transition>
| </decision>
|
| <task-node name="Send Rejection Notice">
| <transition to="Start"></transition>
| </task-node>
|
|
| <end-state name="Completed"></end-state>
|
|
| </process-definition>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201067#4201067
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4201067
17 years, 2 months