Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
6.1.X EE, 6.2.X EE
-
6.2.x, 6.1.x
-
Committed
-
9
-
4
Description
Description
User can upload a workflow xml for kaleo, which has a recurrence event with second as scale.
Portal parses the xml without any complaints and creates a cron-text for the event.
Excerpt from the recurrence-minute.xml file
<task-timer>
<name>OKRecurrentTimer</name>
<delay>
<duration>7</duration>
<scale>second</scale>
</delay>
<recurrence>
<duration>1</duration>
<scale>minute</scale>
</recurrence>
<blocking>false</blocking>
Check the <scale> tags. The attached recurrence-second.xml contains
<scale>second</scale> for <recurrence> and <duration>10</duration>
steps to reproduce
- start Liferay portal
- add Blogs portlet to a page
- deploy Kaleo-web plugin
- upload the attached workflow xml file: "recurrence_minute.xml"
- admin -> control panel -> Workflow -> upload definition
- after upload, "RecurrenceMinute" should appear in the list
- set up workflow for blog entries
- control panel -> Sites -> Liferay -> Configuration -> Workflow configuration
- select "RecurrenceMinute" for "Blogs Entry"
- Add a blog entry with blogs portlet
- check the logs, it should work
- After 7 seconds, the first "===OK!===" will be on the logs.
- After every 1 minute, a new "===OK!===" will be on the logs.
- approve the tasks to stop write messages in the log
- My Account -> My Workflow Tasks
- click on Actions->ConnectorXXX for every item
- upload the attached workflow xml file: "recurrence_second.xml"
- "RecurrenceSecond" should appear in the workflow-list
- set up this new workflow for "Blogs entry"
- Add a blog entry with blogs portlet
- check the logs:
- After 7 seconds, the first "===OK!===" will be on the logs.
Experienced behaviour
There will be no more "===OK!===" messages in the log
Expected behaviour
There should be a new "===OK!===" message in every 10 seconds in the log
Possible cause
CronText.java does not care about seconds (probably there is a bug about years also when creating crontexts)
DurationScale.java->getIntegerValue does not care about "seconds".
It also does not care about "week" in parse method.
Attachments
Issue Links
- relates
-
LPE-10731 Recurrence value in workflow XML accepts second as scale but the event will not run properly
-
- Closed
-