code stringlengths 23 201k | docstring stringlengths 17 96.2k | func_name stringlengths 0 235 | language stringclasses 1
value | repo stringlengths 8 72 | path stringlengths 11 317 | url stringlengths 57 377 | license stringclasses 7
values |
|---|---|---|---|---|---|---|---|
public static void createEventScopeExecution(ExecutionEntity execution) {
// parent execution is a subprocess or a miBody
ActivityImpl activity = execution.getActivity();
ExecutionEntity scopeExecution = (ExecutionEntity) execution.findExecutionForFlowScope(activity.getFlowScope());
List<EventSubscrip... | creates an event scope for the given execution:
create a new event scope execution under the parent of the given execution
and move all event subscriptions to that execution.
this allows us to "remember" the event subscriptions after finishing a
scope | createEventScopeExecution | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/CompensationUtil.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/CompensationUtil.java | Apache-2.0 |
protected static boolean hasCompensationEventSubprocess(ActivityImpl activity) {
ActivityImpl compensationHandler = activity.findCompensationHandler();
return compensationHandler != null && compensationHandler.isSubProcessScope() && compensationHandler.isTriggeredByEvent();
} | creates an event scope for the given execution:
create a new event scope execution under the parent of the given execution
and move all event subscriptions to that execution.
this allows us to "remember" the event subscriptions after finishing a
scope | hasCompensationEventSubprocess | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/CompensationUtil.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/CompensationUtil.java | Apache-2.0 |
protected static ActivityImpl getEventScopeCompensationHandler(ExecutionEntity execution) {
ActivityImpl activity = execution.getActivity();
ActivityImpl compensationHandler = activity.findCompensationHandler();
if (compensationHandler != null && compensationHandler.isSubProcessScope()) {
// subproce... | In the context when an event scope execution is created (i.e. a scope such as a subprocess has completed),
this method returns the compensation handler activity that is going to be executed when by the event scope execution.
This method is not relevant when the scope has a boundary compensation handler. | getEventScopeCompensationHandler | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/CompensationUtil.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/CompensationUtil.java | Apache-2.0 |
public static List<EventSubscriptionEntity> collectCompensateEventSubscriptionsForScope(ActivityExecution execution) {
final Map<ScopeImpl, PvmExecutionImpl> scopeExecutionMapping = execution.createActivityExecutionMapping();
ScopeImpl activity = (ScopeImpl) execution.getActivity();
// <LEGACY>: different... | Collect all compensate event subscriptions for scope of given execution. | collectCompensateEventSubscriptionsForScope | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/CompensationUtil.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/CompensationUtil.java | Apache-2.0 |
@Override
public void visit(ScopeImpl obj) {
PvmExecutionImpl execution = scopeExecutionMapping.get(obj);
subscriptions.addAll(((ExecutionEntity) execution).getCompensateEventSubscriptions());
} | Collect all compensate event subscriptions for scope of given execution. | visit | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/CompensationUtil.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/CompensationUtil.java | Apache-2.0 |
@Override
public boolean isFulfilled(ScopeImpl element) {
Boolean consumesCompensationProperty = (Boolean) element.getProperty(BpmnParse.PROPERTYNAME_CONSUMES_COMPENSATION);
return consumesCompensationProperty == null || consumesCompensationProperty == Boolean.TRUE;
} | Collect all compensate event subscriptions for scope of given execution. | isFulfilled | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/CompensationUtil.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/CompensationUtil.java | Apache-2.0 |
public static List<EventSubscriptionEntity> collectCompensateEventSubscriptionsForActivity(ActivityExecution execution, String activityRef) {
final List<EventSubscriptionEntity> eventSubscriptions = collectCompensateEventSubscriptionsForScope(execution);
final String subscriptionActivityId = getSubscriptionAct... | Collect all compensate event subscriptions for activity on the scope of
given execution. | collectCompensateEventSubscriptionsForActivity | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/CompensationUtil.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/CompensationUtil.java | Apache-2.0 |
public static ExecutionEntity getCompensatingExecution(EventSubscriptionEntity eventSubscription) {
String configuration = eventSubscription.getConfiguration();
if (configuration != null) {
return Context.getCommandContext().getExecutionManager().findExecutionById(configuration);
}
else {
re... | Collect all compensate event subscriptions for activity on the scope of
given execution. | getCompensatingExecution | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/CompensationUtil.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/CompensationUtil.java | Apache-2.0 |
private static String getSubscriptionActivityId(ActivityExecution execution, String activityRef) {
ActivityImpl activityToCompensate = ((ExecutionEntity) execution).getProcessDefinition().findActivity(activityRef);
if (activityToCompensate.isMultiInstance()) {
ActivityImpl flowScope = (ActivityImpl) act... | Collect all compensate event subscriptions for activity on the scope of
given execution. | getSubscriptionActivityId | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/CompensationUtil.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/CompensationUtil.java | Apache-2.0 |
public static void propagateEscalation(ActivityExecution execution, String escalationCode) {
EscalationEventDefinition escalationEventDefinition = executeEscalation(execution, escalationCode);
if (escalationEventDefinition == null ) {
throw LOG.missingBoundaryCatchEventEscalation(execution.getActivity().... | Helper class handling the propagation of escalation. | propagateEscalation | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/EscalationHandler.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/EscalationHandler.java | Apache-2.0 |
public static EscalationEventDefinition executeEscalation(ActivityExecution execution,
String escalationCode) {
final PvmActivity currentActivity = execution.getActivity();
final EscalationEventDefinitionFinder escalationEventDefinitionFinder = new EscalationEventDefinitionFinder(escalationCode, currentA... | Walks through the activity execution hierarchy, fetches and executes matching escalation catch event
@return the escalation event definition if found matching escalation catch event | executeEscalation | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/EscalationHandler.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/EscalationHandler.java | Apache-2.0 |
@Override
public boolean isFulfilled(ActivityExecutionTuple element) {
return escalationEventDefinitionFinder.getEscalationEventDefinition() != null || element == null;
} | Walks through the activity execution hierarchy, fetches and executes matching escalation catch event
@return the escalation event definition if found matching escalation catch event | isFulfilled | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/EscalationHandler.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/EscalationHandler.java | Apache-2.0 |
protected static void executeEscalationHandler(EscalationEventDefinition escalationEventDefinition, ActivityExecutionMappingCollector activityExecutionMappingCollector, String escalationCode) {
PvmActivity escalationHandler = escalationEventDefinition.getEscalationHandler();
PvmScope escalationScope = getScope... | Walks through the activity execution hierarchy, fetches and executes matching escalation catch event
@return the escalation event definition if found matching escalation catch event | executeEscalationHandler | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/EscalationHandler.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/EscalationHandler.java | Apache-2.0 |
protected static PvmScope getScopeForEscalation(EscalationEventDefinition escalationEventDefinition) {
PvmActivity escalationHandler = escalationEventDefinition.getEscalationHandler();
if (escalationEventDefinition.isCancelActivity()) {
return escalationHandler.getEventScope();
} else {
return e... | Walks through the activity execution hierarchy, fetches and executes matching escalation catch event
@return the escalation event definition if found matching escalation catch event | getScopeForEscalation | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/EscalationHandler.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/helper/EscalationHandler.java | Apache-2.0 |
public String getExpressionText() {
return expression.getExpressionText();
} | returns the expression text for this execution listener. Comes in handy if you want to
check which listeners you already have. | getExpressionText | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/listener/DelegateExpressionExecutionListener.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/listener/DelegateExpressionExecutionListener.java | Apache-2.0 |
public void notify(DelegateExecution execution) throws Exception {
// Return value of expression is ignored
expression.getValue(execution);
} | An {@link ExecutionListener} that evaluates a {@link Expression} when notified.
@author Frederik Heremans | notify | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/listener/ExpressionExecutionListener.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/listener/ExpressionExecutionListener.java | Apache-2.0 |
public String getExpressionText() {
return expression.getExpressionText();
} | returns the expression text for this execution listener. Comes in handy if you want to
check which listeners you already have. | getExpressionText | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/listener/ExpressionExecutionListener.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/listener/ExpressionExecutionListener.java | Apache-2.0 |
public void notify(DelegateExecution execution) throws Exception {
ScriptInvocation invocation = new ScriptInvocation(script, execution);
Context
.getProcessEngineConfiguration()
.getDelegateInterceptor()
.handleInvocation(invocation);
} | An {@link ExecutionListener} which invokes a {@link ExecutableScript} when notified.
@author Sebastian Menski | notify | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/listener/ScriptExecutionListener.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/listener/ScriptExecutionListener.java | Apache-2.0 |
public ExecutableScript getScript() {
return script;
} | An {@link ExecutionListener} which invokes a {@link ExecutableScript} when notified.
@author Sebastian Menski | getScript | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/listener/ScriptExecutionListener.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/listener/ScriptExecutionListener.java | Apache-2.0 |
@Override
public void parseIoMapping(Element extensionElements, ActivityImpl activity, IoMapping inputOutput) {
} | Abstract base class for implementing a {@link BpmnParseListener} without being forced to implement
all methods provided, which makes the implementation more robust to future changes.
@author ruecker | parseIoMapping | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/AbstractBpmnParseListener.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/AbstractBpmnParseListener.java | Apache-2.0 |
public BpmnParse deployment(DeploymentEntity deployment) {
this.deployment = deployment;
return this;
} | Constructor to be called by the {@link BpmnParser}. | deployment | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
@Override
public BpmnParse execute() {
super.execute(); // schema validation
try {
parseRootElement();
} catch (BpmnParseException e) {
addError(e);
} catch (Exception e) {
LOG.parsingFailure(e);
// ALL unexpected exceptions should bubble up since they are not handled
... | Constructor to be called by the {@link BpmnParser}. | execute | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
public void parseMessages() {
for (Element messageElement : rootElement.elements("message")) {
String id = messageElement.attribute("id");
String messageName = messageElement.attribute("name");
Expression messageExpression = null;
if (messageName != null) {
messageExpression = expre... | Parses the messages of the given definitions file. Messages are not
contained within a process element, but they can be referenced from inner
process elements. | parseMessages | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void parseSignals() {
for (Element signalElement : rootElement.elements("signal")) {
String id = signalElement.attribute("id");
String signalName = signalElement.attribute("name");
for (SignalDefinition signalDefinition : signals.values()) {
if (signalDefinition.getName().equals... | Parses the signals of the given definitions file. Signals are not contained
within a process element, but they can be referenced from inner process
elements. | parseSignals | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
public void parseErrors() {
for (Element errorElement : rootElement.elements("error")) {
Error error = new Error();
String id = errorElement.attribute("id");
if (id == null) {
addError("'id' is mandatory on error definition", errorElement);
}
error.setId(id);
String err... | Parses the signals of the given definitions file. Signals are not contained
within a process element, but they can be referenced from inner process
elements. | parseErrors | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void parseEscalations() {
for (Element element : rootElement.elements("escalation")) {
String id = element.attribute("id");
if (id == null) {
addError("escalation must have an id", element);
} else {
Escalation escalation = createEscalation(id, element);
escalat... | Parses the signals of the given definitions file. Signals are not contained
within a process element, but they can be referenced from inner process
elements. | parseEscalations | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected Escalation createEscalation(String id, Element element) {
Escalation escalation = new Escalation(id);
String name = element.attribute("name");
if (name != null) {
escalation.setName(name);
}
String escalationCode = element.attribute("escalationCode");
if (escalationCode != nul... | Parses the signals of the given definitions file. Signals are not contained
within a process element, but they can be referenced from inner process
elements. | createEscalation | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
public void parseProcessDefinitions() {
for (Element processElement : rootElement.elements("process")) {
boolean isExecutable = !deployment.isNew();
String isExecutableStr = processElement.attribute("isExecutable");
if (isExecutableStr != null) {
isExecutable = Boolean.parseBoolean(isExecu... | Parses all the process definitions defined within the 'definitions' root
element. | parseProcessDefinitions | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
public void parseCollaboration() {
Element collaboration = rootElement.element("collaboration");
if (collaboration != null) {
for (Element participant : collaboration.elements("participant")) {
String processRef = participant.attribute("processRef");
if (processRef != null) {
Pro... | Parses the collaboration definition defined within the 'definitions' root
element and get all participants to lookup their process references during
DI parsing. | parseCollaboration | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
public ProcessDefinitionEntity parseProcess(Element processElement) {
// reset all mappings that are related to one process definition
sequenceFlows = new HashMap<>();
ProcessDefinitionEntity processDefinition = new ProcessDefinitionEntity();
/*
* Mapping object model - bpmn xml: processDefinitio... | Parses one process (ie anything inside a <process> element).
@param processElement
The 'process' element.
@return The parsed version of the XML: a {@link ProcessDefinitionImpl}
object. | parseProcess | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void validateAndSetHTTL(Element processElement, ProcessDefinitionEntity processDefinition, boolean skipEnforceTtl) {
try {
String processDefinitionKey = processDefinition.getKey();
Integer historyTimeToLive = HistoryTimeToLiveParser.create().parse(processElement, processDefinitionKey, skipEnfo... | Parses one process (ie anything inside a <process> element).
@param processElement
The 'process' element.
@return The parsed version of the XML: a {@link ProcessDefinitionImpl}
object. | validateAndSetHTTL | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void parseLaneSets(Element parentElement, ProcessDefinitionEntity processDefinition) {
List<Element> laneSets = parentElement.elements("laneSet");
if (laneSets != null && laneSets.size() > 0) {
for (Element laneSetElement : laneSets) {
LaneSet newLaneSet = new LaneSet();
newLan... | Parses one process (ie anything inside a <process> element).
@param processElement
The 'process' element.
@return The parsed version of the XML: a {@link ProcessDefinitionImpl}
object. | parseLaneSets | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void parseLanes(Element laneSetElement, LaneSet laneSet) {
List<Element> lanes = laneSetElement.elements("lane");
if (lanes != null && lanes.size() > 0) {
for (Element laneElement : lanes) {
// Parse basic attributes
Lane lane = new Lane();
lane.setId(laneElement.attribut... | Parses one process (ie anything inside a <process> element).
@param processElement
The 'process' element.
@return The parsed version of the XML: a {@link ProcessDefinitionImpl}
object. | parseLanes | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
public void parseScope(Element scopeElement, ScopeImpl parentScope) {
// Not yet supported on process level (PVM additions needed):
// parseProperties(processElement);
// filter activities that must be parsed separately
List<Element> activityElements = new ArrayList<>(scopeElement.elements());
Map... | Parses a scope: a process, subprocess, etc.
Note that a process definition is a scope on itself.
@param scopeElement
The XML element defining the scope
@param parentScope
The scope that contains the nested scope. | parseScope | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected HashMap<String, Element> filterIntermediateCatchEvents(List<Element> activityElements) {
HashMap<String, Element> intermediateCatchEvents = new HashMap<>();
for(Element activityElement : activityElements) {
if (activityElement.getTagName().equals(ActivityTypes.INTERMEDIATE_EVENT_CATCH)) {
... | Parses a scope: a process, subprocess, etc.
Note that a process definition is a scope on itself.
@param scopeElement
The XML element defining the scope
@param parentScope
The scope that contains the nested scope. | filterIntermediateCatchEvents | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected HashMap<String, Element> filterCompensationHandlers(List<Element> activityElements) {
HashMap<String, Element> compensationHandlers = new HashMap<>();
for(Element activityElement : activityElements) {
if (isCompensationHandler(activityElement)) {
compensationHandlers.put(activityElement.... | Parses a scope: a process, subprocess, etc.
Note that a process definition is a scope on itself.
@param scopeElement
The XML element defining the scope
@param parentScope
The scope that contains the nested scope. | filterCompensationHandlers | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void parseIntermediateCatchEvents(Element scopeElement, ScopeImpl parentScope, Map<String, Element> intermediateCatchEventElements) {
for (Element intermediateCatchEventElement : intermediateCatchEventElements.values()) {
if (parentScope.findActivity(intermediateCatchEventElement.attribute("id")) =... | Parses a scope: a process, subprocess, etc.
Note that a process definition is a scope on itself.
@param scopeElement
The XML element defining the scope
@param parentScope
The scope that contains the nested scope. | parseIntermediateCatchEvents | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void parseProcessDefinitionCustomExtensions(Element scopeElement, ProcessDefinition definition) {
parseStartAuthorization(scopeElement, definition);
} | Parses a scope: a process, subprocess, etc.
Note that a process definition is a scope on itself.
@param scopeElement
The XML element defining the scope
@param parentScope
The scope that contains the nested scope. | parseProcessDefinitionCustomExtensions | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void parseStartAuthorization(Element scopeElement, ProcessDefinition definition) {
ProcessDefinitionEntity processDefinition = (ProcessDefinitionEntity) definition;
// parse activiti:potentialStarters
Element extentionsElement = scopeElement.element("extensionElements");
if (extentionsElement... | Parses a scope: a process, subprocess, etc.
Note that a process definition is a scope on itself.
@param scopeElement
The XML element defining the scope
@param parentScope
The scope that contains the nested scope. | parseStartAuthorization | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void parsePotentialStarterResourceAssignment(Element performerElement, ProcessDefinitionEntity processDefinition) {
Element raeElement = performerElement.element(RESOURCE_ASSIGNMENT_EXPR);
if (raeElement != null) {
Element feElement = raeElement.element(FORMAL_EXPRESSION);
if (feElement !=... | Parses a scope: a process, subprocess, etc.
Note that a process definition is a scope on itself.
@param scopeElement
The XML element defining the scope
@param parentScope
The scope that contains the nested scope. | parsePotentialStarterResourceAssignment | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void parseAssociations(Element scopeElement, ScopeImpl parentScope, Map<String, Element> compensationHandlers) {
for (Element associationElement : scopeElement.elements("association")) {
String sourceRef = associationElement.attribute("sourceRef");
if (sourceRef == null) {
addError("as... | Parses a scope: a process, subprocess, etc.
Note that a process definition is a scope on itself.
@param scopeElement
The XML element defining the scope
@param parentScope
The scope that contains the nested scope. | parseAssociations | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected ActivityImpl parseCompensationHandlerForCompensationBoundaryEvent(ScopeImpl parentScope, ActivityImpl sourceActivity, String targetRef,
Map<String, Element> compensationHandlers) {
Element compensationHandler = compensationHandlers.get(targetRef);
ActivityImpl eventScope = (ActivityImpl) sourc... | Parses a scope: a process, subprocess, etc.
Note that a process definition is a scope on itself.
@param scopeElement
The XML element defining the scope
@param parentScope
The scope that contains the nested scope. | parseCompensationHandlerForCompensationBoundaryEvent | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void parseAssociationOfCompensationBoundaryEvent(Element associationElement, ActivityImpl sourceActivity, ActivityImpl targetActivity) {
if (!targetActivity.isCompensationHandler()) {
addError("compensation boundary catch must be connected to element with isForCompensation=true",
associati... | Parses a scope: a process, subprocess, etc.
Note that a process definition is a scope on itself.
@param scopeElement
The XML element defining the scope
@param parentScope
The scope that contains the nested scope. | parseAssociationOfCompensationBoundaryEvent | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void parseCompensationHandlers(ScopeImpl parentScope, Map<String, Element> compensationHandlers) {
// compensation handlers attached to compensation boundary events should be already parsed
for (Element compensationHandler : new HashSet<>(compensationHandlers.values())) {
parseActivity(compensat... | Parses a scope: a process, subprocess, etc.
Note that a process definition is a scope on itself.
@param scopeElement
The XML element defining the scope
@param parentScope
The scope that contains the nested scope. | parseCompensationHandlers | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
public void parseStartEvents(Element parentElement, ScopeImpl scope) {
List<Element> startEventElements = parentElement.elements("startEvent");
List<ActivityImpl> startEventActivities = new ArrayList<>();
if (startEventElements.size() > 0) {
for (Element startEventElement : startEventElements) {
... | Parses the start events of a certain level in the process (process,
subprocess or another scope).
@param parentElement
The 'parent' element that contains the start events (process,
subprocess).
@param scope
The {@link ScopeImpl} to which the start events must be added. | parseStartEvents | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void selectInitial(List<ActivityImpl> startEventActivities, ProcessDefinitionEntity processDefinition, Element parentElement) {
ActivityImpl initial = null;
// validate that there is s single none start event / timer start event:
List<String> exclusiveStartEventTypes = Arrays.asList("startEvent", ... | Parses the start events of a certain level in the process (process,
subprocess or another scope).
@param parentElement
The 'parent' element that contains the start events (process,
subprocess).
@param scope
The {@link ScopeImpl} to which the start events must be added. | selectInitial | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void parseProcessDefinitionStartEvent(ActivityImpl startEventActivity, Element startEventElement, Element parentElement, ScopeImpl scope) {
ProcessDefinitionEntity processDefinition = (ProcessDefinitionEntity) scope;
String initiatorVariableName = startEventElement.attributeNS(CAMUNDA_BPMN_EXTENSIONS... | Parses the start events of a certain level in the process (process,
subprocess or another scope).
@param parentElement
The 'parent' element that contains the start events (process,
subprocess).
@param scope
The {@link ScopeImpl} to which the start events must be added. | parseProcessDefinitionStartEvent | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void parseStartFormHandlers(List<Element> startEventElements, ProcessDefinitionEntity processDefinition) {
if (processDefinition.getInitial() != null) {
for (Element startEventElement : startEventElements) {
if (startEventElement.attribute("id").equals(processDefinition.getInitial().getId()... | Parses the start events of a certain level in the process (process,
subprocess or another scope).
@param parentElement
The 'parent' element that contains the start events (process,
subprocess).
@param scope
The {@link ScopeImpl} to which the start events must be added. | parseStartFormHandlers | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void parseScopeStartEvent(ActivityImpl startEventActivity, Element startEventElement, Element parentElement, ActivityImpl scopeActivity) {
Properties scopeProperties = scopeActivity.getProperties();
// set this as the scope's initial
if (!scopeProperties.contains(BpmnProperties.INITIAL_ACTIVITY)... | Parses the start events of a certain level in the process (process,
subprocess or another scope).
@param parentElement
The 'parent' element that contains the start events (process,
subprocess).
@param scope
The {@link ScopeImpl} to which the start events must be added. | parseScopeStartEvent | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void parseCompensationEventSubprocess(ActivityImpl startEventActivity, Element startEventElement, ActivityImpl scopeActivity, Element compensateEventDefinition) {
startEventActivity.getProperties().set(BpmnProperties.TYPE, ActivityTypes.START_EVENT_COMPENSATION);
scopeActivity.setProperty(PROPERTYNAME... | Parses the start events of a certain level in the process (process,
subprocess or another scope).
@param parentElement
The 'parent' element that contains the start events (process,
subprocess).
@param scope
The {@link ScopeImpl} to which the start events must be added. | parseCompensationEventSubprocess | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void parseErrorStartEventDefinition(Element errorEventDefinition, ActivityImpl startEventActivity) {
startEventActivity.getProperties().set(BpmnProperties.TYPE, ActivityTypes.START_EVENT_ERROR);
String errorRef = errorEventDefinition.attribute("errorRef");
Error error = null;
// the error even... | Parses the start events of a certain level in the process (process,
subprocess or another scope).
@param parentElement
The 'parent' element that contains the start events (process,
subprocess).
@param scope
The {@link ScopeImpl} to which the start events must be added. | parseErrorStartEventDefinition | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void setErrorCodeVariableOnErrorEventDefinition(Element errorEventDefinition, ErrorEventDefinition definition) {
String errorCodeVar = errorEventDefinition.attributeNS(CAMUNDA_BPMN_EXTENSIONS_NS, "errorCodeVariable");
if (errorCodeVar != null) {
definition.setErrorCodeVariable(errorCodeVar);
... | Sets the value for "camunda:errorCodeVariable" on the passed definition if
it's present.
@param errorEventDefinition
the XML errorEventDefinition tag
@param definition
the errorEventDefintion that can get the errorCodeVariable value | setErrorCodeVariableOnErrorEventDefinition | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void setErrorMessageVariableOnErrorEventDefinition(Element errorEventDefinition, ErrorEventDefinition definition) {
String errorMessageVariable = errorEventDefinition.attributeNS(CAMUNDA_BPMN_EXTENSIONS_NS, "errorMessageVariable");
if (errorMessageVariable != null) {
definition.setErrorMessageVa... | Sets the value for "camunda:errorMessageVariable" on the passed definition if
it's present.
@param errorEventDefinition
the XML errorEventDefinition tag
@param definition
the errorEventDefintion that can get the errorMessageVariable value | setErrorMessageVariableOnErrorEventDefinition | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected EventSubscriptionDeclaration parseMessageEventDefinition(Element messageEventDefinition, String messageElementId) {
String messageRef = messageEventDefinition.attribute("messageRef");
if (messageRef == null) {
addError("attribute 'messageRef' is required", messageEventDefinition, messageElementI... | Sets the value for "camunda:errorMessageVariable" on the passed definition if
it's present.
@param errorEventDefinition
the XML errorEventDefinition tag
@param definition
the errorEventDefintion that can get the errorMessageVariable value | parseMessageEventDefinition | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void addEventSubscriptionDeclaration(EventSubscriptionDeclaration subscription, ScopeImpl scope, Element element) {
if (subscription.getEventType().equals(EventType.MESSAGE.name()) && (!subscription.hasEventName())) {
addError("Cannot have a message event subscription with an empty or missing name",... | Sets the value for "camunda:errorMessageVariable" on the passed definition if
it's present.
@param errorEventDefinition
the XML errorEventDefinition tag
@param definition
the errorEventDefintion that can get the errorMessageVariable value | addEventSubscriptionDeclaration | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected boolean hasMultipleMessageEventDefinitionsWithSameName(EventSubscriptionDeclaration subscription, Collection<EventSubscriptionDeclaration> eventDefinitions) {
return hasMultipleEventDefinitionsWithSameName(subscription, eventDefinitions, EventType.MESSAGE.name());
} | Sets the value for "camunda:errorMessageVariable" on the passed definition if
it's present.
@param errorEventDefinition
the XML errorEventDefinition tag
@param definition
the errorEventDefintion that can get the errorMessageVariable value | hasMultipleMessageEventDefinitionsWithSameName | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected boolean hasMultipleSignalEventDefinitionsWithSameName(EventSubscriptionDeclaration subscription, Collection<EventSubscriptionDeclaration> eventDefinitions) {
return hasMultipleEventDefinitionsWithSameName(subscription, eventDefinitions, EventType.SIGNAL.name());
} | Sets the value for "camunda:errorMessageVariable" on the passed definition if
it's present.
@param errorEventDefinition
the XML errorEventDefinition tag
@param definition
the errorEventDefintion that can get the errorMessageVariable value | hasMultipleSignalEventDefinitionsWithSameName | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected boolean hasMultipleConditionalEventDefinitionsWithSameCondition(EventSubscriptionDeclaration subscription, Collection<EventSubscriptionDeclaration> eventDefinitions) {
if (subscription.getEventType().equals(EventType.CONDITONAL.name())) {
for (EventSubscriptionDeclaration eventDefinition : eventDefi... | Sets the value for "camunda:errorMessageVariable" on the passed definition if
it's present.
@param errorEventDefinition
the XML errorEventDefinition tag
@param definition
the errorEventDefintion that can get the errorMessageVariable value | hasMultipleConditionalEventDefinitionsWithSameCondition | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected boolean hasMultipleEventDefinitionsWithSameName(EventSubscriptionDeclaration subscription, Collection<EventSubscriptionDeclaration> eventDefinitions, String eventType) {
if (subscription.getEventType().equals(eventType)) {
for (EventSubscriptionDeclaration eventDefinition : eventDefinitions) {
... | Sets the value for "camunda:errorMessageVariable" on the passed definition if
it's present.
@param errorEventDefinition
the XML errorEventDefinition tag
@param definition
the errorEventDefintion that can get the errorMessageVariable value | hasMultipleEventDefinitionsWithSameName | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void addEventSubscriptionJobDeclaration(EventSubscriptionJobDeclaration jobDeclaration, ActivityImpl activity, Element element) {
List<EventSubscriptionJobDeclaration> jobDeclarationsForActivity = (List<EventSubscriptionJobDeclaration>) activity.getProperty(PROPERTYNAME_EVENT_SUBSCRIPTION_JOB_DECLARATION)... | Sets the value for "camunda:errorMessageVariable" on the passed definition if
it's present.
@param errorEventDefinition
the XML errorEventDefinition tag
@param definition
the errorEventDefintion that can get the errorMessageVariable value | addEventSubscriptionJobDeclaration | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected boolean activityAlreadyContainsJobDeclarationEventType(List<EventSubscriptionJobDeclaration> jobDeclarationsForActivity,
EventSubscriptionJobDeclaration jobDeclaration){
for(EventSubscriptionJobDeclaration declaration: jobDeclarationsForAc... | Assumes that an activity has at most one declaration of a certain eventType. | activityAlreadyContainsJobDeclarationEventType | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
public void parseActivities(List<Element> activityElements, Element parentElement, ScopeImpl scopeElement) {
for (Element activityElement : activityElements) {
parseActivity(activityElement, parentElement, scopeElement);
}
} | Parses the activities of a certain level in the process (process,
subprocess or another scope).
@param activityElements
The list of activities to be parsed. This list may be filtered before.
@param parentElement
The 'parent' element that contains the activities (process, subprocess).
@param scopeElem... | parseActivities | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected ActivityImpl parseActivity(Element activityElement, Element parentElement, ScopeImpl scopeElement) {
ActivityImpl activity = null;
boolean isMultiInstance = false;
ScopeImpl miBody = parseMultiInstanceLoopCharacteristics(activityElement, scopeElement);
if (miBody != null) {
scopeElement... | Parses the activities of a certain level in the process (process,
subprocess or another scope).
@param activityElements
The list of activities to be parsed. This list may be filtered before.
@param parentElement
The 'parent' element that contains the activities (process, subprocess).
@param scopeElem... | parseActivity | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
public void validateActivities(List<ActivityImpl> activities) {
for (ActivityImpl activity : activities) {
validateActivity(activity);
// check children if it is an own scope / subprocess / ...
if (activity.getActivities().size() > 0) {
validateActivities(activity.getActivities());
}... | Parses the activities of a certain level in the process (process,
subprocess or another scope).
@param activityElements
The list of activities to be parsed. This list may be filtered before.
@param parentElement
The 'parent' element that contains the activities (process, subprocess).
@param scopeElem... | validateActivities | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void validateActivity(ActivityImpl activity) {
if (activity.getActivityBehavior() instanceof ExclusiveGatewayActivityBehavior) {
validateExclusiveGateway(activity);
}
validateOutgoingFlows(activity);
} | Parses the activities of a certain level in the process (process,
subprocess or another scope).
@param activityElements
The list of activities to be parsed. This list may be filtered before.
@param parentElement
The 'parent' element that contains the activities (process, subprocess).
@param scopeElem... | validateActivity | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void validateOutgoingFlows(ActivityImpl activity) {
if (activity.isAsyncAfter()) {
for (PvmTransition transition : activity.getOutgoingTransitions()) {
if (transition.getId() == null) {
addError("Sequence flow with sourceRef='" + activity.getId() + "' must have an id, activity with... | Parses the activities of a certain level in the process (process,
subprocess or another scope).
@param activityElements
The list of activities to be parsed. This list may be filtered before.
@param parentElement
The 'parent' element that contains the activities (process, subprocess).
@param scopeElem... | validateOutgoingFlows | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
public void validateExclusiveGateway(ActivityImpl activity) {
if (activity.getOutgoingTransitions().size() == 0) {
// TODO: double check if this is valid (I think in Activiti yes, since we
// need start events we will need an end event as well)
addError("Exclusive Gateway '" + activity.getId() + "... | Parses the activities of a certain level in the process (process,
subprocess or another scope).
@param activityElements
The list of activities to be parsed. This list may be filtered before.
@param parentElement
The 'parent' element that contains the activities (process, subprocess).
@param scopeElem... | validateExclusiveGateway | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
public ActivityImpl parseIntermediateCatchEvent(Element intermediateEventElement, ScopeImpl scopeElement, ActivityImpl eventBasedGateway) {
ActivityImpl nestedActivity = createActivityOnScope(intermediateEventElement, scopeElement);
Element timerEventDefinition = intermediateEventElement.element(TIMER_EVENT_DE... | Parses the activities of a certain level in the process (process,
subprocess or another scope).
@param activityElements
The list of activities to be parsed. This list may be filtered before.
@param parentElement
The 'parent' element that contains the activities (process, subprocess).
@param scopeElem... | parseIntermediateCatchEvent | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void parseIntermediateLinkEventCatchBehavior(Element intermediateEventElement, ActivityImpl activity, Element linkEventDefinitionElement) {
activity.getProperties().set(BpmnProperties.TYPE, ActivityTypes.INTERMEDIATE_EVENT_LINK);
String linkName = linkEventDefinitionElement.attribute("name");
St... | Parses the activities of a certain level in the process (process,
subprocess or another scope).
@param activityElements
The list of activities to be parsed. This list may be filtered before.
@param parentElement
The 'parent' element that contains the activities (process, subprocess).
@param scopeElem... | parseIntermediateLinkEventCatchBehavior | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void parseIntermediateMessageEventDefinition(Element messageEventDefinition, ActivityImpl nestedActivity) {
nestedActivity.getProperties().set(BpmnProperties.TYPE, ActivityTypes.INTERMEDIATE_EVENT_MESSAGE);
EventSubscriptionDeclaration messageDefinition = parseMessageEventDefinition(messageEventDefi... | Parses the activities of a certain level in the process (process,
subprocess or another scope).
@param activityElements
The list of activities to be parsed. This list may be filtered before.
@param parentElement
The 'parent' element that contains the activities (process, subprocess).
@param scopeElem... | parseIntermediateMessageEventDefinition | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
public ActivityImpl parseIntermediateThrowEvent(Element intermediateEventElement, ScopeImpl scopeElement) {
Element signalEventDefinitionElement = intermediateEventElement.element(SIGNAL_EVENT_DEFINITION);
Element compensateEventDefinitionElement = intermediateEventElement.element(COMPENSATE_EVENT_DEFINITION);
... | Parses the activities of a certain level in the process (process,
subprocess or another scope).
@param activityElements
The list of activities to be parsed. This list may be filtered before.
@param parentElement
The 'parent' element that contains the activities (process, subprocess).
@param scopeElem... | parseIntermediateThrowEvent | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected CompensateEventDefinition parseThrowCompensateEventDefinition(final Element compensateEventDefinitionElement, ScopeImpl scopeElement, final String parentElementId) {
final String activityRef = compensateEventDefinitionElement.attribute("activityRef");
boolean waitForCompletion = TRUE.equals(compensate... | Parses the activities of a certain level in the process (process,
subprocess or another scope).
@param activityElements
The list of activities to be parsed. This list may be filtered before.
@param parentElement
The 'parent' element that contains the activities (process, subprocess).
@param scopeElem... | parseThrowCompensateEventDefinition | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
@Override
public void callback() {
addError("Invalid attribute value for 'activityRef': no activity with id '" + activityRef + "' in scope '" + scopeId + "'",
compensateEventDefinitionElement,
parentElementId);
} | Parses the activities of a certain level in the process (process,
subprocess or another scope).
@param activityElements
The list of activities to be parsed. This list may be filtered before.
@param parentElement
The 'parent' element that contains the activities (process, subprocess).
@param scopeElem... | callback | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void validateCatchCompensateEventDefinition(Element compensateEventDefinitionElement, String parentElementId) {
String activityRef = compensateEventDefinitionElement.attribute("activityRef");
if (activityRef != null) {
addWarning("attribute 'activityRef' is not supported on catching compensation... | Parses the activities of a certain level in the process (process,
subprocess or another scope).
@param activityElements
The list of activities to be parsed. This list may be filtered before.
@param parentElement
The 'parent' element that contains the activities (process, subprocess).
@param scopeElem... | validateCatchCompensateEventDefinition | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void parseBoundaryCompensateEventDefinition(Element compensateEventDefinition, ActivityImpl activity) {
activity.getProperties().set(BpmnProperties.TYPE, ActivityTypes.BOUNDARY_COMPENSATION);
ScopeImpl hostActivity = activity.getEventScope();
for (ActivityImpl sibling : activity.getFlowScope().ge... | Parses the activities of a certain level in the process (process,
subprocess or another scope).
@param activityElements
The list of activities to be parsed. This list may be filtered before.
@param parentElement
The 'parent' element that contains the activities (process, subprocess).
@param scopeElem... | parseBoundaryCompensateEventDefinition | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected ActivityBehavior parseBoundaryCancelEventDefinition(Element cancelEventDefinition, ActivityImpl activity) {
activity.getProperties().set(BpmnProperties.TYPE, ActivityTypes.BOUNDARY_CANCEL);
LegacyBehavior.parseCancelBoundaryEvent(activity);
ActivityImpl transaction = (ActivityImpl) activity.getE... | Parses the activities of a certain level in the process (process,
subprocess or another scope).
@param activityElements
The list of activities to be parsed. This list may be filtered before.
@param parentElement
The 'parent' element that contains the activities (process, subprocess).
@param scopeElem... | parseBoundaryCancelEventDefinition | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
public ScopeImpl parseMultiInstanceLoopCharacteristics(Element activityElement, ScopeImpl scope) {
Element miLoopCharacteristics = activityElement.element("multiInstanceLoopCharacteristics");
if (miLoopCharacteristics == null) {
return null;
} else {
String id = activityElement.attribute("id");... | Parses loopCharacteristics (standardLoop/Multi-instance) of an activity, if
any is defined. | parseMultiInstanceLoopCharacteristics | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
public static String getIdForMiBody(String id) {
return id + MULTI_INSTANCE_BODY_ID_SUFFIX;
} | Parses loopCharacteristics (standardLoop/Multi-instance) of an activity, if
any is defined. | getIdForMiBody | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
public ActivityImpl createActivityOnScope(Element activityElement, ScopeImpl scopeElement) {
String id = activityElement.attribute("id");
LOG.parsingElement("activity", id);
ActivityImpl activity = scopeElement.createActivity(id);
activity.setProperty("name", activityElement.attribute("name"));
ac... | Parses the generic information of an activity element (id, name,
documentation, etc.), and creates a new {@link ActivityImpl} on the given
scope element. | createActivityOnScope | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void setActivityAsyncDelegates(final ActivityImpl activity) {
activity.setDelegateAsyncAfterUpdate(new ActivityImpl.AsyncAfterUpdate() {
@Override
public void updateAsyncAfter(boolean asyncAfter, boolean exclusive) {
if (asyncAfter) {
addMessageJobDeclaration(new AsyncAfterMe... | Sets the delegates for the activity, which will be called
if the attribute asyncAfter or asyncBefore was changed.
@param activity the activity which gets the delegates | setActivityAsyncDelegates | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
@Override
public void updateAsyncAfter(boolean asyncAfter, boolean exclusive) {
if (asyncAfter) {
addMessageJobDeclaration(new AsyncAfterMessageJobDeclaration(), activity, exclusive);
} else {
removeMessageJobDeclarationWithJobConfiguration(activity, MessageJobDeclaration.ASYNC... | Sets the delegates for the activity, which will be called
if the attribute asyncAfter or asyncBefore was changed.
@param activity the activity which gets the delegates | updateAsyncAfter | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
@Override
public void updateAsyncBefore(boolean asyncBefore, boolean exclusive) {
if (asyncBefore) {
addMessageJobDeclaration(new AsyncBeforeMessageJobDeclaration(), activity, exclusive);
} else {
removeMessageJobDeclarationWithJobConfiguration(activity, MessageJobDeclaration.A... | Sets the delegates for the activity, which will be called
if the attribute asyncAfter or asyncBefore was changed.
@param activity the activity which gets the delegates | updateAsyncBefore | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void addMessageJobDeclaration(MessageJobDeclaration messageJobDeclaration, ActivityImpl activity, boolean exclusive) {
ProcessDefinition procDef = (ProcessDefinition) activity.getProcessDefinition();
if (!exists(messageJobDeclaration, procDef.getKey(), activity.getActivityId())) {
messageJobDecl... | Adds the new message job declaration to existing declarations.
There will be executed an existing check before the adding is executed.
@param messageJobDeclaration the new message job declaration
@param activity the corresponding activity
@param exclusive the flag which indicates if the async should be exclusive | addMessageJobDeclaration | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected boolean exists(MessageJobDeclaration msgJobdecl, String procDefKey, String activityId) {
boolean exist = false;
List<JobDeclaration<?, ?>> declarations = jobDeclarations.get(procDefKey);
if (declarations != null) {
for (int i = 0; i < declarations.size() && !exist; i++) {
JobDeclarat... | Checks whether the message declaration already exists.
@param msgJobdecl the message job declaration which is searched
@param procDefKey the corresponding process definition key
@param activityId the corresponding activity id
@return true if the message job declaration exists, false otherwise | exists | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void removeMessageJobDeclarationWithJobConfiguration(ActivityImpl activity, String jobConfiguration) {
List<MessageJobDeclaration> messageJobDeclarations = (List<MessageJobDeclaration>) activity.getProperty(PROPERTYNAME_MESSAGE_JOB_DECLARATION);
if (messageJobDeclarations != null) {
Iterator<Mes... | Removes a job declaration which belongs to the given activity and has the given job configuration.
@param activity the activity of the job declaration
@param jobConfiguration the job configuration of the declaration | removeMessageJobDeclarationWithJobConfiguration | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
public String parseDocumentation(Element element) {
List<Element> docElements = element.elements("documentation");
List<String> docStrings = new ArrayList<>();
for (Element e : docElements) {
docStrings.add(e.getText());
}
return parseDocumentation(docStrings);
} | Removes a job declaration which belongs to the given activity and has the given job configuration.
@param activity the activity of the job declaration
@param jobConfiguration the job configuration of the declaration | parseDocumentation | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
public static String parseDocumentation(List<String> docStrings) {
if (docStrings.isEmpty()) {
return null;
}
StringBuilder builder = new StringBuilder();
for (String e : docStrings) {
if (builder.length() != 0) {
builder.append("\n\n");
}
builder.append(e.trim());
... | Removes a job declaration which belongs to the given activity and has the given job configuration.
@param activity the activity of the job declaration
@param jobConfiguration the job configuration of the declaration | parseDocumentation | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected boolean isCompensationHandler(Element activityElement) {
String isForCompensation = activityElement.attribute("isForCompensation");
return isForCompensation != null && isForCompensation.equalsIgnoreCase(TRUE);
} | Removes a job declaration which belongs to the given activity and has the given job configuration.
@param activity the activity of the job declaration
@param jobConfiguration the job configuration of the declaration | isCompensationHandler | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected ScriptTaskActivityBehavior parseScriptTaskElement(Element scriptTaskElement) {
// determine script language
String language = scriptTaskElement.attribute("scriptFormat");
if (language == null) {
language = ScriptingEngines.DEFAULT_SCRIPTING_LANGUAGE;
}
String resultVariableName = par... | Returns a {@link ScriptTaskActivityBehavior} for the script task element
corresponding to the script source or resource specified.
@param scriptTaskElement
the script task element
@return the corresponding {@link ScriptTaskActivityBehavior} | parseScriptTaskElement | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected String parseResultVariable(Element element) {
// determine if result variable exists
String resultVariableName = element.attributeNS(CAMUNDA_BPMN_EXTENSIONS_NS, "resultVariable");
if (resultVariableName == null) {
// for backwards compatible reasons
resultVariableName = element.attribu... | Returns a {@link ScriptTaskActivityBehavior} for the script task element
corresponding to the script source or resource specified.
@param scriptTaskElement
the script task element
@return the corresponding {@link ScriptTaskActivityBehavior} | parseResultVariable | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
public void parseServiceTaskLike(
ActivityImpl activity,
String elementName,
Element serviceTaskElement,
Element camundaPropertiesElement,
ScopeImpl scope) {
String type = serviceTaskElement.attributeNS(CAMUNDA_BPMN_EXTENSIONS_NS, TYPE);
String className = serviceTaskElement.attri... | @param elementName
@param serviceTaskElement the element that contains the camunda service task definition
(e.g. camunda:class attributes)
@param camundaPropertiesElement the element that contains the camunda:properties extension elements
that apply to this service task. Usually, but not always, this is the same as... | parseServiceTaskLike | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void validateServiceTaskLike(
ActivityImpl activity,
String elementName,
Element serviceTaskElement
) {
if (activity.getActivityBehavior() == null) {
addError("One of the attributes 'class', 'delegateExpression', 'type', "
+ "or 'expression' is mandatory on " + elem... | @param elementName
@param serviceTaskElement the element that contains the camunda service task definition
(e.g. camunda:class attributes)
@param camundaPropertiesElement the element that contains the camunda:properties extension elements
that apply to this service task. Usually, but not always, this is the same as... | validateServiceTaskLike | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected ActivityImpl parseDmnBusinessRuleTask(Element businessRuleTaskElement, ScopeImpl scope) {
ActivityImpl activity = createActivityOnScope(businessRuleTaskElement, scope);
// the activity is a scope since the result variable is stored as local variable
activity.setScope(true);
parseAsynchronousC... | Parse a Business Rule Task which references a decision. | parseDmnBusinessRuleTask | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected DecisionResultMapper parseDecisionResultMapper(Element businessRuleTaskElement) {
// default mapper is 'resultList'
String decisionResultMapper = businessRuleTaskElement.attributeNS(CAMUNDA_BPMN_EXTENSIONS_NS, "mapDecisionResult");
DecisionResultMapper mapper = DecisionEvaluationUtil.getDecisionRe... | Parse a Business Rule Task which references a decision. | parseDecisionResultMapper | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void parseAsynchronousContinuationForActivity(Element activityElement, ActivityImpl activity) {
// can't use #getMultiInstanceScope here to determine whether the task is multi-instance,
// since the property hasn't been set yet (cf parseActivity)
ActivityImpl parentFlowScopeActivity = activity.get... | Parse async continuation of an activity and create async jobs for the activity.
<br/> <br/>
When the activity is marked as multi instance, then async jobs create instead for the multi instance body.
When the wrapped activity has async characteristics in 'multiInstanceLoopCharacteristics' element,
then async jobs create... | parseAsynchronousContinuationForActivity | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void parseAsynchronousContinuation(Element element, ActivityImpl activity) {
boolean isAsyncBefore = isAsyncBefore(element);
boolean isAsyncAfter = isAsyncAfter(element);
boolean exclusive = isExclusive(element);
// set properties on activity
activity.setAsyncBefore(isAsyncBefore, exclus... | Parse async continuation of the given element and create async jobs for the activity.
@param element with async characteristics
@param activity | parseAsynchronousContinuation | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected ParameterValueProvider parsePriority(Element element, String priorityAttribute) {
String priorityAttributeValue = element.attributeNS(CAMUNDA_BPMN_EXTENSIONS_NS, priorityAttribute);
if (priorityAttributeValue == null) {
return null;
} else {
Object value = priorityAttributeValue;
... | Parse async continuation of the given element and create async jobs for the activity.
@param element with async characteristics
@param activity | parsePriority | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected ParameterValueProvider parseTopic(Element element, String topicAttribute) {
String topicAttributeValue = element.attributeNS(CAMUNDA_BPMN_EXTENSIONS_NS, topicAttribute);
if (topicAttributeValue == null) {
addError("External tasks must specify a 'topic' attribute in the camunda namespace", eleme... | Parse async continuation of the given element and create async jobs for the activity.
@param element with async characteristics
@param activity | parseTopic | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
@SuppressWarnings("unchecked")
protected void addMessageJobDeclarationToActivity(MessageJobDeclaration messageJobDeclaration, ActivityImpl activity) {
List<MessageJobDeclaration> messageJobDeclarations = (List<MessageJobDeclaration>) activity.getProperty(PROPERTYNAME_MESSAGE_JOB_DECLARATION);
if (messageJobDe... | Parse async continuation of the given element and create async jobs for the activity.
@param element with async characteristics
@param activity | addMessageJobDeclarationToActivity | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
protected void addJobDeclarationToProcessDefinition(JobDeclaration<?, ?> jobDeclaration, ProcessDefinition processDefinition) {
String key = processDefinition.getKey();
List<JobDeclaration<?, ?>> containingJobDeclarations = jobDeclarations.get(key);
if (containingJobDeclarations == null) {
containing... | Parse async continuation of the given element and create async jobs for the activity.
@param element with async characteristics
@param activity | addJobDeclarationToProcessDefinition | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java | Apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.