com.informatica.powercenter.sdk.mapfwk.core
Class Assignment

java.lang.Object
  extended by com.informatica.powercenter.sdk.mapfwk.core.Task
      extended by com.informatica.powercenter.sdk.mapfwk.core.Assignment

public class Assignment
extends Task

Represent Assignment Task. Asssignment Task can be used to assign values to user-defined workflow variables

Workflow Manager contains many types of tasks to help you build workflows and worklets

See Also:
Command, Control, Decision, EMail, Session, Timer

Field Summary
static java.lang.String ASSIGNMENT_CONDITION
          Assignment Condition
 
Fields inherited from class com.informatica.powercenter.sdk.mapfwk.core.Task
FAIL_PARENT_IF_INSTANCE_DIDNOT_RUN, FAIL_PARENT_IF_INSTANCE_FAILS, NO_OPTION, REUSABLE, TREAT_INPUT_LINK_AS_AND, YES_OPTION
 
Constructor Summary
Assignment(java.lang.String name, java.lang.String busName, java.lang.String desc)
          Create an asssignment task
 
Method Summary
 void addAssignmentExpression(java.lang.String variableName, java.lang.String expression)
          Adds an assignment expression to a user defined workflow variable.
 void deleteAssignmentExpression(java.lang.String variableName, java.lang.String expression)
          Delete an assignment expression from a user defined workflow variable.
 java.util.Iterator GetAssignmentIterator()
          Returns an iterator for assignment expressions present in assignment task.
 void modifyAssignmentExpression(java.lang.String variableName, java.lang.String oldExpression, java.lang.String newExpression)
          Modify an existing assignment expression on a user defined workflow variable.
 
Methods inherited from class com.informatica.powercenter.sdk.mapfwk.core.Task
connectToTask, connectToTask, deleteNameValuePair, getAllConnectedTasks, getAllConnectedTasksAndExpressions, getAttributes, getBusinessName, getConflictResolution, getDescription, getMetaExtensions, getName, getNamesOfValuePairs, getNameValuePairs, getProperties, getTaskInstanceProperty, getType, getValueOfNameValuePair, isModified, setAttributes, setBusinessName, setConflictResolution, setDescription, setMetaExtensions, setModified, setName, setNameValuePair, setTaskInstanceProperty, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ASSIGNMENT_CONDITION

public static final java.lang.String ASSIGNMENT_CONDITION
Assignment Condition

See Also:
Constant Field Values
Constructor Detail

Assignment

public Assignment(java.lang.String name,
                  java.lang.String busName,
                  java.lang.String desc)
Create an asssignment task

Parameters:
name - name of the task
busName - Business name
desc - description
Method Detail

addAssignmentExpression

public void addAssignmentExpression(java.lang.String variableName,
                                    java.lang.String expression)
Adds an assignment expression to a user defined workflow variable.

Note that wser defined variables in the parent workflow should be used for assignment. Any other variable could cause the workflow to fail.

All assignments will be added to the end of the list and the order of assignment statements are maintained

Parameters:
variableName - user defined workflow variable name
expression - expression that should be assigned to the variable

deleteAssignmentExpression

public void deleteAssignmentExpression(java.lang.String variableName,
                                       java.lang.String expression)
Delete an assignment expression from a user defined workflow variable.

Since a variable can be added multiple times, tuple is used to uniquely identify the expression. If variableName and expression tuple exist multiple times, first such entry would be deleted.

Parameters:
variableName - user defined workflow variable name
expression - expression assigned to the variable

modifyAssignmentExpression

public void modifyAssignmentExpression(java.lang.String variableName,
                                       java.lang.String oldExpression,
                                       java.lang.String newExpression)
Modify an existing assignment expression on a user defined workflow variable.

Since a variable can be added multiple times, tuple is used to uniquely identify the expression. If variableName and expression tuple exist multiple times, first such entry would be modified.

Parameters:
variableName - user defined workflow variable name
oldExpression - expression that is currently assigned to the variable
newExpression - new expression to be assigned to the variable

GetAssignmentIterator

public java.util.Iterator GetAssignmentIterator()
Returns an iterator for assignment expressions present in assignment task. Each element in the iterator is an array of String with two elements Iterator.next() returns a String[]

Returns:
Iterator iterator for assignment expressions present in assignment task