After you create links between tasks, you can specify conditions for each link to determine the order of execution in the workflow. If you do not specify conditions for each link, the Integration Service executes the next task in the workflow by default.
If the link condition evaluates to True, the Integration Service runs the next task in the workflow. The Integration Service does not run the next task in the workflow if the link condition evaluates to False. You can also use pre-defined or user-defined workflow variables in the link condition.
You can use the -- or // comment indicators with the
Expression Editor
to add comments. Use comments to describe the expression.
You can view results of link evaluation during workflow runs in the workflow log.
In the following steps, you create a link condition before the Session task and use the built-in workflow variable WORKFLOWSTARTTIME. You define the link condition so the Integration Service runs the session if the workflow start time is before the date you specify.
Double-click the link from the Start task to the Session task.
The following image shows the
Expression Editor
that appears:
Expand the Built-in node on the
PreDefined
tab.
The Workflow Manager displays the two built-in workflow variables, SYSDATE and WORKFLOWSTARTTIME.
Enter the following expression in the expression window. Enter a date later than today’s date: