org.eclipse.stardust.engine.api.runtime
Class TransitionInfo

java.lang.Object
  extended by org.eclipse.stardust.engine.api.runtime.TransitionInfo
All Implemented Interfaces:
Serializable, org.eclipse.stardust.engine.api.runtime.ActivityInstanceContextAware
Direct Known Subclasses:
TransitionStep, TransitionTarget

public abstract class TransitionInfo
extends Object
implements Serializable, org.eclipse.stardust.engine.api.runtime.ActivityInstanceContextAware

Base class containing common information of transition steps and targets.

Version:
$Revision: $
Author:
Florin.Herinean
See Also:
Serialized Form

Method Summary
 boolean equals(Object obj)
           
 String getActivityId()
          Retrieves the Id of the activity that represents the target of this operation.
 long getActivityInstanceOid()
          Retrieves the source activity instance OID.
 String getActivityName()
          Retrieves the Name of the activity that represents the target of this operation.
 long getActivityRuntimeOid()
          Retrieves the runtime OID of the activity that represents the target of this operation.
 String getModelId()
          Retrieves the Id of the model containing the activity that represents the target of this operation.
 String getModelName()
          Retrieves the Name of the model containing the activity that represents the target of this operation.
 long getModelOid()
          Retrieves the OID of the model containing the activity that represents the target of this operation.
 String getProcessId()
          Retrieves the Id of the process definition containing the activity that represents the target of this operation.
 String getProcessName()
          Retrieves the Name of the process definition containing the activity that represents the target of this operation.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getActivityInstanceOid

public long getActivityInstanceOid()
Retrieves the source activity instance OID.
For the case of a TransitionTarget, this represents the activity instance from where the ad-hoc transition is performed.
For the case of a TransitionStep, this is either the OID of the activity instance that started the subprocess or -1 if there is no subprocess started yet.
This value is necessary to perform the actual transition, but is not relevant for clients.

Specified by:
getActivityInstanceOid in interface org.eclipse.stardust.engine.api.runtime.ActivityInstanceContextAware
Returns:
a long representing the OID of the activity instance or -1 if there is no corresponding activity instance.

getModelOid

public long getModelOid()
Retrieves the OID of the model containing the activity that represents the target of this operation.
This value is necessary to perform the actual transition, but is not relevant for clients.

Returns:
a long representing the OID of the deployed model.

getActivityRuntimeOid

public long getActivityRuntimeOid()
Retrieves the runtime OID of the activity that represents the target of this operation.
This value is necessary to perform the actual transition, but is not relevant for clients. Together with the model OID is used to uniquely identify a specific activity in the model repository.

Returns:
a long representing the runtimeOID of the activity.

getActivityId

public String getActivityId()
Retrieves the Id of the activity that represents the target of this operation.

Returns:
a string containing the id of the activity.

getActivityName

public String getActivityName()
Retrieves the Name of the activity that represents the target of this operation.

Returns:
a string containing the name of the activity.

getProcessId

public String getProcessId()
Retrieves the Id of the process definition containing the activity that represents the target of this operation.

Returns:
a string containing the id of the process definition.

getProcessName

public String getProcessName()
Retrieves the Name of the process definition containing the activity that represents the target of this operation.

Returns:
a string containing the name of the process definition.

getModelId

public String getModelId()
Retrieves the Id of the model containing the activity that represents the target of this operation.

Returns:
a string containing the id of the model.

getModelName

public String getModelName()
Retrieves the Name of the model containing the activity that represents the target of this operation.

Returns:
a string containing the name of the model.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2017 Eclipse Stardust. All Rights Reserved.