Bug 833394 - Start Timer Event with timeCycle in the form of <delay>###<cycle> prevents building the package
Summary: Start Timer Event with timeCycle in the form of <delay>###<cycle> prevents bu...
Keywords:
Status: ASSIGNED
Alias: None
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: BRM (Guvnor)
Version: BRMS 5.3.0.GA
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Kris Verlaenen
QA Contact: Jiri Locker
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-19 11:57 UTC by Jiri Locker
Modified: 2023-05-15 19:53 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-27 13:41:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
defaultPackage.TestProcess.bpmn2 (3.50 KB, application/xml)
2012-06-19 11:57 UTC, Jiri Locker
no flags Details
PackageBuild.png (107.94 KB, image/png)
2012-06-19 11:59 UTC, Jiri Locker
no flags Details
StartTimerEvent.png (115.32 KB, image/png)
2012-06-19 12:00 UTC, Jiri Locker
no flags Details

Description Jiri Locker 2012-06-19 11:57:17 UTC
Created attachment 592923 [details]
defaultPackage.TestProcess.bpmn2

Description of problem:
The aim is to have a start event that triggers repeatedly. That can be done by creating Start Timer event and setting it's timeCycle property to something like 10s###1s to delay the first start by 10s and then trigger start events repeatedly each 1s. However the package containing such process definition cannot be built.

Version-Release number of selected component (if applicable):
ER9

How reproducible:
always

Steps to Reproduce:
Follow the description or use attached BPMN2 process.
  
Actual results:
Building a package containing this process fails (see screenshot for error message).

Expected results:
Should be possible to build the package.

Additional info:
Can be worked around by using ordinary start event node followed by an intermediate timer node.

Comment 1 Jiri Locker 2012-06-19 11:59:20 UTC
Created attachment 592924 [details]
PackageBuild.png

Comment 2 Jiri Locker 2012-06-19 12:00:35 UTC
Created attachment 592925 [details]
StartTimerEvent.png

Comment 4 Kris Verlaenen 2012-08-27 13:41:48 UTC
jBPM currently does not (yet) support start timers with delay / cycle using ISO-8601, but instead using a proprietary language, linked to Drools.  Marking this issue as a duplicate of bug 812006.

*** This bug has been marked as a duplicate of bug 812006 ***

Comment 5 Jiri Locker 2012-08-27 14:23:11 UTC
Not related to ISO-8601 so it cannot be duplicate of bug 812006.

Using the current proprietary time language in start timer event (attachment 592925 [details]) prevents building the rule package in Guvnor (attachment 592924 [details]).

Comment 6 Kris Verlaenen 2012-08-27 15:59:49 UTC
Yes, start timers are (currently) translated into Drools timer rules, and using the syntax as described here (using int or cron):
http://docs.jboss.org/drools/release/5.4.0.Final/drools-expert-docs/html_single/index.html#d0e5223

Two examples could be found here:
https://github.com/droolsjbpm/jbpm/blob/master/jbpm-bpmn2/src/test/resources/BPMN2-TimerStart.bpmn2
https://github.com/droolsjbpm/jbpm/blob/master/jbpm-bpmn2/src/test/resources/BPMN2-TimerStartCron.bpmn2

Afaik, the start timer event should not be part of the core set of constructs that are supported.


Note You need to log in before you can comment on or make changes to this bug.