eu.planets_project.ifr.core.wee.api.workflow
Class WorkflowContext

java.lang.Object
  extended by eu.planets_project.ifr.core.wee.api.workflow.WorkflowContext
All Implemented Interfaces:
java.io.Serializable

public class WorkflowContext
extends java.lang.Object
implements java.io.Serializable

Allows to take key value pairs of objects that need to be injected into the context of the workflow and that's relevant at execution time. e.g. the actual endpoint that's either injected by the service registry or the workflow configuration, etc. but cannot be resolved from the proxy

Since:
15.12.2009
See Also:
Serialized Form

Field Summary
static java.lang.String Property_ServiceEndpoint
           
 
Constructor Summary
WorkflowContext()
           
 
Method Summary
<T> T
getContextObject(java.lang.Object key, java.lang.String propertyID, java.lang.Class<T> returnClass)
           
 WorkflowContext putContextObject(java.lang.Object key, java.lang.String propertyID, java.lang.Object value)
          add for a given key object (e.g.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Property_ServiceEndpoint

public static final java.lang.String Property_ServiceEndpoint
See Also:
Constant Field Values
Constructor Detail

WorkflowContext

public WorkflowContext()
Method Detail

putContextObject

public WorkflowContext putContextObject(java.lang.Object key,
                                        java.lang.String propertyID,
                                        java.lang.Object value)
add for a given key object (e.g. a serviceObject) a value into the WorkflowContext that's stored under the propertyID's string

Parameters:
key -
proeprtyID - a discriminator
value -

getContextObject

public <T> T getContextObject(java.lang.Object key,
                              java.lang.String propertyID,
                              java.lang.Class<T> returnClass)
Type Parameters:
T -
Parameters:
key -
serviceClass -
Returns:
null if the object wasn't found or the expected cast didn't succeed


Copyright © 2007-2010 The Planets Consortium. All Rights Reserved.