Thursday, September 19, 2013

Reset persistent values for mapping variables

The Integration Service looks for the start value of a variable in the following order: 

1. Value in parameter file 
2. Value saved in the repository (if the variable is persistent) 
3. User-specified default value 
4. Datatype default value 

If you declare the variable as persistent, the Integration Service saves the value of the variable to the repository at the end of the workflow run. The next time the workflow runs, the Integration Service evaluates the start value of the variable as the value saved in the repository. 

If the variable is non-persistent, the Integration Service does not save the value of the variable. The next time the workflow runs, the Integration Service evaluates the start value of the variable as the user-specified default value. 

If you want to override the value saved in the repository before running a workflow, you need to define a value for the variable in a parameter file. When you define a workflow variable in the parameter file, the Integration Service uses this value instead of the value saved in the repository or the configured initial value for the variable. 

Mapping Variable : 

The Integration Service saves the latest value of a mapping variable to the repository at the end of each successful session. During the next session run, it evaluates all references to the mapping variable to the saved value. You can override a saved 
value with the parameter file. You can also clear all saved values for the session in the Workflow Manager. 

The Integration Service looks for the start value in the following order: 

1. Value in parameter file 
2. Value in pre-session variable assignment 
3. Value saved in the repository 
4. Initial value 
5. Datatype default value 

The next time the session runs, the Integration Service evaluates the start value of the variable to the value saved in the repository. If you want to override the value saved in the repository before running a session, you need to define a value for the variable in a parameter file. When you define a mapping variable in the parameter file, the Integration Service uses this value instead of the value saved in the repository or the configured initial value for the variable. 

Overriding : 

After a session completes successfully, the Integration Service saves the final value of each variable in the repository. When you do not want to use that value the next time you run the session, you can override the value in the parameter file or the pre-session variable assignment in the session properties. 

4 comments:

  1. Excellent and complete information, Thank you!!

    ReplyDelete
  2. My persistent value after the session is not updating.It shows in the session log but does not change at wf level

    ReplyDelete
  3. Nice explanation...When u say "Declare the variable as persistent" u mean workflow variables because mapping variable are persistent by default. We only have the option to reset the persistent value of a mapping variable. Isn't that correct?

    ReplyDelete
  4. Is there a way to dynamically clear persistent mapping variables?

    ReplyDelete