public class BpmnParse extends Parse
BpmnParser
.name, parser, rootElement, schemaResource, streamSource, warnings
Constructor and Description |
---|
BpmnParse(BpmnParser parser)
Constructor to be called by the
BpmnParser . |
Modifier and Type | Method and Description |
---|---|
protected void |
addErrorEventDefinition(ErrorEventDefinition errorEventDefinition,
ScopeImpl catchingScope) |
protected void |
addEventSubscriptionDeclaration(EventSubscriptionDeclaration subscription,
ScopeImpl scope,
Element element) |
protected void |
addJobDeclaration(JobDeclaration<?> jobDeclaration,
ProcessDefinitionImpl processDefinition) |
protected void |
addTimeCycleWarning(Element timeCycleElement,
String type) |
protected void |
addTimerDeclaration(ScopeImpl scope,
TimerDeclarationImpl timerDeclaration) |
protected void |
addVariableDeclaration(ScopeImpl scope,
VariableDeclaration variableDeclaration) |
protected void |
collectElementIds() |
ActivityImpl |
createActivityOnScope(Element activityElement,
ScopeImpl scopeElement)
Parses the generic information of an activity element (id, name,
documentation, etc.), and creates a new
ActivityImpl on the given
scope element. |
BpmnParse |
deployment(DeploymentEntity deployment) |
BpmnParse |
execute() |
protected List<ActivityImpl> |
getAllChildActivitiesOfType(String type,
ScopeImpl scope) |
protected String |
getAssignmentId(String expression,
String prefix) |
protected XMLImporter |
getImporter(String importType,
Element theImport) |
Map<String,List<JobDeclaration<?>>> |
getJobDeclarations() |
List<JobDeclaration<?>> |
getJobDeclarationsByKey(String processDefinitionKey) |
ProcessDefinitionEntity |
getProcessDefinition(String processDefinitionKey) |
List<ProcessDefinitionEntity> |
getProcessDefinitions() |
protected String |
getStringValueFromAttributeOrElement(String attributeName,
String elementName,
Element element) |
protected boolean |
isAsync(Element element) |
protected boolean |
isChildActivity(ActivityImpl activityToCheck,
ActivityImpl possibleParentActivity)
Checks if the given activity is a child activity of the
possibleParentActivity.
|
protected boolean |
isExclusive(Element element) |
protected boolean |
isValidEventNameForScope(String eventName,
Element listenerElement)
Check if the given event name is valid.
|
BpmnParse |
name(String name) |
void |
parseActivities(Element parentElement,
ScopeImpl scopeElement,
HashMap<String,Element> postponedElements)
Parses the activities of a certain level in the process (process,
subprocess or another scope).
|
protected void |
parseActivity(Element activityElement,
Element parentElement,
ScopeImpl scopeElement,
HashMap<String,Element> postponedElements) |
protected void |
parseAssociations(Element scopeElement,
ScopeImpl parentScope) |
protected void |
parseAsynchronousContinuation(Element element,
ActivityImpl activity) |
Boolean |
parseBooleanAttribute(String booleanText) |
Boolean |
parseBooleanAttribute(String booleanText,
boolean defaultValue) |
protected ActivityBehavior |
parseBoundaryCancelEventDefinition(Element cancelEventDefinition,
ActivityImpl activity) |
void |
parseBoundaryErrorEventDefinition(Element errorEventDefinition,
boolean interrupting,
ActivityImpl activity,
ActivityImpl nestedErrorEventActivity) |
void |
parseBoundaryEvents(Element parentElement,
ScopeImpl scopeElement)
Parses the boundary events of a certain 'level' (process, subprocess or
other scope).
|
void |
parseBoundaryMessageEventDefinition(Element element,
boolean interrupting,
ActivityImpl messageActivity) |
void |
parseBoundarySignalEventDefinition(Element element,
boolean interrupting,
ActivityImpl signalActivity) |
void |
parseBoundaryTimerEventDefinition(Element timerEventDefinition,
boolean interrupting,
ActivityImpl timerActivity)
Parses a boundary timer event.
|
void |
parseBPMNDiagram(Element bpmndiagramElement) |
void |
parseBPMNEdge(Element bpmnEdgeElement) |
void |
parseBPMNPlane(Element bpmnPlaneElement) |
void |
parseBPMNShape(Element bpmnShapeElement) |
ActivityImpl |
parseBusinessRuleTask(Element businessRuleTaskElement,
ScopeImpl scope)
Parses a businessRuleTask declaration.
|
ActivityImpl |
parseCallActivity(Element callActivityElement,
ScopeImpl scope)
Parses a call activity (currently only supporting calling subprocesses).
|
protected void |
parseCatchCompensateEventDefinition(Element compensateEventDefinition,
ActivityImpl activity) |
void |
parseCollaboration()
Parses the collaboration definition defined within the 'definitions'
root element and get all participants to lookup their process references
during DI parsing.
|
protected List<String> |
parseCommaSeparatedList(String s)
Parses the given String as a list of comma separated entries, where an
entry can possibly be an expression that has comma's.
|
protected CompensateEventDefinition |
parseCompensateEventDefinition(Element compensateEventDefinitionElement,
ScopeImpl scopeElement) |
protected void |
parseDefinitionsAttributes() |
void |
parseDiagramInterchangeElements() |
protected void |
parseDIBounds(Element bpmnShapeElement,
HasDIBounds target) |
String |
parseDocumentation(Element element) |
static String |
parseDocumentation(List<String> docStrings) |
Double |
parseDoubleAttribute(Element element,
String attributename,
String doubleText,
boolean required) |
protected void |
parseEmailServiceTask(ActivityImpl activity,
Element serviceTaskElement,
List<FieldDeclaration> fieldDeclarations) |
void |
parseEndEvents(Element parentElement,
ScopeImpl scope)
Parses the end events of a certain level in the process (process,
subprocess or another scope).
|
void |
parseErrors() |
protected void |
parseErrorStartEventDefinition(Element errorEventDefinition,
ActivityImpl startEventActivity,
ScopeImpl scope) |
ActivityImpl |
parseEventBasedGateway(Element eventBasedGwElement,
Element parentElement,
ScopeImpl scope) |
ActivityImpl |
parseExclusiveGateway(Element exclusiveGwElement,
ScopeImpl scope)
Parses an exclusive gateway declaration.
|
ExecutionListener |
parseExecutionListener(Element executionListenerElement)
Parses an
ExecutionListener implementation for the given
executionListener element. |
void |
parseExecutionListenersOnScope(Element scopeElement,
ScopeImpl scope)
Parses all execution-listeners on a scope.
|
void |
parseExecutionListenersOnTransition(Element activitiElement,
TransitionImpl activity) |
protected Expression |
parseExpression(Element parent,
String name) |
protected FieldDeclaration |
parseExpressionFieldDeclaration(Element fieldDeclarationElement,
Element serviceTaskElement,
String fieldName) |
protected FieldDeclaration |
parseFieldDeclaration(Element serviceTaskElement,
Element fieldDeclarationElement) |
List<FieldDeclaration> |
parseFieldDeclarations(Element element) |
protected void |
parseHumanPerformer(Element taskElement,
TaskDefinition taskDefinition) |
protected void |
parseHumanPerformerResourceAssignment(Element performerElement,
TaskDefinition taskDefinition) |
protected void |
parseImports()
Parses the rootElement importing structures
|
ActivityImpl |
parseInclusiveGateway(Element inclusiveGwElement,
ScopeImpl scope)
Parses an inclusive gateway declaration.
|
protected void |
parseIntemediateSignalEventDefinition(Element element,
ActivityImpl signalActivity,
boolean isAfterEventBasedGateway) |
protected void |
parseIntemediateTimerEventDefinition(Element timerEventDefinition,
ActivityImpl timerActivity,
boolean isAfterEventBasedGateway) |
ActivityImpl |
parseIntermediateCatchEvent(Element intermediateEventElement,
ScopeImpl scopeElement,
boolean isAfterEventBasedGateway) |
protected void |
parseIntermediateLinkEventCatchBehavior(Element intermediateEventElement,
ActivityImpl activity,
Element linkEventDefinitionElement) |
protected void |
parseIntermediateMessageEventDefinition(Element messageEventDefinition,
ActivityImpl nestedActivity,
boolean isAfterEventBasedGateway) |
ActivityImpl |
parseIntermediateThrowEvent(Element intermediateEventElement,
ScopeImpl scopeElement) |
protected void |
parseLanes(Element laneSetElement,
LaneSet laneSet) |
protected void |
parseLaneSets(Element parentElement,
ProcessDefinitionEntity processDefinition) |
ActivityImpl |
parseManualTask(Element manualTaskElement,
ScopeImpl scope)
Parses a manual task.
|
protected EventSubscriptionDeclaration |
parseMessageEventDefinition(Element messageEventDefinition) |
void |
parseMessages()
Parses the messages of the given definitions file.
|
void |
parseMultiInstanceLoopCharacteristics(Element activityElement,
ActivityImpl activity)
Parses loopCharacteristics (standardLoop/Multi-instance) of an activity, if
any is defined.
|
ActivityImpl |
parseParallelGateway(Element parallelGwElement,
ScopeImpl scope)
Parses a parallel gateway declaration.
|
protected void |
parsePostponedElements(Element scopeElement,
ScopeImpl parentScope,
HashMap<String,Element> postponedElements) |
protected void |
parsePotentialOwner(Element taskElement,
TaskDefinition taskDefinition) |
protected void |
parsePotentialOwnerResourceAssignment(Element performerElement,
TaskDefinition taskDefinition) |
protected void |
parsePotentialStarterResourceAssignment(Element performerElement,
ProcessDefinitionEntity processDefinition) |
ProcessDefinitionEntity |
parseProcess(Element processElement)
Parses one process (ie anything inside a <process> element).
|
protected void |
parseProcessDefinitionCustomExtensions(Element scopeElement,
ProcessDefinition definition) |
void |
parseProcessDefinitions()
Parses all the process definitions defined within the 'definitions' root
element.
|
protected void |
parseProcessDefinitionStartEvent(ActivityImpl startEventActivity,
Element startEventElement,
Element parentElement,
ScopeImpl scope) |
void |
parseProperties(Element element,
ActivityImpl activity)
Parses the properties of an element (if any) that can contain properties
(processes, activities, etc.)
Returns true if property subelemens are found.
|
void |
parseProperty(Element propertyElement,
ActivityImpl activity)
Parses one property definition.
|
void |
parsePropertyCustomExtensions(ActivityImpl activity,
Element propertyElement,
String propertyName,
String propertyType)
Parses the custom extensions for properties.
|
ActivityImpl |
parseReceiveTask(Element receiveTaskElement,
ScopeImpl scope)
Parses a receive task.
|
protected void |
parseRootElement()
Parses the 'definitions' root element
|
void |
parseScope(Element scopeElement,
ScopeImpl parentScope)
Parses a scope: a process, subprocess, etc.
|
protected void |
parseScopeStartEvent(ActivityImpl startEventActivity,
Element startEventElement,
Element parentElement,
ScopeImpl scope) |
ActivityImpl |
parseScriptTask(Element scriptTaskElement,
ScopeImpl scope)
Parses a scriptTask declaration.
|
ActivityImpl |
parseSendTask(Element sendTaskElement,
ScopeImpl scope)
Parses a sendTask declaration.
|
void |
parseSequenceFlow(Element processElement,
ScopeImpl scope)
Parses all sequence flow of a scope.
|
void |
parseSequenceFlowConditionExpression(Element seqFlowElement,
TransitionImpl seqFlow)
Parses a condition expression on a sequence flow.
|
ActivityImpl |
parseServiceTask(Element serviceTaskElement,
ScopeImpl scope)
Parses a serviceTask declaration.
|
ActivityImpl |
parseServiceTaskLike(String elementName,
Element serviceTaskElement,
ScopeImpl scope) |
protected void |
parseShellServiceTask(ActivityImpl activity,
Element serviceTaskElement,
List<FieldDeclaration> fieldDeclarations) |
protected EventSubscriptionDeclaration |
parseSignalEventDefinition(Element signalEventDefinitionElement) |
protected void |
parseSignals()
Parses the signals of the given definitions file.
|
protected void |
parseStartAuthorization(Element scopeElement,
ProcessDefinition definition) |
void |
parseStartEvents(Element parentElement,
ScopeImpl scope)
Parses the start events of a certain level in the process (process,
subprocess or another scope).
|
protected void |
parseStartFormHandlers(List<Element> startEventElements,
ProcessDefinitionEntity processDefinition) |
protected FieldDeclaration |
parseStringFieldDeclaration(Element fieldDeclarationElement,
Element serviceTaskElement,
String fieldName) |
ActivityImpl |
parseSubProcess(Element subProcessElement,
ScopeImpl scope)
Parses a subprocess (formally known as an embedded subprocess): a subprocess
defined within another process definition.
|
ActivityImpl |
parseTask(Element taskElement,
ScopeImpl scope)
Parses a task with no specific type (behaves as passthrough).
|
TaskDefinition |
parseTaskDefinition(Element taskElement,
String taskDefinitionKey,
ProcessDefinitionEntity processDefinition) |
protected TaskListener |
parseTaskListener(Element taskListenerElement) |
protected void |
parseTaskListeners(Element userTaskElement,
TaskDefinition taskDefinition) |
protected TimerDeclarationImpl |
parseTimer(Element timerEventDefinition,
ScopeImpl timerActivity,
String jobHandlerType) |
protected void |
parseTimerStartEventDefinition(Element timerEventDefinition,
ActivityImpl timerActivity,
ProcessDefinitionEntity processDefinition) |
protected void |
parseTimerStartEventDefinitionforEventSubprocess(Element timerEventDefinition,
ActivityImpl timerActivity,
ScopeImpl catchingScope) |
protected void |
parseTimerStartEventDefinitionForEventSubprocess(Element timerEventDefinition,
ActivityImpl timerActivity,
ScopeImpl catchingScope,
boolean interrupting) |
protected ActivityImpl |
parseTransaction(Element transactionElement,
ScopeImpl scope) |
ActivityImpl |
parseUserTask(Element userTaskElement,
ScopeImpl scope)
Parses a userTask declaration.
|
protected void |
parseUserTaskCustomExtensions(Element taskElement,
TaskDefinition taskDefinition) |
protected String |
resolveName(String name) |
protected void |
selectInitial(List<ActivityImpl> startEventActivities,
ProcessDefinitionEntity processDefinition,
Element parentElement) |
BpmnParse |
sourceInputStream(InputStream inputStream) |
BpmnParse |
sourceResource(String resource) |
BpmnParse |
sourceResource(String resource,
ClassLoader classLoader) |
BpmnParse |
sourceString(String string) |
BpmnParse |
sourceUrl(String url) |
BpmnParse |
sourceUrl(URL url) |
void |
validateActivities(List<ActivityImpl> activities) |
protected void |
validateActivity(ActivityImpl activity) |
void |
validateExclusiveGateway(ActivityImpl activity) |
protected void |
validateFieldDeclarationsForEmail(Element serviceTaskElement,
List<FieldDeclaration> fieldDeclarations) |
protected void |
validateFieldDeclarationsForShell(Element serviceTaskElement,
List<FieldDeclaration> fieldDeclarations) |
addError, addError, addWarning, addWarning, getProblems, getRootElement, hasErrors, hasWarnings, logWarnings, setSchemaResource, setStreamSource, throwExceptionForErrors
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
protected static final Logger LOGGER
public static final String PROPERTYNAME_DOCUMENTATION
public static final String PROPERTYNAME_INITIAL
public static final String PROPERTYNAME_INITIATOR_VARIABLE_NAME
public static final String PROPERTYNAME_CONDITION
public static final String PROPERTYNAME_CONDITION_TEXT
public static final String PROPERTYNAME_VARIABLE_DECLARATIONS
public static final String PROPERTYNAME_TIMER_DECLARATION
public static final String PROPERTYNAME_MESSAGE_JOB_DECLARATION
public static final String PROPERTYNAME_ISEXPANDED
public static final String PROPERTYNAME_START_TIMER
public static final String PROPERTYNAME_COMPENSATION_HANDLER_ID
public static final String PROPERTYNAME_IS_FOR_COMPENSATION
public static final String PROPERTYNAME_ERROR_EVENT_DEFINITIONS
public static final String PROPERTYNAME_EVENT_SUBSCRIPTION_DECLARATION
public static final String PROPERTYNAME_TRIGGERED_BY_EVENT
public static final String PROPERTYNAME_TYPE
protected static final String POTENTIAL_STARTER
protected static final String CANDIDATE_STARTER_USERS_EXTENSION
protected static final String CANDIDATE_STARTER_GROUPS_EXTENSION
protected static final String ATTRIBUTEVALUE_T_FORMAL_EXPRESSION
protected DeploymentEntity deployment
protected List<ProcessDefinitionEntity> processDefinitions
protected Map<String,List<JobDeclaration<?>>> jobDeclarations
protected Map<String,TransitionImpl> sequenceFlows
protected List<String> elementIds
protected Map<String,String> participantProcesses
protected Map<String,MessageDefinition> messages
protected Map<String,SignalDefinition> signals
protected ExpressionManager expressionManager
protected List<BpmnParseListener> parseListeners
protected Map<String,XMLImporter> importers
protected String targetNamespace
protected static final String HUMAN_PERFORMER
protected static final String POTENTIAL_OWNER
protected static final String RESOURCE_ASSIGNMENT_EXPR
protected static final String FORMAL_EXPRESSION
protected static final String USER_PREFIX
protected static final String GROUP_PREFIX
protected static final String ASSIGNEE_EXTENSION
protected static final String CANDIDATE_USERS_EXTENSION
protected static final String CANDIDATE_GROUPS_EXTENSION
protected static final String DUE_DATE_EXTENSION
protected static final String FOLLOW_UP_DATE_EXTENSION
protected static final String PRIORITY_EXTENSION
public BpmnParse(BpmnParser parser)
BpmnParser
.public BpmnParse deployment(DeploymentEntity deployment)
protected void parseRootElement()
protected void collectElementIds()
protected void parseDefinitionsAttributes()
protected void parseImports()
protected XMLImporter getImporter(String importType, Element theImport)
public void parseMessages()
protected void parseSignals()
public void parseErrors()
public void parseProcessDefinitions()
public void parseCollaboration()
public ProcessDefinitionEntity parseProcess(Element processElement)
processElement
- The 'process' element.ProcessDefinitionImpl
object.protected void parseLaneSets(Element parentElement, ProcessDefinitionEntity processDefinition)
public void parseScope(Element scopeElement, ScopeImpl parentScope)
scopeElement
- The XML element defining the scopeparentScope
- The scope that contains the nested scope.protected void parsePostponedElements(Element scopeElement, ScopeImpl parentScope, HashMap<String,Element> postponedElements)
protected void parseProcessDefinitionCustomExtensions(Element scopeElement, ProcessDefinition definition)
protected void parseStartAuthorization(Element scopeElement, ProcessDefinition definition)
protected void parsePotentialStarterResourceAssignment(Element performerElement, ProcessDefinitionEntity processDefinition)
public void parseStartEvents(Element parentElement, ScopeImpl scope)
parentElement
- The 'parent' element that contains the start events (process,
subprocess).scope
- The ScopeImpl
to which the start events must be added.protected void selectInitial(List<ActivityImpl> startEventActivities, ProcessDefinitionEntity processDefinition, Element parentElement)
protected void parseProcessDefinitionStartEvent(ActivityImpl startEventActivity, Element startEventElement, Element parentElement, ScopeImpl scope)
protected void parseStartFormHandlers(List<Element> startEventElements, ProcessDefinitionEntity processDefinition)
protected void parseScopeStartEvent(ActivityImpl startEventActivity, Element startEventElement, Element parentElement, ScopeImpl scope)
protected void parseErrorStartEventDefinition(Element errorEventDefinition, ActivityImpl startEventActivity, ScopeImpl scope)
protected EventSubscriptionDeclaration parseMessageEventDefinition(Element messageEventDefinition)
protected void addEventSubscriptionDeclaration(EventSubscriptionDeclaration subscription, ScopeImpl scope, Element element)
public void parseActivities(Element parentElement, ScopeImpl scopeElement, HashMap<String,Element> postponedElements)
parentElement
- The 'parent' element that contains the activities (process,
subprocess).scopeElement
- The ScopeImpl
to which the activities must be added.postponedElements
- protected void parseActivity(Element activityElement, Element parentElement, ScopeImpl scopeElement, HashMap<String,Element> postponedElements)
public void validateActivities(List<ActivityImpl> activities)
protected void validateActivity(ActivityImpl activity)
public void validateExclusiveGateway(ActivityImpl activity)
public ActivityImpl parseIntermediateCatchEvent(Element intermediateEventElement, ScopeImpl scopeElement, boolean isAfterEventBasedGateway)
protected void parseIntermediateLinkEventCatchBehavior(Element intermediateEventElement, ActivityImpl activity, Element linkEventDefinitionElement)
protected void parseIntermediateMessageEventDefinition(Element messageEventDefinition, ActivityImpl nestedActivity, boolean isAfterEventBasedGateway)
public ActivityImpl parseIntermediateThrowEvent(Element intermediateEventElement, ScopeImpl scopeElement)
protected CompensateEventDefinition parseCompensateEventDefinition(Element compensateEventDefinitionElement, ScopeImpl scopeElement)
protected void parseCatchCompensateEventDefinition(Element compensateEventDefinition, ActivityImpl activity)
protected ActivityBehavior parseBoundaryCancelEventDefinition(Element cancelEventDefinition, ActivityImpl activity)
public void parseMultiInstanceLoopCharacteristics(Element activityElement, ActivityImpl activity)
public ActivityImpl createActivityOnScope(Element activityElement, ScopeImpl scopeElement)
ActivityImpl
on the given
scope element.public ActivityImpl parseExclusiveGateway(Element exclusiveGwElement, ScopeImpl scope)
public ActivityImpl parseInclusiveGateway(Element inclusiveGwElement, ScopeImpl scope)
public ActivityImpl parseEventBasedGateway(Element eventBasedGwElement, Element parentElement, ScopeImpl scope)
public ActivityImpl parseParallelGateway(Element parallelGwElement, ScopeImpl scope)
public ActivityImpl parseScriptTask(Element scriptTaskElement, ScopeImpl scope)
public ActivityImpl parseServiceTask(Element serviceTaskElement, ScopeImpl scope)
public ActivityImpl parseServiceTaskLike(String elementName, Element serviceTaskElement, ScopeImpl scope)
public ActivityImpl parseBusinessRuleTask(Element businessRuleTaskElement, ScopeImpl scope)
protected void parseAsynchronousContinuation(Element element, ActivityImpl activity)
protected void addJobDeclaration(JobDeclaration<?> jobDeclaration, ProcessDefinitionImpl processDefinition)
public ActivityImpl parseSendTask(Element sendTaskElement, ScopeImpl scope)
protected void parseEmailServiceTask(ActivityImpl activity, Element serviceTaskElement, List<FieldDeclaration> fieldDeclarations)
protected void parseShellServiceTask(ActivityImpl activity, Element serviceTaskElement, List<FieldDeclaration> fieldDeclarations)
protected void validateFieldDeclarationsForEmail(Element serviceTaskElement, List<FieldDeclaration> fieldDeclarations)
protected void validateFieldDeclarationsForShell(Element serviceTaskElement, List<FieldDeclaration> fieldDeclarations)
public List<FieldDeclaration> parseFieldDeclarations(Element element)
protected FieldDeclaration parseFieldDeclaration(Element serviceTaskElement, Element fieldDeclarationElement)
protected FieldDeclaration parseStringFieldDeclaration(Element fieldDeclarationElement, Element serviceTaskElement, String fieldName)
protected FieldDeclaration parseExpressionFieldDeclaration(Element fieldDeclarationElement, Element serviceTaskElement, String fieldName)
protected String getStringValueFromAttributeOrElement(String attributeName, String elementName, Element element)
public ActivityImpl parseTask(Element taskElement, ScopeImpl scope)
public ActivityImpl parseManualTask(Element manualTaskElement, ScopeImpl scope)
public ActivityImpl parseReceiveTask(Element receiveTaskElement, ScopeImpl scope)
public ActivityImpl parseUserTask(Element userTaskElement, ScopeImpl scope)
public TaskDefinition parseTaskDefinition(Element taskElement, String taskDefinitionKey, ProcessDefinitionEntity processDefinition)
protected void parseHumanPerformer(Element taskElement, TaskDefinition taskDefinition)
protected void parsePotentialOwner(Element taskElement, TaskDefinition taskDefinition)
protected void parseHumanPerformerResourceAssignment(Element performerElement, TaskDefinition taskDefinition)
protected void parsePotentialOwnerResourceAssignment(Element performerElement, TaskDefinition taskDefinition)
protected void parseUserTaskCustomExtensions(Element taskElement, TaskDefinition taskDefinition)
protected List<String> parseCommaSeparatedList(String s)
protected void parseTaskListeners(Element userTaskElement, TaskDefinition taskDefinition)
protected TaskListener parseTaskListener(Element taskListenerElement)
public void parseEndEvents(Element parentElement, ScopeImpl scope)
parentElement
- The 'parent' element that contains the end events (process,
subprocess).scope
- The ScopeImpl
to which the end events must be added.public void parseBoundaryEvents(Element parentElement, ScopeImpl scopeElement)
parentElement
- The 'parent' element that contains the activities (process,
subprocess).scopeElement
- The ScopeImpl
to which the activities must be added.public void parseBoundaryTimerEventDefinition(Element timerEventDefinition, boolean interrupting, ActivityImpl timerActivity)
ActivityBehavior
.timerEventDefinition
- The XML element corresponding with the timer event detailsinterrupting
- Indicates whether this timer is interrupting.timerActivity
- The activity which maps to the structure of the timer event on the
boundary of another activity. Note that this is NOT the activity
onto which the boundary event is attached, but a nested activity
inside this activity, specifically created for this event.public void parseBoundarySignalEventDefinition(Element element, boolean interrupting, ActivityImpl signalActivity)
public void parseBoundaryMessageEventDefinition(Element element, boolean interrupting, ActivityImpl messageActivity)
protected void parseTimerStartEventDefinition(Element timerEventDefinition, ActivityImpl timerActivity, ProcessDefinitionEntity processDefinition)
protected void parseTimerStartEventDefinitionforEventSubprocess(Element timerEventDefinition, ActivityImpl timerActivity, ScopeImpl catchingScope)
protected void parseTimerStartEventDefinitionForEventSubprocess(Element timerEventDefinition, ActivityImpl timerActivity, ScopeImpl catchingScope, boolean interrupting)
protected void parseIntemediateSignalEventDefinition(Element element, ActivityImpl signalActivity, boolean isAfterEventBasedGateway)
protected EventSubscriptionDeclaration parseSignalEventDefinition(Element signalEventDefinitionElement)
protected void parseIntemediateTimerEventDefinition(Element timerEventDefinition, ActivityImpl timerActivity, boolean isAfterEventBasedGateway)
protected TimerDeclarationImpl parseTimer(Element timerEventDefinition, ScopeImpl timerActivity, String jobHandlerType)
protected Expression parseExpression(Element parent, String name)
public void parseBoundaryErrorEventDefinition(Element errorEventDefinition, boolean interrupting, ActivityImpl activity, ActivityImpl nestedErrorEventActivity)
protected void addErrorEventDefinition(ErrorEventDefinition errorEventDefinition, ScopeImpl catchingScope)
protected List<ActivityImpl> getAllChildActivitiesOfType(String type, ScopeImpl scope)
protected boolean isChildActivity(ActivityImpl activityToCheck, ActivityImpl possibleParentActivity)
protected void addTimerDeclaration(ScopeImpl scope, TimerDeclarationImpl timerDeclaration)
protected void addVariableDeclaration(ScopeImpl scope, VariableDeclaration variableDeclaration)
public ActivityImpl parseSubProcess(Element subProcessElement, ScopeImpl scope)
subProcessElement
- The XML element corresponding with the subprocess definitionscope
- The current scope on which the subprocess is defined.protected ActivityImpl parseTransaction(Element transactionElement, ScopeImpl scope)
public ActivityImpl parseCallActivity(Element callActivityElement, ScopeImpl scope)
callActivityElement
- The XML element defining the call activityscope
- The current scope on which the call activity is defined.public void parseProperties(Element element, ActivityImpl activity)
element
- The element that can contain properties.activity
- The activity where the property declaration is done.public void parseProperty(Element propertyElement, ActivityImpl activity)
propertyElement
- The 'property' element that defines how a property looks like and
is handled.public void parsePropertyCustomExtensions(ActivityImpl activity, Element propertyElement, String propertyName, String propertyType)
activity
- The activity where the property declaration is done.propertyElement
- The 'property' element defining the property.propertyName
- The name of the property.propertyType
- The type of the property.public void parseSequenceFlow(Element processElement, ScopeImpl scope)
processElement
- The 'process' element wherein the sequence flow are defined.scope
- The scope to which the sequence flow must be added.public void parseSequenceFlowConditionExpression(Element seqFlowElement, TransitionImpl seqFlow)
seqFlowElement
- The 'sequenceFlow' element that can contain a condition.seqFlow
- The sequenceFlow object representation to which the condition must
be added.public void parseExecutionListenersOnScope(Element scopeElement, ScopeImpl scope)
scopeElement
- the XML element containing the scope definition.scope
- the scope to add the executionListeners to.protected boolean isValidEventNameForScope(String eventName, Element listenerElement)
public void parseExecutionListenersOnTransition(Element activitiElement, TransitionImpl activity)
public ExecutionListener parseExecutionListener(Element executionListenerElement)
ExecutionListener
implementation for the given
executionListener element.executionListenerElement
- the XML element containing the executionListener definition.public void parseDiagramInterchangeElements()
public void parseBPMNDiagram(Element bpmndiagramElement)
public void parseBPMNPlane(Element bpmnPlaneElement)
public void parseBPMNShape(Element bpmnShapeElement)
protected void parseDIBounds(Element bpmnShapeElement, HasDIBounds target)
public void parseBPMNEdge(Element bpmnEdgeElement)
public List<ProcessDefinitionEntity> getProcessDefinitions()
public ProcessDefinitionEntity getProcessDefinition(String processDefinitionKey)
public BpmnParse sourceInputStream(InputStream inputStream)
sourceInputStream
in class Parse
public BpmnParse sourceResource(String resource, ClassLoader classLoader)
sourceResource
in class Parse
public BpmnParse sourceResource(String resource)
sourceResource
in class Parse
public BpmnParse sourceString(String string)
sourceString
in class Parse
public Boolean parseBooleanAttribute(String booleanText, boolean defaultValue)
public Double parseDoubleAttribute(Element element, String attributename, String doubleText, boolean required)
protected boolean isExclusive(Element element)
protected boolean isAsync(Element element)
public Map<String,List<JobDeclaration<?>>> getJobDeclarations()
public List<JobDeclaration<?>> getJobDeclarationsByKey(String processDefinitionKey)
Copyright © 2015. All rights reserved.