public class Activity extends Object
Constructor and Description |
---|
Activity(String id,
int index,
String processId)
Default constructor with alphanumeric id, numeric index and alphanumeric
process id
|
Modifier and Type | Method and Description |
---|---|
List<Activity> |
getBoundaryEvents()
Returns array of boundary events
|
Collaboration[] |
getCollaborations()
Returns collaborations between other processes
|
double |
getCostThreshold()
Returns cost threshold.
|
String |
getDescription()
Returns description of the element
|
DistributionInfo |
getDurationDistributionInfo()
Distribution into for element duration.
|
double |
getDurationThreshold()
Returns duration threshold.
|
EventAction |
getEventAction()
Returns event action/trigger
|
String |
getEventCode()
Returns event code that will be handled by catch events.
|
EventType |
getEventType()
Returns type of the event
|
double |
getFixedCost()
Returns the fixed cost per execution of the element
|
GatewayType |
getGatewayType()
Returns type of the gateway
|
String |
getId()
Returns id for the element.
|
int |
getIndex()
Returns numeric index of the element.
|
String |
getProcessId()
Process id where the element belongs.
|
Resource |
getResource()
Returns resource assigned to activity
|
ActivityType |
getType()
Returns type of the element
|
boolean |
hasIncomingMessageFlow()
Returns if event has incoming message flow that it needs to wait for.
|
boolean |
isCancel()
Returns if event interrupts the main process.
|
boolean |
isJoin()
Returns if event merges the flow (has multiple incoming flows)
|
boolean |
isSplit()
Returns if event splits the flow (has multiple outgoing flows)
|
void |
setBoundaryEvents(List<Activity> boundaryEvents) |
void |
setCancel(boolean isCancel) |
void |
setCollaborations(Collaboration[] collaborations) |
void |
setCostThreshold(double costThreshold)
Sets cost threshold
|
void |
setDescription(String description) |
void |
setDurationDistributionInfo(DistributionInfo durationDistributionInfo) |
void |
setDurationThreshold(double durationThreshold)
Sets duration threshold
|
void |
setEventAction(EventAction eventAction) |
void |
setEventCode(String eventCode) |
void |
setEventType(EventType eventType) |
void |
setFixedCost(double fixedCost)
Sets the cost per execution of the element
|
void |
setGatewayType(GatewayType gatewayType) |
void |
setHasIncomingMessageFlow(boolean hasIncomingMessageFlow) |
void |
setId(String id) |
void |
setIndex(int index) |
void |
setJoin(boolean join) |
void |
setProcessId(String processId) |
void |
setResource(Resource resource) |
void |
setSplit(boolean split) |
void |
setType(ActivityType type) |
String |
toString() |
public String getId()
public void setId(String id)
public int getIndex()
public void setIndex(int index)
public String getDescription()
public void setDescription(String description)
public ActivityType getType()
public void setType(ActivityType type)
public GatewayType getGatewayType()
public void setGatewayType(GatewayType gatewayType)
public EventType getEventType()
public void setEventType(EventType eventType)
public EventAction getEventAction()
public void setEventAction(EventAction eventAction)
public String getEventCode()
public void setEventCode(String eventCode)
public String getProcessId()
public void setProcessId(String processId)
public void setCollaborations(Collaboration[] collaborations)
public Collaboration[] getCollaborations()
public boolean hasIncomingMessageFlow()
public void setHasIncomingMessageFlow(boolean hasIncomingMessageFlow)
public void setCancel(boolean isCancel)
public boolean isCancel()
public List<Activity> getBoundaryEvents()
public void setResource(Resource resource)
public Resource getResource()
public void setDurationDistributionInfo(DistributionInfo durationDistributionInfo)
public DistributionInfo getDurationDistributionInfo()
public void setSplit(boolean split)
public boolean isSplit()
public void setJoin(boolean join)
public boolean isJoin()
public void setFixedCost(double fixedCost)
fixedCost
- costpublic double getFixedCost()
public double getCostThreshold()
public void setCostThreshold(double costThreshold)
costThreshold
- the cost threshold to setpublic double getDurationThreshold()
public void setDurationThreshold(double durationThreshold)
durationThreshold
- the duration threshold to setCopyright © 2020 Pivotal Software, Inc.. All rights reserved.