public class Workflow
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
java.util.ArrayList<Product> |
all
It contains the list of the resources of the resource list in the original process description.
|
static java.lang.String |
base |
Constructor and Description |
---|
Workflow()
Standard workflow constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addProduct(Product p)
Is used to add an ingredient aka.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
exportWfToTree()
This method serializes the workflow to xml and returns it as String.
|
void |
exportWfToTree(java.lang.String location)
This method serializes the workflow to xml and writes out to a file.
|
Sequence |
getTopSequence()
Get the root sequence of a workflow.
|
int |
hashCode() |
void |
moveFromThreadLocalAllProducts()
This method copies product data from the ThreadLocal to this workflow and resets the ThreadLocal Data.
|
void |
moveFromThreadLocalLastId()
This method copies the last id used data from the ThreadLocal to this workflow and resets the ThreadLocal Data.
|
void |
moveToThreadLocalAllProducts()
Takes the data which is in workflow scoope and copies it to the ThreadLocal element.
|
void |
moveToThreadLocalLastId()
Takes the data which is in workflow scoope and copies it to the ThreadLocal element.
|
void |
setTopLevel(Sequence seq)
Sets a new root sequence.
|
void |
setTopSequence(Sequence seq)
Sets the root sequence of the workflow.
|
public java.util.ArrayList<Product> all
public static final java.lang.String base
public void setTopLevel(Sequence seq)
seq
- The Sequence which is set as new root sequencepublic void exportWfToTree(java.lang.String location)
location
- path to output locationpublic java.lang.String exportWfToTree()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public Sequence getTopSequence()
public void setTopSequence(Sequence seq)
seq
- public void addProduct(Product p)
p
- public void moveFromThreadLocalAllProducts()
public void moveToThreadLocalAllProducts()
public void moveFromThreadLocalLastId()
public void moveToThreadLocalLastId()