org.camunda.bpm.engine.impl.pvm.process
Class ActivityImpl

java.lang.Object
  extended by org.camunda.bpm.engine.impl.pvm.process.ProcessElementImpl
      extended by org.camunda.bpm.engine.impl.pvm.process.ScopeImpl
          extended by org.camunda.bpm.engine.impl.pvm.process.ActivityImpl
All Implemented Interfaces:
Serializable, HasDIBounds, PvmActivity, PvmProcessElement, PvmScope

public class ActivityImpl
extends ScopeImpl
implements PvmActivity, HasDIBounds

Author:
Tom Baeyens, Daniel Meyer
See Also:
Serialized Form

Field Summary
protected  ActivityBehavior activityBehavior
           
protected  PvmScope flowScope
           
protected  int height
           
protected  List<TransitionImpl> incomingTransitions
           
protected  boolean isAsync
           
protected  boolean isCancelScope
           
protected  boolean isConcurrent
           
protected  boolean isExclusive
           
protected  boolean isScope
           
protected  Map<String,TransitionImpl> namedOutgoingTransitions
           
protected  List<TransitionImpl> outgoingTransitions
           
protected  ScopeImpl parent
           
protected  PvmScope scope
           
protected  int width
           
protected  int x
           
protected  int y
           
 
Fields inherited from class org.camunda.bpm.engine.impl.pvm.process.ScopeImpl
activities, executionListeners, namedActivities
 
Fields inherited from class org.camunda.bpm.engine.impl.pvm.process.ProcessElementImpl
id, processDefinition, properties
 
Constructor Summary
ActivityImpl(String id, ProcessDefinitionImpl processDefinition)
           
 
Method Summary
 TransitionImpl createOutgoingTransition()
           
 TransitionImpl createOutgoingTransition(String transitionId)
           
 TransitionImpl findOutgoingTransition(String transitionId)
           
 ActivityBehavior getActivityBehavior()
           
 String getActivityId()
           
 PvmScope getFlowScope()
           
 int getHeight()
           
 List<PvmTransition> getIncomingTransitions()
           
 List<PvmTransition> getOutgoingTransitions()
           
 ScopeImpl getParent()
           
 ActivityImpl getParentActivity()
           
 ScopeImpl getParentScope()
           
 PvmScope getScope()
          returns the scope of this activity.
 int getWidth()
           
 int getX()
           
 int getY()
           
 boolean isAsync()
           
 boolean isCancelScope()
          Indicates whether this activity is interrupting.
 boolean isConcurrent()
          Indicates whether this activity is concurrent.
 boolean isExclusive()
           
 boolean isScope()
           
 void setActivityBehavior(ActivityBehavior activityBehavior)
           
 void setAsync(boolean isAsync)
           
 void setCancelScope(boolean isInterrupting)
           
 void setConcurrent(boolean isConcurrent)
           
 void setExclusive(boolean isExclusive)
          Deprecated. 
 void setFlowScope(PvmScope flowScope)
           
 void setHeight(int height)
           
protected  void setIncomingTransitions(List<TransitionImpl> incomingTransitions)
           
protected  void setOutgoingTransitions(List<TransitionImpl> outgoingTransitions)
           
protected  void setParent(ScopeImpl parent)
           
 void setScope(boolean isScope)
           
 void setScope(PvmScope scope)
           
 void setWidth(int width)
           
 void setX(int x)
           
 void setY(int y)
           
 String toString()
           
 
Methods inherited from class org.camunda.bpm.engine.impl.pvm.process.ScopeImpl
addExecutionListener, addExecutionListener, contains, createActivity, createActivity, findActivity, getActivities, getChildActivity, getExecutionListeners, getExecutionListeners
 
Methods inherited from class org.camunda.bpm.engine.impl.pvm.process.ProcessElementImpl
getId, getProcessDefinition, getProperties, getProperty, setProperties, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.camunda.bpm.engine.impl.pvm.PvmScope
findActivity, getActivities
 
Methods inherited from interface org.camunda.bpm.engine.impl.pvm.PvmProcessElement
getId, getProcessDefinition, getProperty
 

Field Detail

outgoingTransitions

protected List<TransitionImpl> outgoingTransitions

namedOutgoingTransitions

protected Map<String,TransitionImpl> namedOutgoingTransitions

incomingTransitions

protected List<TransitionImpl> incomingTransitions

activityBehavior

protected ActivityBehavior activityBehavior

parent

protected ScopeImpl parent

isScope

protected boolean isScope

isAsync

protected boolean isAsync

isExclusive

protected boolean isExclusive

isCancelScope

protected boolean isCancelScope

isConcurrent

protected boolean isConcurrent

scope

protected PvmScope scope

flowScope

protected PvmScope flowScope

x

protected int x

y

protected int y

width

protected int width

height

protected int height
Constructor Detail

ActivityImpl

public ActivityImpl(String id,
                    ProcessDefinitionImpl processDefinition)
Method Detail

createOutgoingTransition

public TransitionImpl createOutgoingTransition()

createOutgoingTransition

public TransitionImpl createOutgoingTransition(String transitionId)

findOutgoingTransition

public TransitionImpl findOutgoingTransition(String transitionId)
Specified by:
findOutgoingTransition in interface PvmActivity

toString

public String toString()
Overrides:
toString in class Object

getParentActivity

public ActivityImpl getParentActivity()

setOutgoingTransitions

protected void setOutgoingTransitions(List<TransitionImpl> outgoingTransitions)

setParent

protected void setParent(ScopeImpl parent)

setScope

public void setScope(PvmScope scope)

setIncomingTransitions

protected void setIncomingTransitions(List<TransitionImpl> incomingTransitions)

getOutgoingTransitions

public List<PvmTransition> getOutgoingTransitions()
Specified by:
getOutgoingTransitions in interface PvmActivity

getActivityBehavior

public ActivityBehavior getActivityBehavior()

setActivityBehavior

public void setActivityBehavior(ActivityBehavior activityBehavior)

getParent

public ScopeImpl getParent()
Specified by:
getParent in interface PvmActivity

getScope

public PvmScope getScope()
Description copied from interface: PvmActivity
returns the scope of this activity. Must contain this activity but may or may not be the direct parent.

Specified by:
getScope in interface PvmActivity

getIncomingTransitions

public List<PvmTransition> getIncomingTransitions()
Specified by:
getIncomingTransitions in interface PvmActivity

isScope

public boolean isScope()
Specified by:
isScope in interface PvmActivity

setScope

public void setScope(boolean isScope)

getX

public int getX()
Specified by:
getX in interface HasDIBounds

setX

public void setX(int x)
Specified by:
setX in interface HasDIBounds

getY

public int getY()
Specified by:
getY in interface HasDIBounds

setY

public void setY(int y)
Specified by:
setY in interface HasDIBounds

getWidth

public int getWidth()
Specified by:
getWidth in interface HasDIBounds

setWidth

public void setWidth(int width)
Specified by:
setWidth in interface HasDIBounds

getHeight

public int getHeight()
Specified by:
getHeight in interface HasDIBounds

setHeight

public void setHeight(int height)
Specified by:
setHeight in interface HasDIBounds

isAsync

public boolean isAsync()
Specified by:
isAsync in interface PvmActivity

setAsync

public void setAsync(boolean isAsync)

isExclusive

public boolean isExclusive()
Specified by:
isExclusive in interface PvmActivity

setExclusive

@Deprecated
public void setExclusive(boolean isExclusive)
Deprecated. 


getActivityId

public String getActivityId()

getParentScope

public ScopeImpl getParentScope()
Specified by:
getParentScope in class ScopeImpl

isCancelScope

public boolean isCancelScope()
Description copied from interface: PvmActivity
Indicates whether this activity is interrupting. If true, the activity will interrupt and cancel all other activities inside the same scope before it is executed.

Specified by:
isCancelScope in interface PvmActivity
Returns:
true if this activity is interrupting. False otherwise.

setCancelScope

public void setCancelScope(boolean isInterrupting)

isConcurrent

public boolean isConcurrent()
Description copied from interface: PvmActivity
Indicates whether this activity is concurrent. If true, the activity will be executed concurrently to other activities which are part of the same scope.

Specified by:
isConcurrent in interface PvmActivity
Returns:
true if this activity is concurrent. False otherwise.

setConcurrent

public void setConcurrent(boolean isConcurrent)

getFlowScope

public PvmScope getFlowScope()
Returns:
the scope which should be used for traversing transitions which originate in this activity.

setFlowScope

public void setFlowScope(PvmScope flowScope)


Copyright © 2014 camunda services GmbH. All Rights Reserved.