Workflow and ServiceDesk Community

 View Only

Subtract Minutes 

Jun 13, 2012 09:41 AM

Component definition

This component calculates a new date from a starting date and a number of minutes. If the number of minutes is negative, they will be added instead.

Component icon

[Insert component icon Image file here.]

Definition of component input value or values

Properties
Input Value Name Input Value Data Type Req'd Example Format Explanation
Date Date Time Yes StartDate The date to use as the starting point for calculating the new date time.
Minutes Double Yes numMinutes The number of minutes to subtract from the starting date.
Result Variable Name String Yes scriptDate The name of a variable to which the new date time value will be stored.

Definition of component output value or values

A variable with the name specified in "Result Variable Name" containing the new date and time.

Connection information

None

Component settings

None

Use case

Calculate a deadline.

Suppose we have a process that has been running for 10 minutes. We could calculate when it started by using this component to subtract 10 minutes from the current date. The parameters would be set as follows:

  • "Date" would be "CurrentDate"
  • "Minutes" would be 10
  • "Result Variable Name" would be something like "processStartDate"

[Example 2]

[Describe the use case. Insert screen shots or package files. Insert a description of how the settings are configured. Insert additional information about the use case that you are submitting.]

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Related Entries and Links

No Related Resource entered.