Details

    • Branch Version/s:
      7.0.x
    • Backported to Branch:
      Committed
    • Flagged:
      Impediment
    • Sprint:
      Workflow #04 - Feb 20 - Mar 10, Workflow #05 - Mar 13 - 24, Workflow #06 - Mar 27 - Apr 07, Ready For Development, Workflow #07 - April 10 - 21, Workflow #08 - Apr 24 - May 05, Workflow #09 - May 08 - May 19

      Description

      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
      1. Go to the Kaleo Designer.
      2. Create a new definition.
      3. Add a task to the definition.
      4. Double click on the task.
      5. There should be a "Timers" option in the left column.
      6. Double click in the "Timers" input.
      7. There should appear an editor asking for name, description and duration, with a button behind the duration to add other durations.
      8. Enter "test timer" as name.
      9. Enter "test desc" as description.
      10. Enter a duration of 5 hours.
      11. Click in "Add section" behind "duration."
      12. Add another duration of 6 hours.
      13. *There should be a checkbox to mark the timer as blocking."
      14. Check on the blocking checkbox.
      15. There should be a select with the options "Action", "Notification" and "Reassignment."
      16. Select the option "Action."
      17. An editor asking for a name and a description of an action script should appear.
      18. Enter "action test" as its name.
      19. Enter "action desc" as its description.
      20. Enter "script test" in the script input.
      21. Click in "Save."
      22. 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
      1. Go to Kaleo Designer.
      2. Create a new definition.
      3. Go to "Source (Kaleo XML").
      4. Copy the content from the attached task-timers-definition.xml file. Paste it in the editor.
      5. Go back to the "View" mode.
      6. Double click in the task _TIMER_REVIEW_.
      7. There should be five task timers listed in the timers input, named timer 1, timer 2, ..., timer 5.
      8. 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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: