![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
The Sleep activity suspends the process on the current transition for the given amount of time. If you have multiple control flows in your process, only the current execution branch of the process is suspended.
One use of the Sleep activity is to set a timeout for a Pick First group. See Pick First Groups for an example of using Sleep within a Pick First group.
Specifies the style of determining when to end the sleep period. Can be one of the following:
• For — specifies an amount of time in years, days, months, hours, minutes, seconds, and milliseconds to sleep.
• Literal — this allows you to provide literal values, such as 1 day or 3 months.
• Expression — this allows you to provide an XPath expression that evaluates to an amount of time.
• Literal — this allows you to choose a specific date and time from a calendar and clock.
• Expression — this allows you to provide an XPath expression that evaluates to a specific date and time. Specify the amount of time in the provided fields: Years, Months, Days, Hours, Minutes, Seconds, Milliseconds. Specify an XPath expression that evaluates to an amount of time. Use the XPath Formula Builder button to bring up the formula editor, if desired. Specify an XPath expression that evaluates to a specific date and time. Use the XPath Formula Builder to bring up the formula editor, if desired.The Join Condition tab allows you to define an expression based on the values of the incoming transitions to the activity. If the expression evaluates to true, the activity is executed, if the expression evaluates to false, either the activity is bypassed or a fault is thrown. See Transitions and Join Conditions for more information about join conditions.
Specifies what action to perform if the join expression evaluates to false. The following options are available:
• Inherit setting — use the default action specified within the current scope. The current scope is either the current group containing the activity or the orchestration process if the activity is not within a group.
• Bypass activity if false — skip the processing of the activity, set the outgoing transition conditions to false without evaluating them, and resume processing.
• Throw fault if false — throw a joinFailure fault and switch control to an error-handling routine configured to catch all unhandled exceptions. If the exception is not caught, the fault is propagated to the calling environment. The expression to evaluate to determine if the activity should be executed. The only data available to this expression is the value of any transitions into the activity. You can use the XPath Formula Builder to create the join expression.
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |