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

java.lang.Object
  extended by org.camunda.bpm.engine.impl.core.model.CoreModelElement
      extended by org.camunda.bpm.engine.impl.core.model.CoreActivity
          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  ScopeImpl flowScope
           
protected  int height
           
protected  List<TransitionImpl> incomingTransitions
           
protected  boolean isAsyncAfter
           
protected  boolean isAsyncBefore
           
protected  boolean isCancelScope
           
protected  boolean isConcurrent
           
protected  boolean isScope
           
protected  Map<String,TransitionImpl> namedOutgoingTransitions
           
protected  List<TransitionImpl> outgoingTransitions
           
protected  ScopeImpl parent
           
protected  ScopeImpl scope
           
protected  int width
           
protected  int x
           
protected  int y
           
 
Fields inherited from class org.camunda.bpm.engine.impl.pvm.process.ScopeImpl
activities, namedActivities, processDefinition
 
Fields inherited from class org.camunda.bpm.engine.impl.core.model.CoreActivity
ioMapping
 
Fields inherited from class org.camunda.bpm.engine.impl.core.model.CoreModelElement
builtInListeners, builtInVariableListeners, id, listeners, name, properties, variableListeners
 
Constructor Summary
ActivityImpl(String id, ProcessDefinitionImpl processDefinition)
           
 
Method Summary
 TransitionImpl createOutgoingTransition()
           
 TransitionImpl createOutgoingTransition(String transitionId)
           
 TransitionImpl findOutgoingTransition(String transitionId)
           
 ActivityBehavior getActivityBehavior()
           
 String getActivityId()
           
 ScopeImpl getFlowScope()
           
 int getHeight()
           
 List<PvmTransition> getIncomingTransitions()
           
 List<PvmTransition> getOutgoingTransitions()
           
 ScopeImpl getParent()
           
 ActivityImpl getParentActivity()
           
 ScopeImpl getParentScope()
           
 ActivityImpl getParentScopeActivity()
           
 ScopeImpl getScope()
          returns the scope of this activity.
 int getWidth()
           
 int getX()
           
 int getY()
           
 boolean isAsync()
          Deprecated. 
 boolean isAsyncAfter()
           
 boolean isAsyncBefore()
           
 boolean isCancelScope()
          Indicates whether this activity is interrupting.
 boolean isConcurrent()
          Indicates whether this activity is concurrent.
 boolean isScope()
           
 void setActivityBehavior(ActivityBehavior activityBehavior)
           
 void setAsync(boolean isAsync)
          Deprecated. 
 void setAsyncAfter(boolean isAsyncAfter)
           
 void setAsyncBefore(boolean isAsyncBefore)
           
 void setCancelScope(boolean isInterrupting)
           
 void setConcurrent(boolean isConcurrent)
           
 void setFlowScope(ScopeImpl 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(ScopeImpl 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, findActivity, getActivities, getChildActivity, getExecutionListeners, getExecutionListeners, getProcessDefinition
 
Methods inherited from class org.camunda.bpm.engine.impl.core.model.CoreActivity
createActivity, getIoMapping, setIoMapping
 
Methods inherited from class org.camunda.bpm.engine.impl.core.model.CoreModelElement
addBuiltInListener, addBuiltInListener, addBuiltInVariableListener, addBuiltInVariableListener, addListener, addListener, addListenerToMap, addVariableListener, addVariableListener, getBuiltInListeners, getBuiltInListeners, getBuiltInVariableListeners, getBuiltInVariableListenersLocal, getId, getListeners, getListeners, getName, getProperties, getProperty, getVariableListeners, getVariableListenersLocal, setId, setName, 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

isAsyncBefore

protected boolean isAsyncBefore

isAsyncAfter

protected boolean isAsyncAfter

isCancelScope

protected boolean isCancelScope

isConcurrent

protected boolean isConcurrent

scope

protected ScopeImpl scope

flowScope

protected ScopeImpl 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 CoreActivity

getParentActivity

public ActivityImpl getParentActivity()

setOutgoingTransitions

protected void setOutgoingTransitions(List<TransitionImpl> outgoingTransitions)

setParent

protected void setParent(ScopeImpl parent)

setScope

public void setScope(ScopeImpl scope)

setIncomingTransitions

protected void setIncomingTransitions(List<TransitionImpl> incomingTransitions)

getOutgoingTransitions

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

getActivityBehavior

public ActivityBehavior getActivityBehavior()
Specified by:
getActivityBehavior in class CoreActivity

setActivityBehavior

public void setActivityBehavior(ActivityBehavior activityBehavior)

getParent

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

getScope

public ScopeImpl 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
Specified by:
isScope in class ScopeImpl

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

@Deprecated
public boolean isAsync()
Deprecated. 

Deprecated since 7.2, use isAsyncBefore()

Specified by:
isAsync in interface PvmActivity

setAsync

@Deprecated
public void setAsync(boolean isAsync)
Deprecated. 

Deprecated since 7.2, use setAsyncBefore(boolean)


isAsyncBefore

public boolean isAsyncBefore()

setAsyncBefore

public void setAsyncBefore(boolean isAsyncBefore)

isAsyncAfter

public boolean isAsyncAfter()

setAsyncAfter

public void setAsyncAfter(boolean isAsyncAfter)

getActivityId

public String getActivityId()

getParentScope

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

getParentScopeActivity

public ActivityImpl getParentScopeActivity()

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 ScopeImpl getFlowScope()
Returns:
the scope which should be used for traversing transitions which originate in this activity.

setFlowScope

public void setFlowScope(ScopeImpl flowScope)


Copyright © 2014 camunda services GmbH. All rights reserved.