Open topic with navigation

TIBCO Business Studio™ - BPM Edition 5.4.0

# Timer Event Scripts

Scripts can be added to Start events or Catch Intermediate events in the Properties view, if the event is defined as triggered by a timer.

There are several script types available from the Script Defined As list:

- Free Text - You can use this field to enter text that describes the desired behavior for the script.
  Note: On the General tab, there might already be text comments describing the required script. These comments are lost if you change the select JavaScript from the Script Defined As list. If you need to save these comments, copy them before changing the script type.
- Constant Period - this allows you to specify the timeout period after the event is initiated using the following time units.

- JavaScript - this script type allows you to enter JavaScript statements in the space provided. The script should return a date, time or datetimetz type for an absolute datetime deadline. The script can be as long as you like, but the result of the script must be one of those types. For example:

      var date1 = new Date('December 17, 1995 03:24:00');

  If only a Date were present, the event would fire immediately when the deadline is created (in the runtime environment) on the Date specified. If only a Time were specified, the event would fire at the specified time on the current date.

Subtopics

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO Business Studio™ - BPM Edition

Copyright © 2015-2023. Cloud Software Group, Inc. All Rights Reserved.