Table of Contents

Search

  1. Preface
  2. Workflow Manager
  3. Workflows and Worklets
  4. Sessions
  5. Session Configuration Object
  6. Tasks
  7. Sources
  8. Targets
  9. Connection Objects
  10. Validation
  11. Scheduling and Running Workflows
  12. Sending Email
  13. Workflow Monitor
  14. Workflow Monitor Details
  15. Session and Workflow Logs
  16. Appendix A: Session Properties Reference
  17. Appendix B: Workflow Properties Reference

Workflow Basics Guide

Workflow Basics Guide

Working with the Assignment Task

Working with the Assignment Task

You can assign a value to a user-defined workflow variable with the Assignment task. To use an Assignment task in the workflow, first create and add the Assignment task to the workflow. Then configure the Assignment task to assign values or expressions to user-defined variables. After you assign a value to a variable using the Assignment task, the Integration Service uses the assigned value for the variable during the remainder of the workflow. You must create a variable before you can assign values to it. You cannot assign values to predefined workflow variables.
To create an Assignment task:
  1. In the Workflow Designer, click Tasks > Create.
  2. Select Assignment Task for the task type.
  3. Enter a name for the Assignment task. Click Create. Then click Done.
    The Workflow Designer creates and adds the Assignment task to the workflow.
  4. Double-click the Assignment task to open the Edit Task dialog box.
  5. On the Expressions tab, click Add to add an assignment.
  6. Click the Open button in the User Defined Variables field.
  7. Select the variable for which you want to assign a value. Click OK.
  8. Click the Edit button in the Expression field to open the Expression Editor.
    The Expression Editor shows predefined workflow variables, user-defined workflow variables, variable functions, and boolean and arithmetic operators.
  9. Enter the value or expression you want to assign.
    For example, if you want to assign the value 500 to the user-defined variable $$custno1, enter the number 500 in the Expression Editor.
  10. Click Validate.
    Validate the expression before you close the Expression Editor.
  11. Repeat steps 6 to 8 to add more variable assignments.
    Use the up and down arrows in the Expressions tab to change the order of the variable assignments.
  12. Click OK.

0 COMMENTS

We’d like to hear from you!