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

Passing Variable Values between Worklets

Passing Variable Values between Worklets

You can assign variable values in a worklet to pass values from one worklet to any subsequent worklet in the same workflow or parent worklet. For example, a workflow contains two worklets wklt_CreateCustList and wklt_UpdateCustOrders. Worklet wklt_UpdateCustOrders needs to use the value of a worklet variable updated in wklt_CreateCustList.
The following figure shows the workflow:
The workflow includes the Start task, wklt_CreateCustList, and wklt_UpdateCustOrders.
To pass the worklet variable value from wklt_CreateCustList to wklt_UpdateCustOrders, complete the following steps:
  1. Configure worklet wklt_CreateCustList to use a worklet variable, for example, $$URLString1.
  2. Configure worklet wklt_UpdateCustOrders to use a worklet variable, for example, $$URLString2.
  3. Configure the workflow to use a workflow variable, for example, $$PassURLString.
  4. Configure worklet wklt_CreateCustList to assign the value of worklet variable $$URLString1 to workflow variable $$PassURLString after the worklet completes.
  5. Configure worklet wklt_UpdateCustOrders to assign the value of workflow variable $$PassURLString to worklet variable $$URLString2 before the worklet starts.

0 COMMENTS

We’d like to hear from you!