com.intel.gpe.clients.api.workflow
Class Assignment

java.lang.Object
  extended by com.intel.gpe.clients.api.workflow.Assignment
All Implemented Interfaces:
Action

public class Assignment
extends java.lang.Object
implements Action

The assignment between variables or partner links.

Version:
$Id: Assignment.java,v 1.6 2005/12/26 13:39:07 lukichev Exp $
Author:
Alexander Lukichev

Constructor Summary
Assignment(PartnerLink plfrom, boolean myRole, PartnerLink plto)
          Create a assignment from one partner link to another.
Assignment(PartnerLink plfrom, boolean myRole, Variable vto)
          Create a assignment from a partner link to a variable.
Assignment(java.lang.String expr, Variable to)
          Create a assignment from an expression to a variable.
Assignment(Variable vfrom, PartnerLink plto)
          Create a assignment from a variable to a partner link.
Assignment(Variable from, Variable to)
          Create a assignment from one variable to another.
 
Method Summary
 void emitCode(Scope scope, org.w3c.dom.Element target)
          Emit the piece of code corresponding to the current action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Assignment

public Assignment(Variable from,
                  Variable to)
Create a assignment from one variable to another.

Parameters:
from - The source
to - The destination

Assignment

public Assignment(PartnerLink plfrom,
                  boolean myRole,
                  PartnerLink plto)
Create a assignment from one partner link to another.

Parameters:
plfrom - The source
myRole - If true then get the endpoint reference of the Workflow Job Resource itself
plto - The destination

Assignment

public Assignment(Variable vfrom,
                  PartnerLink plto)
Create a assignment from a variable to a partner link.

Parameters:
vfrom - The source
plto - The destination

Assignment

public Assignment(PartnerLink plfrom,
                  boolean myRole,
                  Variable vto)
Create a assignment from a partner link to a variable.

Parameters:
plfrom - The source
myRole - If true then get the endpoint reference of the Workflow Job Resource itself
vto - The destination

Assignment

public Assignment(java.lang.String expr,
                  Variable to)
Create a assignment from an expression to a variable.

Parameters:
expr - The expression which value is to be assigned
to - The destination
Method Detail

emitCode

public void emitCode(Scope scope,
                     org.w3c.dom.Element target)
              throws java.lang.Exception
Description copied from interface: Action
Emit the piece of code corresponding to the current action.

Specified by:
emitCode in interface Action
Parameters:
scope - The variable scope of the workflow
target - The XML DOM element to append the action code to
Throws:
java.lang.Exception - In a case of error


Copyright © 2008. All Rights Reserved.