Oracle® Fusion Middleware Idoc Script Reference Guide 11g Release 1 (11.1.1) E10726-01 |
|
Previous |
Next |
Home > Idoc Script Reference Guide > Core Content Server Variabl... > lastEntryTs
Retrieves the timestamp from the last time the workflow step was entered.
This variable can be used to create conditional statements, but it should not be hard-coded or altered.
The last entry time is localized in the companion file and maintained in the key:
<step_name>@<workflow_name>.lastEntryTs
Type and Usage
Output
Returns the timestamp in the format defined by dateCurrent.
Example
The following code defines a jump called LastEntry, which exits to the parent workflow and notifies the reviewers if the last time the step was entered was more than one week ago:
<$if parseDate(wfCurrentGet("lastEntryTs")) < parseDate(dateCurrent(-7))$> <$wfSet("WfJumpName","LastEntry")$> <$wfSet("WfJumpTargetStep",wfExit(0,0))$> <$wfSet("WfJumpEntryNotifyOff","0")$> <$endif$>