code
stringlengths 25
201k
| docstring
stringlengths 19
96.2k
| func_name
stringlengths 0
235
| language
stringclasses 1
value | repo
stringlengths 8
51
| path
stringlengths 11
314
| url
stringlengths 62
377
| license
stringclasses 7
values |
|---|---|---|---|---|---|---|---|
public B camundaVariableName(String variableName) {
element.setCamundaVariableName(variableName);
return myself;
}
|
Sets the camunda variable name attribute, that defines on
which variable the condition should be evaluated.
@param variableName the variable on which the condition should be evaluated
@return the builder object
|
camundaVariableName
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractConditionalEventDefinitionBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractConditionalEventDefinitionBuilder.java
|
Apache-2.0
|
@SuppressWarnings({ "rawtypes", "unchecked" })
public <T extends AbstractFlowNodeBuilder> T conditionalEventDefinitionDone() {
return (T) ((Event) element.getParentElement()).builder();
}
|
Finishes the building of a conditional event definition.
@param <T>
@return the parent event builder
|
conditionalEventDefinitionDone
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractConditionalEventDefinitionBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractConditionalEventDefinitionBuilder.java
|
Apache-2.0
|
public B errorCodeVariable(String errorCodeVariable) {
element.setCamundaErrorCodeVariable(errorCodeVariable);
return myself;
}
|
Sets the error code variable attribute.
|
errorCodeVariable
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractErrorEventDefinitionBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractErrorEventDefinitionBuilder.java
|
Apache-2.0
|
public B errorMessageVariable(String errorMessageVariable) {
element.setCamundaErrorMessageVariable(errorMessageVariable);
return myself;
}
|
Sets the error message variable attribute.
|
errorMessageVariable
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractErrorEventDefinitionBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractErrorEventDefinitionBuilder.java
|
Apache-2.0
|
public B error(String errorCode) {
return error(errorCode, null);
}
|
Sets the error attribute with errorCode.
|
error
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractErrorEventDefinitionBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractErrorEventDefinitionBuilder.java
|
Apache-2.0
|
public B error(String errorCode, String errorMessage) {
element.setError(findErrorForNameAndCode(errorCode, errorMessage));
return myself;
}
|
Sets the error attribute with errorCode and errorMessage.
|
error
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractErrorEventDefinitionBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractErrorEventDefinitionBuilder.java
|
Apache-2.0
|
@SuppressWarnings({ "rawtypes", "unchecked" })
public <T extends AbstractFlowNodeBuilder> T errorEventDefinitionDone() {
return (T) ((Event) element.getParentElement()).builder();
}
|
Finishes the building of a error event definition.
@param <T>
@return the parent event builder
|
errorEventDefinitionDone
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractErrorEventDefinitionBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractErrorEventDefinitionBuilder.java
|
Apache-2.0
|
public B instantiate() {
element.setInstantiate(true);
return myself;
}
|
Sets the build event based gateway to be instantiate.
@return the builder object
|
instantiate
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractEventBasedGatewayBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractEventBasedGatewayBuilder.java
|
Apache-2.0
|
public B camundaAsyncBefore(boolean asyncBefore) {
element.setCamundaAsyncBefore(asyncBefore);
return myself;
}
|
Sets the Camunda AsyncBefore attribute for the build flow node.
@param asyncBefore
boolean value to set
@return the builder object
|
camundaAsyncBefore
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractFlowNodeBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractFlowNodeBuilder.java
|
Apache-2.0
|
public B camundaAsyncBefore() {
element.setCamundaAsyncBefore(true);
return myself;
}
|
Sets the Camunda asyncBefore attribute to true.
@return the builder object
|
camundaAsyncBefore
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractFlowNodeBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractFlowNodeBuilder.java
|
Apache-2.0
|
public B camundaAsyncAfter(boolean asyncAfter) {
element.setCamundaAsyncAfter(asyncAfter);
return myself;
}
|
Sets the Camunda asyncAfter attribute for the build flow node.
@param asyncAfter
boolean value to set
@return the builder object
|
camundaAsyncAfter
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractFlowNodeBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractFlowNodeBuilder.java
|
Apache-2.0
|
public B camundaAsyncAfter() {
element.setCamundaAsyncAfter(true);
return myself;
}
|
Sets the Camunda asyncAfter attribute to true.
@return the builder object
|
camundaAsyncAfter
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractFlowNodeBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractFlowNodeBuilder.java
|
Apache-2.0
|
public B notCamundaExclusive() {
element.setCamundaExclusive(false);
return myself;
}
|
Sets the Camunda exclusive attribute to true.
@return the builder object
|
notCamundaExclusive
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractFlowNodeBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractFlowNodeBuilder.java
|
Apache-2.0
|
public B gatewayDirection(GatewayDirection gatewayDirection) {
element.setGatewayDirection(gatewayDirection);
return myself;
}
|
Sets the direction of the gateway build.
@param gatewayDirection the direction to set
@return the builder object
|
gatewayDirection
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractGatewayBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractGatewayBuilder.java
|
Apache-2.0
|
public B message(String message) {
element.setMessage(findMessageForName(message));
return myself;
}
|
Sets the message attribute.
@param message the message for the message event definition
@return the builder object
|
message
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractMessageEventDefinitionBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractMessageEventDefinitionBuilder.java
|
Apache-2.0
|
@SuppressWarnings({ "rawtypes", "unchecked" })
public <T extends AbstractFlowNodeBuilder> T messageEventDefinitionDone() {
return (T) ((Event) element.getParentElement()).builder();
}
|
Finishes the building of a message event definition.
@param <T>
@return the parent event builder
|
messageEventDefinitionDone
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractMessageEventDefinitionBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractMessageEventDefinitionBuilder.java
|
Apache-2.0
|
public B sequential() {
element.setSequential(true);
return myself;
}
|
Sets the multi instance loop characteristics to be sequential.
@return the builder object
|
sequential
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractMultiInstanceLoopCharacteristicsBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractMultiInstanceLoopCharacteristicsBuilder.java
|
Apache-2.0
|
public B parallel() {
element.setSequential(false);
return myself;
}
|
Sets the multi instance loop characteristics to be parallel.
@return the builder object
|
parallel
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractMultiInstanceLoopCharacteristicsBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractMultiInstanceLoopCharacteristicsBuilder.java
|
Apache-2.0
|
public B cardinality(String expression) {
LoopCardinality cardinality = getCreateSingleChild(LoopCardinality.class);
cardinality.setTextContent(expression);
return myself;
}
|
Sets the cardinality expression.
@param expression the cardinality expression
@return the builder object
|
cardinality
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractMultiInstanceLoopCharacteristicsBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractMultiInstanceLoopCharacteristicsBuilder.java
|
Apache-2.0
|
public B completionCondition(String expression) {
CompletionCondition condition = getCreateSingleChild(CompletionCondition.class);
condition.setTextContent(expression);
return myself;
}
|
Sets the completion condition expression.
@param expression the completion condition expression
@return the builder object
|
completionCondition
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractMultiInstanceLoopCharacteristicsBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractMultiInstanceLoopCharacteristicsBuilder.java
|
Apache-2.0
|
public B camundaCollection(String expression) {
element.setCamundaCollection(expression);
return myself;
}
|
Sets the camunda collection expression.
@param expression the collection expression
@return the builder object
|
camundaCollection
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractMultiInstanceLoopCharacteristicsBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractMultiInstanceLoopCharacteristicsBuilder.java
|
Apache-2.0
|
public B camundaElementVariable(String variableName) {
element.setCamundaElementVariable(variableName);
return myself;
}
|
Sets the camunda element variable name.
@param variableName the name of the element variable
@return the builder object
|
camundaElementVariable
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractMultiInstanceLoopCharacteristicsBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractMultiInstanceLoopCharacteristicsBuilder.java
|
Apache-2.0
|
@SuppressWarnings({ "rawtypes", "unchecked" })
public <T extends AbstractActivityBuilder> T multiInstanceDone() {
return (T) ((Activity) element.getParentElement()).builder();
}
|
Finishes the building of a multi instance loop characteristics.
@return the parent activity builder
|
multiInstanceDone
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractMultiInstanceLoopCharacteristicsBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractMultiInstanceLoopCharacteristicsBuilder.java
|
Apache-2.0
|
public B processType(ProcessType processType) {
element.setProcessType(processType);
return myself;
}
|
Sets the process type for this.
@param processType the process type to set
@return the builder object
|
processType
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractProcessBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractProcessBuilder.java
|
Apache-2.0
|
public B closed() {
element.setClosed(true);
return myself;
}
|
Sets this closed.
@return the builder object
|
closed
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractProcessBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractProcessBuilder.java
|
Apache-2.0
|
public B camundaHistoryTimeToLive(Integer historyTimeToLive) {
element.setCamundaHistoryTimeToLive(historyTimeToLive);
return myself;
}
|
Sets the camunda history time to live.
@param historyTimeToLive value for history time to live, must be either null or non-negative integer.
@return the builder object
|
camundaHistoryTimeToLive
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractProcessBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractProcessBuilder.java
|
Apache-2.0
|
public B camundaHistoryTimeToLiveString(String historyTimeToLive) {
element.setCamundaHistoryTimeToLiveString(historyTimeToLive);
return myself;
}
|
Sets the camunda history time to live string.
@param historyTimeToLive string value of history time to live, can be null or a valid ISO-8601 value.
@return the builder object
|
camundaHistoryTimeToLiveString
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractProcessBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractProcessBuilder.java
|
Apache-2.0
|
public B camundaStartableInTasklist(Boolean isStartableInTasklist) {
element.setCamundaIsStartableInTasklist(isStartableInTasklist);
return myself;
}
|
Set whenever the process is startable in Tasklist
@param isStartableInTasklist default value is true
@return the builder object
|
camundaStartableInTasklist
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractProcessBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractProcessBuilder.java
|
Apache-2.0
|
public B camundaVersionTag(String versionTag) {
element.setCamundaVersionTag(versionTag);
return myself;
}
|
Set to specify a version tag for the process definition.
@param versionTag the version of the process definition
@return the builder object
|
camundaVersionTag
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractProcessBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractProcessBuilder.java
|
Apache-2.0
|
public B scriptFormat(String scriptFormat) {
element.setScriptFormat(scriptFormat);
return myself;
}
|
Sets the script format of the build script task.
@param scriptFormat the script format to set
@return the builder object
|
scriptFormat
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractScriptTaskBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractScriptTaskBuilder.java
|
Apache-2.0
|
public B camundaResultVariable(String camundaResultVariable) {
element.setCamundaResultVariable(camundaResultVariable);
return myself;
}
|
Sets the camunda result variable of the build script task.
@param camundaResultVariable the result variable to set
@return the builder object
|
camundaResultVariable
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractScriptTaskBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractScriptTaskBuilder.java
|
Apache-2.0
|
public B camundaResource(String camundaResource) {
element.setCamundaResource(camundaResource);
return myself;
}
|
Sets the camunda resource of the build script task.
@param camundaResource the resource to set
@return the builder object
|
camundaResource
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractScriptTaskBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractScriptTaskBuilder.java
|
Apache-2.0
|
public B camundaTopic(String camundaTopic) {
element.setCamundaTopic(camundaTopic);
return myself;
}
|
Sets the camunda topic attribute.
@param camundaTopic the topic to set
@return the builder object
|
camundaTopic
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractSendTaskBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractSendTaskBuilder.java
|
Apache-2.0
|
public B from(FlowNode source) {
element.setSource(source);
source.getOutgoing().add(element);
return myself;
}
|
Sets the source flow node of this sequence flow.
@param source the source of this sequence flow
@return the builder object
|
from
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractSequenceFlowBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractSequenceFlowBuilder.java
|
Apache-2.0
|
public B to(FlowNode target) {
element.setTarget(target);
target.getIncoming().add(element);
return myself;
}
|
Sets the target flow node of this sequence flow.
@param target the target of this sequence flow
@return the builder object
|
to
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractSequenceFlowBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractSequenceFlowBuilder.java
|
Apache-2.0
|
public B condition(ConditionExpression conditionExpression) {
element.setConditionExpression(conditionExpression);
return myself;
}
|
Sets the condition for this sequence flow.
@param conditionExpression the condition expression for this sequence flow
@return the builder object
|
condition
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractSequenceFlowBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractSequenceFlowBuilder.java
|
Apache-2.0
|
public B camundaExternalTask(String camundaTopic) {
this.camundaType("external");
this.camundaTopic(camundaTopic);
return myself;
}
|
Sets the camunda topic attribute and the camunda type attribute to the
value <code>external</code. Reduces two calls to {@link #camundaType(String)} and {@link #camundaTopic(String)}.
@param camundaTopic the topic to set
@return the build object
|
camundaExternalTask
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractServiceTaskBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractServiceTaskBuilder.java
|
Apache-2.0
|
public CamundaErrorEventDefinitionBuilder camundaErrorEventDefinition() {
ErrorEventDefinition camundaErrorEventDefinition = createInstance(CamundaErrorEventDefinition.class);
addExtensionElement(camundaErrorEventDefinition);
return new CamundaErrorEventDefinitionBuilder(modelInstance, camundaErrorEventDefinition);
}
|
Creates an error event definition for this service task and returns a builder for the error event definition.
This is only meaningful when the {@link #camundaType(String)} attribute has the value <code>external</code>.
@return the error event definition builder object
|
camundaErrorEventDefinition
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractServiceTaskBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractServiceTaskBuilder.java
|
Apache-2.0
|
public B camundaInSourceTarget(String source, String target) {
CamundaIn param = modelInstance.newInstance(CamundaIn.class);
param.setCamundaSource(source);
param.setCamundaTarget(target);
addExtensionElement(param);
return myself;
}
|
Sets a "camunda:in" parameter to pass a variable from the signal-throwing
process instance to the signal-catching process instance
@param source the name of the variable in the signal-throwing process instance
@param target the name of the variable in the signal-catching process instance
@return the builder object
|
camundaInSourceTarget
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractSignalEventDefinitionBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractSignalEventDefinitionBuilder.java
|
Apache-2.0
|
public B camundaInSourceExpressionTarget(String sourceExpression, String target) {
CamundaIn param = modelInstance.newInstance(CamundaIn.class);
param.setCamundaSourceExpression(sourceExpression);
param.setCamundaTarget(target);
addExtensionElement(param);
return myself;
}
|
Sets a "camunda:in" parameter to pass an expression from the signal-throwing
process instance to a variable in the signal-catching process instance
@param sourceExpression the expression in the signal-throwing process instance
@param target the name of the variable in the signal-catching process instance
@return the builder object
|
camundaInSourceExpressionTarget
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractSignalEventDefinitionBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractSignalEventDefinitionBuilder.java
|
Apache-2.0
|
public B camundaInBusinessKey(String businessKey) {
CamundaIn param = modelInstance.newInstance(CamundaIn.class);
param.setCamundaBusinessKey(businessKey);
addExtensionElement(param);
return myself;
}
|
Sets a "camunda:in" parameter to pass the business key from the signal-throwing
process instance to the signal-catching process instance
@param businessKey the business key string or expression of the signal-throwing process instance
@return the builder object
|
camundaInBusinessKey
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractSignalEventDefinitionBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractSignalEventDefinitionBuilder.java
|
Apache-2.0
|
public B camundaInAllVariables(String variables, boolean local) {
CamundaIn param = modelInstance.newInstance(CamundaIn.class);
param.setCamundaVariables(variables);
if (local) {
param.setCamundaLocal(local);
}
addExtensionElement(param);
return myself;
}
|
Sets a "camunda:in" parameter to pass all the process variables of the
signal-throwing process instance to the signal-catching process instance
@param variables a String flag to declare that all of the signal-throwing process-instance variables should be passed
@param local a Boolean flag to declare that only the local variables should be passed
@return the builder object
|
camundaInAllVariables
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractSignalEventDefinitionBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractSignalEventDefinitionBuilder.java
|
Apache-2.0
|
public B camundaInAllVariables(String variables) {
return camundaInAllVariables(variables, false);
}
|
Sets a "camunda:in" parameter to pass all the process variables of the
signal-throwing process instance to the signal-catching process instance
@param variables a String flag to declare that all of the signal-throwing process-instance variables should be passed
@return the builder object
|
camundaInAllVariables
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractSignalEventDefinitionBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractSignalEventDefinitionBuilder.java
|
Apache-2.0
|
public B camundaInitiator(String camundaInitiator) {
element.setCamundaInitiator(camundaInitiator);
return myself;
}
|
Sets the camunda initiator attribute.
@param camundaInitiator the initiator to set
@return the builder object
|
camundaInitiator
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractStartEventBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractStartEventBuilder.java
|
Apache-2.0
|
public B compensation() {
CompensateEventDefinition compensateEventDefinition = createCompensateEventDefinition();
element.getEventDefinitions().add(compensateEventDefinition);
return myself;
}
|
Sets a catch compensation definition.
@return the builder object
|
compensation
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractStartEventBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractStartEventBuilder.java
|
Apache-2.0
|
public B interrupting(boolean interrupting) {
element.setInterrupting(interrupting);
return myself;
}
|
Sets whether the start event is interrupting or not.
|
interrupting
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractStartEventBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractStartEventBuilder.java
|
Apache-2.0
|
public B triggerByEvent() {
element.setTriggeredByEvent(true);
return myself;
}
|
Sets the sub process to be triggered by an event.
@return the builder object
|
triggerByEvent
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractSubProcessBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractSubProcessBuilder.java
|
Apache-2.0
|
public MessageEventDefinitionBuilder messageEventDefinition() {
return messageEventDefinition(null);
}
|
Creates an empty message event definition with an unique id
and returns a builder for the message event definition.
@return the message event definition builder object
|
messageEventDefinition
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractThrowEventBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractThrowEventBuilder.java
|
Apache-2.0
|
public MessageEventDefinitionBuilder messageEventDefinition(String id) {
MessageEventDefinition messageEventDefinition = createEmptyMessageEventDefinition();
if (id != null) {
messageEventDefinition.setId(id);
}
element.getEventDefinitions().add(messageEventDefinition);
return new MessageEventDefinitionBuilder(modelInstance, messageEventDefinition);
}
|
Creates an empty message event definition with the given id
and returns a builder for the message event definition.
@param id the id of the message event definition
@return the message event definition builder object
|
messageEventDefinition
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractThrowEventBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractThrowEventBuilder.java
|
Apache-2.0
|
public SignalEventDefinitionBuilder signalEventDefinition(String signalName) {
SignalEventDefinition signalEventDefinition = createSignalEventDefinition(signalName);
element.getEventDefinitions().add(signalEventDefinition);
return new SignalEventDefinitionBuilder(modelInstance, signalEventDefinition);
}
|
Sets an event definition for the given Signal name. If a signal with this
name already exists it will be used, otherwise a new signal is created.
It returns a builder for the Signal Event Definition.
@param signalName the name of the signal
@return the signal event definition builder object
|
signalEventDefinition
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractThrowEventBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractThrowEventBuilder.java
|
Apache-2.0
|
public B camundaAssignee(String camundaAssignee) {
element.setCamundaAssignee(camundaAssignee);
return myself;
}
|
Sets the camunda attribute assignee.
@param camundaAssignee the assignee to set
@return the builder object
|
camundaAssignee
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractUserTaskBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractUserTaskBuilder.java
|
Apache-2.0
|
public B camundaDueDate(String camundaDueDate) {
element.setCamundaDueDate(camundaDueDate);
return myself;
}
|
Sets the camunda due date attribute.
@param camundaDueDate the due date of the user task
@return the builder object
|
camundaDueDate
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractUserTaskBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractUserTaskBuilder.java
|
Apache-2.0
|
public B camundaFollowUpDate(String camundaFollowUpDate) {
element.setCamundaFollowUpDate(camundaFollowUpDate);
return myself;
}
|
Sets the camunda follow up date attribute.
@param camundaFollowUpDate the follow up date of the user task
@return the builder object
|
camundaFollowUpDate
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractUserTaskBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractUserTaskBuilder.java
|
Apache-2.0
|
public B camundaPriority(String camundaPriority) {
element.setCamundaPriority(camundaPriority);
return myself;
}
|
Sets the camunda priority attribute.
@param camundaPriority the priority of the user task
@return the builder object
|
camundaPriority
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractUserTaskBuilder.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractUserTaskBuilder.java
|
Apache-2.0
|
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Artifact.class,BpmnModelConstants.BPMN_ELEMENT_ARTIFACT)
.namespaceUri(BpmnModelConstants.BPMN20_NS)
.extendsType(BaseElement.class)
.abstractType();
typeBuilder.build();
}
|
The BPMN artifact element
@author Sebastian Menski
|
registerType
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/impl/instance/ArtifactImpl.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/impl/instance/ArtifactImpl.java
|
Apache-2.0
|
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(EventDefinition.class, BPMN_ELEMENT_EVENT_DEFINITION)
.namespaceUri(BPMN20_NS)
.extendsType(RootElement.class)
.abstractType();
typeBuilder.build();
}
|
The BPMN eventDefinition element
@author Sebastian Menski
|
registerType
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/impl/instance/EventDefinitionImpl.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/impl/instance/EventDefinitionImpl.java
|
Apache-2.0
|
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(InteractionNode.class, "")
.namespaceUri(BPMN20_NS)
.abstractType();
idAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_ID)
.idAttribute()
.build();
typeBuilder.build();
}
|
The BPMN interactionNode interface
@author Sebastian Menski
|
registerType
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/impl/instance/InteractionNodeImpl.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/impl/instance/InteractionNodeImpl.java
|
Apache-2.0
|
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(LoopCharacteristics.class, BPMN_ELEMENT_LOOP_CHARACTERISTICS)
.namespaceUri(BPMN20_NS)
.extendsType(BaseElement.class)
.abstractType();
typeBuilder.build();
}
|
The BPMN loopCharacteristics element
@author Sebastian Menski
|
registerType
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/impl/instance/LoopCharacteristicsImpl.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/impl/instance/LoopCharacteristicsImpl.java
|
Apache-2.0
|
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(RootElement.class, BPMN_ELEMENT_ROOT_ELEMENT)
.namespaceUri(BPMN20_NS)
.extendsType(BaseElement.class)
.abstractType();
typeBuilder.build();
}
|
The BPMN rootElement element
@author Daniel Meyer
@author Sebastian Menski
|
registerType
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/impl/instance/RootElementImpl.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/impl/instance/RootElementImpl.java
|
Apache-2.0
|
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(LabeledEdge.class, DI_ELEMENT_LABELED_EDGE)
.namespaceUri(DI_NS)
.extendsType(Edge.class)
.abstractType();
typeBuilder.build();
}
|
The DI LabeledEdge element
@author Sebastian Menski
|
registerType
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/impl/instance/di/LabeledEdgeImpl.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/impl/instance/di/LabeledEdgeImpl.java
|
Apache-2.0
|
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(LabeledShape.class, DI_ELEMENT_LABELED_SHAPE)
.namespaceUri(DI_NS)
.extendsType(Shape.class)
.abstractType();
typeBuilder.build();
}
|
The DI LabeledShape element
@author Sebastian Menski
|
registerType
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/impl/instance/di/LabeledShapeImpl.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/impl/instance/di/LabeledShapeImpl.java
|
Apache-2.0
|
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Node.class, DI_ELEMENT_NODE)
.namespaceUri(DI_NS)
.extendsType(DiagramElement.class)
.abstractType();
typeBuilder.build();
}
|
The DI Node element
@author Sebastian Menski
|
registerType
|
java
|
camunda/camunda-bpm-platform
|
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/impl/instance/di/NodeImpl.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/impl/instance/di/NodeImpl.java
|
Apache-2.0
|
public static CmmnModelInstance readModelFromFile(File file) {
return INSTANCE.doReadModelFromFile(file);
}
|
Allows reading a {@link CmmnModelInstance} from a File.
@param file the {@link File} to read the {@link CmmnModelInstance} from
@return the model read
@throws CmmnModelException if the model cannot be read
|
readModelFromFile
|
java
|
camunda/camunda-bpm-platform
|
model-api/cmmn-model/src/main/java/org/camunda/bpm/model/cmmn/Cmmn.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/cmmn-model/src/main/java/org/camunda/bpm/model/cmmn/Cmmn.java
|
Apache-2.0
|
public static CmmnModelInstance readModelFromStream(InputStream stream) {
return INSTANCE.doReadModelFromInputStream(stream);
}
|
Allows reading a {@link CmmnModelInstance} from an {@link InputStream}
@param stream the {@link InputStream} to read the {@link CmmnModelInstance} from
@return the model read
@throws ModelParseException if the model cannot be read
|
readModelFromStream
|
java
|
camunda/camunda-bpm-platform
|
model-api/cmmn-model/src/main/java/org/camunda/bpm/model/cmmn/Cmmn.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/cmmn-model/src/main/java/org/camunda/bpm/model/cmmn/Cmmn.java
|
Apache-2.0
|
public static void writeModelToFile(File file, CmmnModelInstance modelInstance) {
INSTANCE.doWriteModelToFile(file, modelInstance);
}
|
Allows writing a {@link CmmnModelInstance} to a File. It will be
validated before writing.
@param file the {@link File} to write the {@link CmmnModelInstance} to
@param modelInstance the {@link CmmnModelInstance} to write
@throws CmmnModelException if the model cannot be written
@throws ModelValidationException if the model is not valid
|
writeModelToFile
|
java
|
camunda/camunda-bpm-platform
|
model-api/cmmn-model/src/main/java/org/camunda/bpm/model/cmmn/Cmmn.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/cmmn-model/src/main/java/org/camunda/bpm/model/cmmn/Cmmn.java
|
Apache-2.0
|
public static void writeModelToStream(OutputStream stream, CmmnModelInstance modelInstance) {
INSTANCE.doWriteModelToOutputStream(stream, modelInstance);
}
|
Allows writing a {@link CmmnModelInstance} to an {@link OutputStream}. It will be
validated before writing.
@param stream the {@link OutputStream} to write the {@link CmmnModelInstance} to
@param modelInstance the {@link CmmnModelInstance} to write
@throws ModelException if the model cannot be written
@throws ModelValidationException if the model is not valid
|
writeModelToStream
|
java
|
camunda/camunda-bpm-platform
|
model-api/cmmn-model/src/main/java/org/camunda/bpm/model/cmmn/Cmmn.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/cmmn-model/src/main/java/org/camunda/bpm/model/cmmn/Cmmn.java
|
Apache-2.0
|
public static String convertToString(CmmnModelInstance modelInstance) {
return INSTANCE.doConvertToString(modelInstance);
}
|
Allows the conversion of a {@link CmmnModelInstance} to an {@link String}. It will
be validated before conversion.
@param modelInstance the model instance to convert
@return the XML string representation of the model instance
|
convertToString
|
java
|
camunda/camunda-bpm-platform
|
model-api/cmmn-model/src/main/java/org/camunda/bpm/model/cmmn/Cmmn.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/cmmn-model/src/main/java/org/camunda/bpm/model/cmmn/Cmmn.java
|
Apache-2.0
|
public static CmmnModelInstance createEmptyModel() {
return INSTANCE.doCreateEmptyModel();
}
|
Allows creating an new, empty {@link CmmnModelInstance}.
@return the empty model.
|
createEmptyModel
|
java
|
camunda/camunda-bpm-platform
|
model-api/cmmn-model/src/main/java/org/camunda/bpm/model/cmmn/Cmmn.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/cmmn-model/src/main/java/org/camunda/bpm/model/cmmn/Cmmn.java
|
Apache-2.0
|
public void setCmmnModel(Model cmmnModel) {
this.cmmnModel = cmmnModel;
}
|
@param cmmnModel the cmmnModel to set
|
setCmmnModel
|
java
|
camunda/camunda-bpm-platform
|
model-api/cmmn-model/src/main/java/org/camunda/bpm/model/cmmn/Cmmn.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/cmmn-model/src/main/java/org/camunda/bpm/model/cmmn/Cmmn.java
|
Apache-2.0
|
public static DmnModelInstance readModelFromFile(File file) {
return INSTANCE.doReadModelFromFile(file);
}
|
Allows reading a {@link DmnModelInstance} from a File.
@param file the {@link File} to read the {@link DmnModelInstance} from
@return the model read
@throws DmnModelException if the model cannot be read
|
readModelFromFile
|
java
|
camunda/camunda-bpm-platform
|
model-api/dmn-model/src/main/java/org/camunda/bpm/model/dmn/Dmn.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/dmn-model/src/main/java/org/camunda/bpm/model/dmn/Dmn.java
|
Apache-2.0
|
public static DmnModelInstance readModelFromStream(InputStream stream) {
return INSTANCE.doReadModelFromInputStream(stream);
}
|
Allows reading a {@link DmnModelInstance} from an {@link InputStream}
@param stream the {@link InputStream} to read the {@link DmnModelInstance} from
@return the model read
@throws ModelParseException if the model cannot be read
|
readModelFromStream
|
java
|
camunda/camunda-bpm-platform
|
model-api/dmn-model/src/main/java/org/camunda/bpm/model/dmn/Dmn.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/dmn-model/src/main/java/org/camunda/bpm/model/dmn/Dmn.java
|
Apache-2.0
|
public static void writeModelToFile(File file, DmnModelInstance modelInstance) {
INSTANCE.doWriteModelToFile(file, modelInstance);
}
|
Allows writing a {@link DmnModelInstance} to a File. It will be
validated before writing.
@param file the {@link File} to write the {@link DmnModelInstance} to
@param modelInstance the {@link DmnModelInstance} to write
@throws DmnModelException if the model cannot be written
@throws ModelValidationException if the model is not valid
|
writeModelToFile
|
java
|
camunda/camunda-bpm-platform
|
model-api/dmn-model/src/main/java/org/camunda/bpm/model/dmn/Dmn.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/dmn-model/src/main/java/org/camunda/bpm/model/dmn/Dmn.java
|
Apache-2.0
|
public static void writeModelToStream(OutputStream stream, DmnModelInstance modelInstance) {
INSTANCE.doWriteModelToOutputStream(stream, modelInstance);
}
|
Allows writing a {@link DmnModelInstance} to an {@link OutputStream}. It will be
validated before writing.
@param stream the {@link OutputStream} to write the {@link DmnModelInstance} to
@param modelInstance the {@link DmnModelInstance} to write
@throws ModelException if the model cannot be written
@throws ModelValidationException if the model is not valid
|
writeModelToStream
|
java
|
camunda/camunda-bpm-platform
|
model-api/dmn-model/src/main/java/org/camunda/bpm/model/dmn/Dmn.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/dmn-model/src/main/java/org/camunda/bpm/model/dmn/Dmn.java
|
Apache-2.0
|
public static String convertToString(DmnModelInstance modelInstance) {
return INSTANCE.doConvertToString(modelInstance);
}
|
Allows the conversion of a {@link DmnModelInstance} to an {@link String}. It will
be validated before conversion.
@param modelInstance the model instance to convert
@return the XML string representation of the model instance
|
convertToString
|
java
|
camunda/camunda-bpm-platform
|
model-api/dmn-model/src/main/java/org/camunda/bpm/model/dmn/Dmn.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/dmn-model/src/main/java/org/camunda/bpm/model/dmn/Dmn.java
|
Apache-2.0
|
public static DmnModelInstance createEmptyModel() {
return INSTANCE.doCreateEmptyModel();
}
|
Allows creating an new, empty {@link DmnModelInstance}.
@return the empty model.
|
createEmptyModel
|
java
|
camunda/camunda-bpm-platform
|
model-api/dmn-model/src/main/java/org/camunda/bpm/model/dmn/Dmn.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/dmn-model/src/main/java/org/camunda/bpm/model/dmn/Dmn.java
|
Apache-2.0
|
public void setDmnModel(Model dmnModel) {
this.dmnModel = dmnModel;
}
|
@param dmnModel the cmmnModel to set
|
setDmnModel
|
java
|
camunda/camunda-bpm-platform
|
model-api/dmn-model/src/main/java/org/camunda/bpm/model/dmn/Dmn.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/dmn-model/src/main/java/org/camunda/bpm/model/dmn/Dmn.java
|
Apache-2.0
|
@Test
public void shouldReadJDK9StyleModel()
{
DmnModelInstance modelInstance =
Dmn.readModelFromStream(ExampleCompatibilityTest.class.getResourceAsStream("JDK9-style-CDATA.dmn"));
Decision decision = (Decision) modelInstance.getDefinitions().getDrgElements().iterator().next();
DecisionTable decisionTable = (DecisionTable) decision.getExpression();
Rule rule = decisionTable.getRules().iterator().next();
InputEntry inputEntry = rule.getInputEntries().iterator().next();
String textContent = inputEntry.getText().getTextContent();
assertThat(textContent).isEqualTo(">= 1000");
}
|
<p>There is an issue in JDK 9+ that changes how CDATA section are serialized:
<p>https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8223291
<p>< JDK9:
<pre>
<inputEntry id="inputEntry1">
<text><![CDATA[>= 1000]]></text>
</inputEntry>
</pre>
<p>(the text element has one child node, a CDATA section)
<p>>= JDK9:
<pre>
<inputEntry id="inputEntry1">
<text>
<![CDATA[>= 1000]]>
</text>
</inputEntry>
</pre>
<p>(the text element has three child nodes, a text node, a CDATA section and another text node)
<p>This test ensures, that a JDK9-formatted model can be read
and the text content method returns the CDATA value only
|
shouldReadJDK9StyleModel
|
java
|
camunda/camunda-bpm-platform
|
model-api/dmn-model/src/test/java/org/camunda/bpm/model/dmn/DmnWriterTest.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/dmn-model/src/test/java/org/camunda/bpm/model/dmn/DmnWriterTest.java
|
Apache-2.0
|
protected void configureFactory(DocumentBuilderFactory dbf) {
dbf.setValidating(true);
dbf.setIgnoringComments(false);
dbf.setIgnoringElementContentWhitespace(false);
dbf.setNamespaceAware(true);
protectAgainstXxeAttacks(dbf);
enableSecureProcessing(dbf);
}
|
allows subclasses to configure the {@link DocumentBuilderFactory}.
@param dbf the factory to configure
|
configureFactory
|
java
|
camunda/camunda-bpm-platform
|
model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/parser/AbstractModelParser.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/parser/AbstractModelParser.java
|
Apache-2.0
|
public void resolveExtendingTypes(Set<ModelElementType> allExtendingTypes) {
for(ModelElementType modelElementType : extendingTypes) {
ModelElementTypeImpl modelElementTypeImpl = (ModelElementTypeImpl) modelElementType;
if (!allExtendingTypes.contains(modelElementTypeImpl)) {
allExtendingTypes.add(modelElementType);
modelElementTypeImpl.resolveExtendingTypes(allExtendingTypes);
}
}
}
|
Resolve all types recursively which are extending this type
@param allExtendingTypes set of calculated extending types
|
resolveExtendingTypes
|
java
|
camunda/camunda-bpm-platform
|
model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/type/ModelElementTypeImpl.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/type/ModelElementTypeImpl.java
|
Apache-2.0
|
public boolean isBaseTypeOf(ModelElementType elementType) {
if (this.equals(elementType)) {
return true;
}
else {
Collection<ModelElementType> baseTypes = ModelUtil.calculateAllBaseTypes(elementType);
return baseTypes.contains(this);
}
}
|
Test if a element type is a base type of this type. So this type extends the given element type.
@param elementType the element type to test
@return true if {@code childElementTypeClass} is a base type of this type, else otherwise
|
isBaseTypeOf
|
java
|
camunda/camunda-bpm-platform
|
model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/type/ModelElementTypeImpl.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/type/ModelElementTypeImpl.java
|
Apache-2.0
|
public Collection<Attribute<?>> getAllAttributes() {
List<Attribute<?>> allAttributes = new ArrayList<Attribute<?>>();
allAttributes.addAll(getAttributes());
Collection<ModelElementType> baseTypes = ModelUtil.calculateAllBaseTypes(this);
for (ModelElementType baseType : baseTypes) {
allAttributes.addAll(baseType.getAttributes());
}
return allAttributes;
}
|
Returns a list of all attributes, including the attributes of all base types.
@return the list of all attributes
|
getAllAttributes
|
java
|
camunda/camunda-bpm-platform
|
model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/type/ModelElementTypeImpl.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/type/ModelElementTypeImpl.java
|
Apache-2.0
|
public ModelElementType getOwningElementType() {
return owningElementType;
}
|
to be implemented by subclasses: converts the raw (String) value of the
attribute to the type required by the model
@return the converted value
|
getOwningElementType
|
java
|
camunda/camunda-bpm-platform
|
model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/type/attribute/AttributeImpl.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/type/attribute/AttributeImpl.java
|
Apache-2.0
|
public T getValue(ModelElementInstance modelElement) {
String value;
if(namespaceUri == null) {
value = modelElement.getAttributeValue(attributeName);
} else {
value = modelElement.getAttributeValueNs(namespaceUri, attributeName);
if(value == null) {
Set<String> alternativeNamespaces = owningElementType.getModel().getAlternativeNamespaces(namespaceUri);
if (alternativeNamespaces != null) {
Iterator<String> namespaceIt = alternativeNamespaces.iterator();
while (value == null && namespaceIt.hasNext()) {
value = modelElement.getAttributeValueNs(namespaceIt.next(), attributeName);
}
}
}
}
// default value
if (value == null && defaultValue != null) {
return defaultValue;
} else {
return convertXmlValueToModelValue(value);
}
}
|
returns the value of the attribute.
@return the value of the attribute.
|
getValue
|
java
|
camunda/camunda-bpm-platform
|
model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/type/attribute/AttributeImpl.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/type/attribute/AttributeImpl.java
|
Apache-2.0
|
public void setNamespaceUri(String namespaceUri) {
this.namespaceUri = namespaceUri;
}
|
@param namespaceUri the namespaceUri to set
|
setNamespaceUri
|
java
|
camunda/camunda-bpm-platform
|
model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/type/attribute/AttributeImpl.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/type/attribute/AttributeImpl.java
|
Apache-2.0
|
public void setId() {
this.isIdAttribute = true;
}
|
Indicate whether this attribute is an Id attribute
|
setId
|
java
|
camunda/camunda-bpm-platform
|
model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/type/attribute/AttributeImpl.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/type/attribute/AttributeImpl.java
|
Apache-2.0
|
private boolean performRemoveOperation(ModelElementInstanceImpl modelElement, Object e) {
return modelElement.removeChildElement((ModelElementInstanceImpl)e);
}
|
the "remove" operation used by this collection
|
performRemoveOperation
|
java
|
camunda/camunda-bpm-platform
|
model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/type/child/ChildElementCollectionImpl.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/type/child/ChildElementCollectionImpl.java
|
Apache-2.0
|
@Override
public String getReferenceIdentifier(ModelElementInstance referenceSourceElement) {
String identifier = super.getReferenceIdentifier(referenceSourceElement);
if (identifier != null) {
QName qName = QName.parseQName(identifier);
return qName.getLocalName();
}
else {
return null;
}
}
|
Create a new QName reference outgoing from the reference source attribute
@param referenceSourceAttribute the reference source attribute
|
getReferenceIdentifier
|
java
|
camunda/camunda-bpm-platform
|
model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/type/reference/QNameAttributeReferenceImpl.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/type/reference/QNameAttributeReferenceImpl.java
|
Apache-2.0
|
@SuppressWarnings("unchecked")
public T getReferenceTargetElement(ModelElementInstance referenceSourceElement) {
String identifier = getReferenceIdentifier(referenceSourceElement);
ModelElementInstance referenceTargetElement = referenceSourceElement.getModelInstance().getModelElementById(identifier);
if (referenceTargetElement != null) {
try {
return (T) referenceTargetElement;
} catch(ClassCastException e) {
throw new ModelReferenceException("Element " + referenceSourceElement + " references element " + referenceTargetElement + " of wrong type. "
+ "Expecting " + referenceTargetAttribute.getOwningElementType() + " got " + referenceTargetElement.getElementType());
}
}
else {
return null;
}
}
|
Get the reference target model element instance
@param referenceSourceElement the reference source model element instance
@return the reference target model element instance or null if not set
|
getReferenceTargetElement
|
java
|
camunda/camunda-bpm-platform
|
model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/type/reference/ReferenceImpl.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/type/reference/ReferenceImpl.java
|
Apache-2.0
|
public void setReferenceTargetElement(ModelElementInstance referenceSourceElement, T referenceTargetElement) {
ModelInstance modelInstance = referenceSourceElement.getModelInstance();
String referenceTargetIdentifier = referenceTargetAttribute.getValue(referenceTargetElement);
ModelElementInstance existingElement = modelInstance.getModelElementById(referenceTargetIdentifier);
if(existingElement == null || !existingElement.equals(referenceTargetElement)) {
throw new ModelReferenceException("Cannot create reference to model element " + referenceTargetElement
+": element is not part of model. Please connect element to the model first.");
} else {
setReferenceIdentifier(referenceSourceElement, referenceTargetIdentifier);
}
}
|
Set the reference target model element instance
@param referenceSourceElement the reference source model element instance
@param referenceTargetElement the reference target model element instance
@throws ModelReferenceException if element is not already added to the model
|
setReferenceTargetElement
|
java
|
camunda/camunda-bpm-platform
|
model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/type/reference/ReferenceImpl.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/type/reference/ReferenceImpl.java
|
Apache-2.0
|
public void setReferenceTargetAttribute(AttributeImpl<String> referenceTargetAttribute) {
this.referenceTargetAttribute = referenceTargetAttribute;
}
|
Set the reference target attribute
@param referenceTargetAttribute the reference target string attribute
|
setReferenceTargetAttribute
|
java
|
camunda/camunda-bpm-platform
|
model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/type/reference/ReferenceImpl.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/type/reference/ReferenceImpl.java
|
Apache-2.0
|
public Attribute<String> getReferenceTargetAttribute() {
return referenceTargetAttribute;
}
|
Get the reference target attribute
@return the reference target string attribute
|
getReferenceTargetAttribute
|
java
|
camunda/camunda-bpm-platform
|
model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/type/reference/ReferenceImpl.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/type/reference/ReferenceImpl.java
|
Apache-2.0
|
public void referencedElementUpdated(ModelElementInstance referenceTargetElement, String oldIdentifier, String newIdentifier) {
for (ModelElementInstance referenceSourceElement : findReferenceSourceElements(referenceTargetElement)) {
updateReference(referenceSourceElement, oldIdentifier, newIdentifier);
}
}
|
Update the reference identifier
@param referenceTargetElement the reference target model element instance
@param oldIdentifier the old reference identifier
@param newIdentifier the new reference identifier
|
referencedElementUpdated
|
java
|
camunda/camunda-bpm-platform
|
model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/type/reference/ReferenceImpl.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/type/reference/ReferenceImpl.java
|
Apache-2.0
|
public void referencedElementRemoved(ModelElementInstance referenceTargetElement, Object referenceIdentifier) {
for (ModelElementInstance referenceSourceElement : findReferenceSourceElements(referenceTargetElement)) {
if (referenceIdentifier.equals(getReferenceIdentifier(referenceSourceElement))) {
removeReference(referenceSourceElement, referenceTargetElement);
}
}
}
|
Remove the reference if the target element is removed
@param referenceTargetElement the reference target model element instance, which is removed
@param referenceIdentifier the identifier of the reference to filter reference source elements
|
referencedElementRemoved
|
java
|
camunda/camunda-bpm-platform
|
model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/type/reference/ReferenceImpl.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/type/reference/ReferenceImpl.java
|
Apache-2.0
|
public boolean matches(Node node) {
return node.getNodeType() == Node.ELEMENT_NODE;
}
|
Filter retaining only Nodes of type {@link Node#ELEMENT_NODE}
|
matches
|
java
|
camunda/camunda-bpm-platform
|
model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/util/DomUtil.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/util/DomUtil.java
|
Apache-2.0
|
public static List<DomElement> filterNodeList(NodeList nodeList, NodeListFilter filter) {
List<DomElement> filteredList = new ArrayList<DomElement>();
for(int i = 0; i< nodeList.getLength(); i++) {
Node node = nodeList.item(i);
if(filter.matches(node)) {
filteredList.add(new DomElementImpl((Element) node));
}
}
return filteredList;
}
|
Allows to apply a {@link NodeListFilter} to a {@link NodeList}. This allows to remove all elements from a node list which do not match the Filter.
@param nodeList the {@link NodeList} to filter
@param filter the {@link NodeListFilter} to apply to the {@link NodeList}
@return the List of all Nodes which match the filter
|
filterNodeList
|
java
|
camunda/camunda-bpm-platform
|
model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/util/DomUtil.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/util/DomUtil.java
|
Apache-2.0
|
public static List<DomElement> filterNodeListForElements(NodeList nodeList) {
return filterNodeList(nodeList, new ElementNodeListFilter());
}
|
Filters a {@link NodeList} retaining all elements
@param nodeList the the {@link NodeList} to filter
@return the list of all elements
|
filterNodeListForElements
|
java
|
camunda/camunda-bpm-platform
|
model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/util/DomUtil.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/util/DomUtil.java
|
Apache-2.0
|
public static List<DomElement> filterNodeListByName(NodeList nodeList, String namespaceUri, String localName) {
return filterNodeList(nodeList, new ElementByNameListFilter(localName, namespaceUri));
}
|
Filter a {@link NodeList} retaining all elements with a specific name
@param nodeList the {@link NodeList} to filter
@param namespaceUri the namespace for the elements
@param localName the local element name to filter for
@return the List of all Elements which match the filter
|
filterNodeListByName
|
java
|
camunda/camunda-bpm-platform
|
model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/util/DomUtil.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/util/DomUtil.java
|
Apache-2.0
|
public static DomDocument getEmptyDocument(DocumentBuilderFactory documentBuilderFactory) {
try {
DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();
return new DomDocumentImpl(documentBuilder.newDocument());
} catch (ParserConfigurationException e) {
throw new ModelParseException("Unable to create a new document", e);
}
}
|
Get an empty DOM document
@param documentBuilderFactory the factory to build to DOM document
@return the new empty document
@throws ModelParseException if unable to create a new document
|
getEmptyDocument
|
java
|
camunda/camunda-bpm-platform
|
model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/util/DomUtil.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/util/DomUtil.java
|
Apache-2.0
|
public static DomDocument parseInputStream(DocumentBuilderFactory documentBuilderFactory, InputStream inputStream) {
try {
DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();
documentBuilder.setErrorHandler(new DomErrorHandler());
return new DomDocumentImpl(documentBuilder.parse(inputStream));
} catch (ParserConfigurationException e) {
throw new ModelParseException("ParserConfigurationException while parsing input stream", e);
} catch (SAXException e) {
throw new ModelParseException("SAXException while parsing input stream", e);
} catch (IOException e) {
throw new ModelParseException("IOException while parsing input stream", e);
}
}
|
Create a new DOM document from the input stream
@param documentBuilderFactory the factory to build to DOM document
@param inputStream the input stream to parse
@return the new DOM document
@throws ModelParseException if a parsing or IO error is triggered
|
parseInputStream
|
java
|
camunda/camunda-bpm-platform
|
model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/util/DomUtil.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/util/DomUtil.java
|
Apache-2.0
|
public static InputStream convertOutputStreamToInputStream(OutputStream outputStream) {
byte[] data = ((ByteArrayOutputStream) outputStream).toByteArray();
return new ByteArrayInputStream(data);
}
|
Converts a {@link OutputStream} to an {@link InputStream} by coping the data directly.
WARNING: Do not use for large data (>100MB). Only for testing purpose.
@param outputStream the {@link OutputStream} to convert
@return the resulting {@link InputStream}
|
convertOutputStreamToInputStream
|
java
|
camunda/camunda-bpm-platform
|
model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/util/IoUtil.java
|
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/util/IoUtil.java
|
Apache-2.0
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.