org.smartcomps.twister.engine.priv.messaging.impl
Class CoreWrappingFactory

java.lang.Object
  |
  +--org.smartcomps.twister.engine.priv.messaging.impl.CoreWrappingFactory

public class CoreWrappingFactory
extends java.lang.Object

Factory class used by the MessageController implementation to get activities and execution contexts from the engine core. This factory includes methods to find picks and receives and wraps the picks to behave as a receive using the wrapping class. It basically calls factory methods of the engine core and creates correct wrappers for picks.

See Also:
PickAsReceive, PickECAsReceiveEC, ActivityFactory, ExecutionContextFactory

Constructor Summary
CoreWrappingFactory()
           
 
Method Summary
static org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext findECsByActivityAndInstance(org.smartcomps.twister.engine.priv.core.dynamic.ProcessInstance instance, org.smartcomps.twister.engine.priv.core.definition.Activity activity)
          Find execution context by its activity and an instance.
static java.util.List findReceivesByInvoker(java.lang.String partnerLink, java.lang.String portType, java.lang.String operation)
          Find receives as well as picks by invoker and wraps the picks using the class PickAsReceive, returning a List only containing Receive implementations.
static org.smartcomps.twister.engine.priv.core.dynamic.ReceiveEC reload(org.smartcomps.twister.engine.priv.core.dynamic.ReceiveEC receiveEC)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoreWrappingFactory

public CoreWrappingFactory()
Method Detail

findECsByActivityAndInstance

public static org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext findECsByActivityAndInstance(org.smartcomps.twister.engine.priv.core.dynamic.ProcessInstance instance,
                                                                                                            org.smartcomps.twister.engine.priv.core.definition.Activity activity)
                                                                                                     throws FinderException
Find execution context by its activity and an instance. A special case is when the provided activity is our wrapper PickAsReceive. In this particular case we replace the wrapper with the Pick behind it in the finder and return the PickEC wrapped around PickECAsReceiveEC.

Parameters:
activity -
Returns:
FinderException

findReceivesByInvoker

public static java.util.List findReceivesByInvoker(java.lang.String partnerLink,
                                                   java.lang.String portType,
                                                   java.lang.String operation)
                                            throws DBSessionException
Find receives as well as picks by invoker and wraps the picks using the class PickAsReceive, returning a List only containing Receive implementations.

Parameters:
partnerLink -
portType -
operation -
Returns:
List of Receive implementations, either a really Receive or a pick wrapped as a Receive
Throws:
DBSessionException

reload

public static org.smartcomps.twister.engine.priv.core.dynamic.ReceiveEC reload(org.smartcomps.twister.engine.priv.core.dynamic.ReceiveEC receiveEC)
                                                                        throws DBSessionException,
                                                                               FinderException
DBSessionException
FinderException


Copyright © 2003 SmartComps. All Rights Reserved.