public class BPMN2XmlParser extends BPMN2Parser
Modifier and Type | Field and Description |
---|---|
static org.jdom2.Namespace |
QBP_NS |
elementIdMap, elementMap, errorHandlerMap, eventActionMap, eventTypeMap, gatewayMap, graph, subProcessStartMap, tasks
Constructor and Description |
---|
BPMN2XmlParser() |
Modifier and Type | Method and Description |
---|---|
List<Resource> |
getAllResources()
Returns all available resources.
|
DistributionInfo |
getArrivalRateDistributionInfo()
Gets distribution information for arrival rate.
|
TimeTable |
getArrivalRateTimeTable()
Return timetable with conditions in which time range process instances are
created
|
double |
getEdgeProbability(String edgeId)
Returns branching probability for an edge
|
double |
getElementCostThreshold(String elementId)
Return cost threshold for element.
|
DistributionInfo |
getElementDurationInformation(String elementId)
Returns duration info for element in the process model
|
double |
getElementDurationThreshold(String elementId)
Return duration threshold for element in seconds.
|
double |
getElementFixedCost(String elementId)
Return fixed (constant) cost for executing element
|
int |
getFirstProcessInstanceForStats()
First process instance to start calculating statistics from (included).
|
int |
getLastProcessInstanceForStats()
Last process instance to calculate statistics from (excluded).
|
Date |
getStartTime()
Returns the start timestamp for simulation.
|
String |
getTaskResourceId(String activityId)
Returns resource name for the activity
|
int |
getTotalProcessInstances()
Returns total number of process instances to create
|
boolean |
isApplicable()
Detect if parser can be applied to the BP model and contains parser specific
simulation info
|
void |
parse()
Parse the model
|
protected boolean |
simulateSubProcessAsTask(String subProcessId) |
getAllStartEventIndexes, getCollaborations, getDocuments, getElementSimpleName, getErrorHandlerActivity, getEventAction, getEventType, getGraph, getModelElementId, getParentBoundaryActivity, getProcessId, getProcessRootElements, getStartEventIndexesForMainProcess, getSubProcessStartActivityIndexes, initGraph, isChoice, isEventGateway, isInterruptingEvent, isKnownElement, isOR, isParallel, isSubProcess, isTask, loadDocuments, processAllCallActivities, processElement, processElement, setFiles, setInputStreams, uniqueId
public void parse() throws ModelParseException, ProcessValidationException
IProcessModelParser
parse
in interface IProcessModelParser
parse
in class BPMN2Parser
ProcessValidationException
ModelParseException
public List<Resource> getAllResources() throws ProcessValidationException
IProcessModelParser
ProcessValidationException
- if exception occurs during resource
parsingpublic DistributionInfo getArrivalRateDistributionInfo()
IProcessModelParser
public DistributionInfo getElementDurationInformation(String elementId)
IProcessModelParser
public String getTaskResourceId(String activityId)
IProcessModelParser
activityId
- activity id from the process modelpublic int getTotalProcessInstances()
IProcessModelParser
public Date getStartTime() throws ProcessValidationException
IProcessModelParser
ProcessValidationException
public TimeTable getArrivalRateTimeTable() throws ProcessValidationException
IProcessModelParser
ProcessValidationException
public double getElementFixedCost(String elementId)
IProcessModelParser
elementId
- id of the element in the process modelpublic double getElementCostThreshold(String elementId)
IProcessModelParser
elementId
- id of the element in the process modelpublic double getElementDurationThreshold(String elementId)
IProcessModelParser
elementId
- id of the element in the process modelpublic boolean isApplicable()
IProcessModelParser
public double getEdgeProbability(String edgeId)
IProcessModelParser
getEdgeProbability
in interface IProcessModelParser
getEdgeProbability
in class BPMN2Parser
edgeId
- edge id from the modeprotected boolean simulateSubProcessAsTask(String subProcessId)
simulateSubProcessAsTask
in class BPMN2Parser
public int getFirstProcessInstanceForStats()
IProcessModelParser
public int getLastProcessInstanceForStats()
IProcessModelParser
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.