-
Type:
Story
-
Status: Closed
-
Priority:
Critical
-
Resolution: Completed
-
Affects Version/s: None
-
Component/s: Business Productivity, Business Productivity > Kaleo Designer
-
Labels:
-
Branch Version/s:7.0.x
-
Backported to Branch:Committed
Background
Kaleo Workflow supports the task-timers tag to provide timers within workflows.
Developer Studio/IDE's Kaleo Designer also allows adding timers to workflows.
Unfortunately, Control Panel's Kaleo Designer does not.
Feature request
Add support to timers in Liferay's Kaleo Designer.
Definition of done
Creating document
- Go to the Kaleo Designer.
- Create a new definition.
- Add a task to the definition.
- Double click on the task.
- There should be a "Timers" option in the left column.
- Double click in the "Timers" input.
- There should appear an editor asking for name, description and duration, with a button behind the duration to add other durations.
- Enter "test timer" as name.
- Enter "test desc" as description.
- Enter a duration of 5 hours.
- Click in "Add section" behind "duration."
- Add another duration of 6 hours.
- *There should be a checkbox to mark the timer as blocking."
- Check on the blocking checkbox.
- There should be a select with the options "Action", "Notification" and "Reassignment."
- Select the option "Action."
- An editor asking for a name and a description of an action script should appear.
- Enter "action test" as its name.
- Enter "action desc" as its description.
- Enter "script test" in the script input.
- Click in "Save."
- Go to "Source (Kaleo XML").
Expectation:
- the document should contain the following sub-element:
<task-timers>
<task-timer>
<name>timer test</name>
<description>timer desc</description>
<delay>
<duration>5</duration>
<scale>hour</scale>
</delay>
<recurrence>
<duration>6</duration>
<scale>hour</scale>
</recurrence>
<blocking>true</blocking>
<timer-actions>
<timer-action>
<name>action test</name>
<description>action desc</description>
<script>script test</script>
<script-language>beanshell</script-language>
</timer-action>
</timer-actions>
</task-timer>
</task-timers>
Loading document
- Go to Kaleo Designer.
- Create a new definition.
- Go to "Source (Kaleo XML").
- Copy the content from the attached task-timers-definition.xml
file. Paste it in the editor.
- Go back to the "View" mode.
- Double click in the task _TIMER_REVIEW_.
- There should be five task timers listed in the timers input, named timer 1, timer 2, ..., timer 5.
- Double click the "Timers" input.
Expectations:
- There will be five timers, named timer 1, ..., timer 5, with descriptions in the form timer N desc.
- The first timer will have two "durations", of 1 and two hours respectively.
- The first timer will have an action (named timer 1 action), a notification (timer 1 notification) and an reassignment.
- Timers 2, 3 and 4 will have, respectively, an action, a reassignment and a notification.
- Timer 5 will have two actions, two notifications and one reassignment.
Testing
This is best suited to be tested by a functional test. Test ticket: LRQA-34599