Table of Contents

Search

  1. Preface
  2. Understanding Pipeline Partitioning
  3. Partition Points
  4. Partition Types
  5. Pushdown Optimization
  6. Pushdown Optimization and Transformations
  7. Real-time Processing
  8. Commit Points
  9. Row Error Logging
  10. Workflow Recovery
  11. Stopping and Aborting
  12. Concurrent Workflows
  13. Grid Processing
  14. Load Balancer
  15. Workflow Variables
  16. Parameters and Variables in Sessions
  17. Parameter Files
  18. FastExport
  19. External Loading
  20. FTP
  21. Session Caches
  22. Incremental Aggregation
  23. Session Log Interface
  24. Understanding Buffer Memory
  25. High Precision Data

Advanced Workflow Guide

Advanced Workflow Guide

Assigning Parameter and Variable Values in a Session

Assigning Parameter and Variable Values in a Session

You can update the values of certain parameters and variables before or after a non-reusable session runs. This allows you to pass information from one session to another within the same workflow or worklet. For example, you have a workflow that contains two sessions that need to increment the same counter. You can increment the counter in the first session, pass the updated counter value to the second session, and increment the counter again in the second session. Or, you have a worklet that contains sessions that access the same web site. You can configure the first session to get a session ID from the web site and then pass the session ID value to subsequent sessions.
You can also pass information from a session to a worklet or from a worklet to a session as long as the session and worklet are in the same workflow or parent worklet.
You cannot assign parameters and variables in reusable sessions.
The types of parameters and variables you can update depend on whether you assign them before or after a session runs. You can update the following types of parameters and variables before or after a session runs:
  • Pre-session variable assignment.
    You can update mapping parameters, mapping variables, and session parameters before a session runs. You can assign these parameters and variables the values of workflow or worklet variables in the parent workflow or worklet. Therefore, if a session is in a worklet within a workflow, you can assign values from the worklet variables, but not the workflow variables.
    You cannot update mapplet variables in the pre-session variable assignment.
  • Post-session on success variable assignment.
    You can update workflow or worklet variables in the parent workflow or worklet after the session completes successfully. You can assign these variables the values of mapping parameters and variables.
  • Post-session on failure variable assignment.
    You can update workflow or worklet variables in the parent workflow or worklet when the session fails. You can assign these variables the values of mapping parameters and variables.
You assign parameters and variables on the Components tab of the session properties.


Updated November 14, 2019