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 APIGatewayProxyResponseEvent updateOnboarding(Map<String, Object> event, Context context) { if (Utils.warmup(event)) { //LOGGER.info("Warming up"); return new APIGatewayProxyResponseEvent().withHeaders(CORS).withStatusCode(200); } //Utils.logRequestEvent(event); ...
Update an onboarding record by id. Integration for PUT /onboarding/{id} endpoint. @param event API Gateway proxy request event containing an id path parameter @param context @return HTTP 200 if updated, HTTP 400 on failure
updateOnboarding
java
awslabs/aws-saas-boost
services/onboarding-service/src/main/java/com/amazon/aws/partners/saasfactory/saasboost/OnboardingService.java
https://github.com/awslabs/aws-saas-boost/blob/master/services/onboarding-service/src/main/java/com/amazon/aws/partners/saasfactory/saasboost/OnboardingService.java
Apache-2.0
public APIGatewayProxyResponseEvent deleteOnboarding(Map<String, Object> event, Context context) { if (Utils.warmup(event)) { //LOGGER.info("Warming up"); return new APIGatewayProxyResponseEvent().withHeaders(CORS).withStatusCode(200); } //Utils.logRequestEvent(event); ...
Delete an onboarding record by id. Integration for DELETE /onboarding/{id} endpoint. @param event API Gateway proxy request event containing an id path parameter @param context @return HTTP 204 if deleted, HTTP 400 on failure
deleteOnboarding
java
awslabs/aws-saas-boost
services/onboarding-service/src/main/java/com/amazon/aws/partners/saasfactory/saasboost/OnboardingService.java
https://github.com/awslabs/aws-saas-boost/blob/master/services/onboarding-service/src/main/java/com/amazon/aws/partners/saasfactory/saasboost/OnboardingService.java
Apache-2.0
static ExternalTaskClientBuilder create() { return new ExternalTaskClientBuilderImpl(); }
Creates a fluent builder to configure the Camunda client @return builder to apply configurations on
create
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/ExternalTaskClient.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/ExternalTaskClient.java
Apache-2.0
@Override default void reconfigure(List<ExternalTask> externalTasks) { reconfigure(externalTasks, null); }
This is to provide compatibility with existing BackoffStrategy configurations. Do not override. Implementations of ErrorAwareBackoffStrategy should override {@link #reconfigure(List, ExternalTaskClientException)} instead. @param externalTasks which have been fetched
reconfigure
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/backoff/ErrorAwareBackoffStrategy.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/backoff/ErrorAwareBackoffStrategy.java
Apache-2.0
@Override public void reconfigure(List<ExternalTask> externalTasks) { if (externalTasks.isEmpty()) { level++; } else { level = 0; } }
@param initTime in milliseconds for which the client is suspended after the first request @param factor is the base of the power by which the waiting time increases @param maxTime in milliseconds for which the client can be suspended
reconfigure
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/backoff/ExponentialBackoffStrategy.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/backoff/ExponentialBackoffStrategy.java
Apache-2.0
@Override public long calculateBackoffTime() { if (level == 0) { return 0L; } long backoffTime = (long) (initTime * Math.pow(factor, level - 1)); return Math.min(backoffTime, maxTime); }
@param initTime in milliseconds for which the client is suspended after the first request @param factor is the base of the power by which the waiting time increases @param maxTime in milliseconds for which the client can be suspended
calculateBackoffTime
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/backoff/ExponentialBackoffStrategy.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/backoff/ExponentialBackoffStrategy.java
Apache-2.0
@Override public void reconfigure(List<ExternalTask> externalTasks, ExternalTaskClientException error) { if (error != null) { level++; } else { level = 0; } }
@param initTime in milliseconds for which the client is suspended after the first request @param factor is the base of the power by which the waiting time increases @param maxTime in milliseconds for which the client can be suspended
reconfigure
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/backoff/ExponentialErrorBackoffStrategy.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/backoff/ExponentialErrorBackoffStrategy.java
Apache-2.0
@Override public long calculateBackoffTime() { if (level == 0) { return 0L; } long backoffTime = (long) (initTime * Math.pow(factor, level - 1)); return Math.min(backoffTime, maxTime); }
@param initTime in milliseconds for which the client is suspended after the first request @param factor is the base of the power by which the waiting time increases @param maxTime in milliseconds for which the client can be suspended
calculateBackoffTime
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/backoff/ExponentialErrorBackoffStrategy.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/backoff/ExponentialErrorBackoffStrategy.java
Apache-2.0
public Integer getHttpStatusCode() { return getCause() == null ? httpStatusCode : ((RestException) getCause()).getHttpStatusCode(); }
@return the http status code from the Engine's REST API.
getHttpStatusCode
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/exception/RestException.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/exception/RestException.java
Apache-2.0
public void setHttpStatusCode(Integer httpStatusCode) { this.httpStatusCode = httpStatusCode; }
@return the http status code from the Engine's REST API.
setHttpStatusCode
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/exception/RestException.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/exception/RestException.java
Apache-2.0
public String getType() { return getCause() == null ? type : ((RestException) getCause()).getType(); }
@return the exception type from the Engine's REST API.
getType
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/exception/RestException.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/exception/RestException.java
Apache-2.0
public void setType(String type) { this.type = type; }
@return the exception type from the Engine's REST API.
setType
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/exception/RestException.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/exception/RestException.java
Apache-2.0
public Integer getCode() { return getCause() == null ? code : ((RestException) getCause()).getCode(); }
@return the exception error code from the Engine's REST API.
getCode
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/exception/RestException.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/exception/RestException.java
Apache-2.0
public void setCode(Integer code) { this.code = code; }
@return the exception error code from the Engine's REST API.
setCode
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/exception/RestException.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/exception/RestException.java
Apache-2.0
@Override public void intercept(ClientRequestContext requestContext) { String authToken = username + ":" + password; String encodedAuthToken = encodeToBase64(authToken); requestContext.addHeader(AUTHORIZATION, "Basic " + encodedAuthToken); }
<p>Provides HTTP Basic Authentication by using the request interceptor api</p> @author Tassilo Weidner
intercept
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/interceptor/auth/BasicAuthProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/interceptor/auth/BasicAuthProvider.java
Apache-2.0
protected String encodeToBase64(String decodedString) { byte[] stringAsBytes = decodedString.getBytes(Charset.defaultCharset()); return Base64.getEncoder() .encodeToString(stringAsBytes); }
<p>Provides HTTP Basic Authentication by using the request interceptor api</p> @author Tassilo Weidner
encodeToBase64
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/interceptor/auth/BasicAuthProvider.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/interceptor/auth/BasicAuthProvider.java
Apache-2.0
public void configureField(SortingField field) { orderingProperties.add(OrderingProperty.of(field, null)); }
Configures the given field. @param field the sorting field to configure
configureField
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/task/OrderingConfig.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/task/OrderingConfig.java
Apache-2.0
public void configureDirectionOnLastField(Direction direction) { OrderingProperty lastConfiguredProperty = validateAndGetLastConfiguredProperty(); if (lastConfiguredProperty.getDirection() != null) { throw LOG.doubleDirectionConfigException(); } lastConfiguredProperty.setDirection(direction); ...
Configures the {@link Direction} for the last configured field on this {@link OrderingConfig}. @param direction the given direction, nullable.
configureDirectionOnLastField
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/task/OrderingConfig.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/task/OrderingConfig.java
Apache-2.0
protected OrderingProperty validateAndGetLastConfiguredProperty() { OrderingProperty lastConfiguredProperty = getLastConfiguredProperty(); if (lastConfiguredProperty == null) { throw LOG.unspecifiedOrderByMethodException(); } return lastConfiguredProperty; }
Validates the last configured field for its direction and retrieves it.
validateAndGetLastConfiguredProperty
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/task/OrderingConfig.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/task/OrderingConfig.java
Apache-2.0
public void validateOrderingProperties() { boolean hasMissingDirection = orderingProperties.stream() .anyMatch(p -> p.getDirection() == null); if (hasMissingDirection) { throw LOG.missingDirectionException(); } }
Validates ordering properties all have a non-null direction.
validateOrderingProperties
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/task/OrderingConfig.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/task/OrderingConfig.java
Apache-2.0
public List<SortingDto> toSortingDtos() { return orderingProperties.stream() .map(SortingDto::fromOrderingProperty) .collect(Collectors.toList()); }
Converts this {@link OrderingConfig} to a list of {@link SortingDto}s.
toSortingDtos
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/task/OrderingConfig.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/task/OrderingConfig.java
Apache-2.0
protected OrderingProperty getLastConfiguredProperty() { return !orderingProperties.isEmpty() ? orderingProperties.get(orderingProperties.size() - 1) : null; }
Returns the last configured field in this {@link OrderingConfig}.
getLastConfiguredProperty
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/task/OrderingConfig.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/task/OrderingConfig.java
Apache-2.0
public static OrderingProperty of(SortingField field, Direction direction) { OrderingProperty result = new OrderingProperty(); result.setField(field); result.setDirection(direction); return result; }
Static factory method to create {@link OrderingProperty} out of a field and its corresponding {@link Direction}.
of
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/task/OrderingConfig.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/task/OrderingConfig.java
Apache-2.0
public void setField(SortingField field) { this.field = field; }
Static factory method to create {@link OrderingProperty} out of a field and its corresponding {@link Direction}.
setField
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/task/OrderingConfig.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/task/OrderingConfig.java
Apache-2.0
public SortingField getField() { return this.field; }
Static factory method to create {@link OrderingProperty} out of a field and its corresponding {@link Direction}.
getField
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/task/OrderingConfig.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/task/OrderingConfig.java
Apache-2.0
public void setDirection(Direction direction) { this.direction = direction; }
Static factory method to create {@link OrderingProperty} out of a field and its corresponding {@link Direction}.
setDirection
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/task/OrderingConfig.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/task/OrderingConfig.java
Apache-2.0
public Direction getDirection() { return this.direction; }
Static factory method to create {@link OrderingProperty} out of a field and its corresponding {@link Direction}.
getDirection
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/task/OrderingConfig.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/task/OrderingConfig.java
Apache-2.0
public String getSortBy() { return sortBy; }
DTO that encapsulates the sorting parameters used for making requests against the fetch and lock API.
getSortBy
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/task/SortingDto.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/task/SortingDto.java
Apache-2.0
public void setSortBy(String sortBy) { this.sortBy = sortBy; }
DTO that encapsulates the sorting parameters used for making requests against the fetch and lock API.
setSortBy
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/task/SortingDto.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/task/SortingDto.java
Apache-2.0
public String getSortOrder() { return sortOrder; }
DTO that encapsulates the sorting parameters used for making requests against the fetch and lock API.
getSortOrder
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/task/SortingDto.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/task/SortingDto.java
Apache-2.0
public void setSortOrder(String sortOrder) { this.sortOrder = sortOrder; }
DTO that encapsulates the sorting parameters used for making requests against the fetch and lock API.
setSortOrder
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/task/SortingDto.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/task/SortingDto.java
Apache-2.0
public static SortingDto of(String sortBy, String sortOrder) { SortingDto result = new SortingDto(); result.setSortBy(sortBy); result.setSortOrder(sortOrder); return result; }
Static factory method to create a {@link SortingDto} from a field and its order. @param sortBy the string representation of the given field @param sortOrder the string representation of the given order to use for the associated field @return the result {@link SortingDto}
of
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/task/SortingDto.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/task/SortingDto.java
Apache-2.0
protected static SortingDto fromOrderingProperty(OrderingProperty property) { String sortBy = property.getField().getName(); String sortOrder = property.getDirection() != null ? property.getDirection().asString() : null; return SortingDto.of(sortBy, sortOrder); }
Static factory method to create a {@link SortingDto} from a given {@link OrderingProperty}.
fromOrderingProperty
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/task/SortingDto.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/task/SortingDto.java
Apache-2.0
public String getName() { return name; }
the TransformerFactory instance used by the writer
getName
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
Apache-2.0
public DocumentBuilderFactory getDocumentBuilderFactory() { return documentBuilderFactory; }
the TransformerFactory instance used by the writer
getDocumentBuilderFactory
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
Apache-2.0
public TransformerFactory getTransformerFactory() { return transformerFactory; }
the TransformerFactory instance used by the writer
getTransformerFactory
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
Apache-2.0
public boolean canMap(Object value) { return value != null; }
the TransformerFactory instance used by the writer
canMap
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
Apache-2.0
public String writeValue(Object value) { Element mappedObject = writeAsElement(value); StringWriter writer = null; try { writer = new StringWriter(); StreamResult streamResult = new StreamResult(writer); writeResult(streamResult, mappedObject); return writer.toString(); } f...
the TransformerFactory instance used by the writer
writeValue
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
Apache-2.0
@SuppressWarnings("unchecked") public <T> T readValue(String value, String typeIdentifier) { ensureNotNull("value", value); ensureNotNull("typeIdentifier", typeIdentifier); try { Class<?> javaClass = loadClass(typeIdentifier, this); return (T) readValue(value, javaClass); } catch (Exc...
the TransformerFactory instance used by the writer
readValue
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
Apache-2.0
public <T> T readValue(String value, Class<T> cls) { ensureNotNull("value", value); ensureNotNull("class", cls); try { Element xmlNode = readAsElement(value); Unmarshaller unmarshaller = createUnmarshaller(cls); DOMSource domSource = new DOMSource(xmlNode); JAXBElement<T> root = unm...
the TransformerFactory instance used by the writer
readValue
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
Apache-2.0
public String getCanonicalTypeName(Object value) { return value.getClass().getName(); }
the TransformerFactory instance used by the writer
getCanonicalTypeName
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
Apache-2.0
protected void writeResult(StreamResult streamResult, Object input) { Node node = (Node) input; DOMSource domSource = new DOMSource(node); try { getTransformer().transform(domSource, streamResult); } catch (TransformerException e) { throw LOG.unableToTransformElement(node, e); } }
the TransformerFactory instance used by the writer
writeResult
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
Apache-2.0
@SuppressWarnings({ "rawtypes", "unchecked" }) protected Element writeAsElement(Object value) { ensureNotNull("value", value); final Class<?> valueClass = value.getClass(); final DOMResult domResult = new DOMResult(); try { Marshaller marshaller = createMarshaller(valueClass); boolean i...
the TransformerFactory instance used by the writer
writeAsElement
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
Apache-2.0
protected Transformer getTransformer() { try { Transformer transformer = transformerFactory.newTransformer(); transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8"); transformer.setOutputProperty(OutputKeys.INDENT, "yes"); transformer.setOutputProperty("{http://xml.apache.org/xslt}inden...
the TransformerFactory instance used by the writer
getTransformer
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
Apache-2.0
public Element readAsElement(String value) { DocumentBuilder documentBuilder = getDocumentBuilder(); StringReader stringReader = null; BufferedReader bufferedReader = null; try { stringReader = new StringReader(value); bufferedReader = new BufferedReader(stringReader); InputSource inp...
the TransformerFactory instance used by the writer
readAsElement
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
Apache-2.0
protected DocumentBuilder getDocumentBuilder() { try { DocumentBuilder docBuilder = documentBuilderFactory.newDocumentBuilder(); LOG.createdDocumentBuilder(); return docBuilder; } catch (ParserConfigurationException e) { throw LOG.unableToCreateParser(e); } }
the TransformerFactory instance used by the writer
getDocumentBuilder
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
Apache-2.0
protected JAXBContext getContext(Class<?>... types) { try { return JAXBContext.newInstance(types); } catch (JAXBException e) { throw LOG.unableToCreateContext(e); } }
the TransformerFactory instance used by the writer
getContext
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
Apache-2.0
protected Marshaller createMarshaller(Class<?>... types) { try { return getContext(types).createMarshaller(); } catch (JAXBException e) { throw LOG.unableToCreateMarshaller(e); } }
the TransformerFactory instance used by the writer
createMarshaller
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
Apache-2.0
protected Unmarshaller createUnmarshaller(Class<?>... types) { try { return getContext(types).createUnmarshaller(); } catch (JAXBException e) { throw LOG.unableToCreateUnmarshaller(e); } }
the TransformerFactory instance used by the writer
createUnmarshaller
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
Apache-2.0
public static TransformerFactory defaultTransformerFactory() { return TransformerFactory.newInstance(); }
the TransformerFactory instance used by the writer
defaultTransformerFactory
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
Apache-2.0
public static DocumentBuilderFactory defaultDocumentBuilderFactory() { DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance(); documentBuilderFactory.setNamespaceAware(true); LOG.documentBuilderFactoryConfiguration("namespaceAware", "true"); documentBuilderFactory.setVali...
the TransformerFactory instance used by the writer
defaultDocumentBuilderFactory
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
Apache-2.0
public static Class<?> loadClass(String classname, DataFormat dataFormat) { // first try context classoader ClassLoader cl = Thread.currentThread().getContextClassLoader(); if(cl != null) { try { return cl.loadClass(classname); } catch(Exception e) { // ignore } ...
the TransformerFactory instance used by the writer
loadClass
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/format/xml/DomXmlDataFormat.java
Apache-2.0
public BytesValue convertToTypedValue(UntypedValueImpl untypedValue) { byte[] byteArr; Object value = untypedValue.getValue(); if (value instanceof byte[]) { byteArr = (byte[]) value; } else { byteArr = IoUtil.inputStreamAsByteArray((InputStream) value); } return Variables.byte...
@author Tom Baeyens @author Daniel Meyer
convertToTypedValue
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/mapper/ByteArrayValueMapper.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/mapper/ByteArrayValueMapper.java
Apache-2.0
public BytesValue readValue(TypedValueField typedValueField) { byte[] byteArr = null; String value = (String) typedValueField.getValue(); if (value != null) { byteArr = Base64.decodeBase64(value); } return Variables.byteArrayValue(byteArr); }
@author Tom Baeyens @author Daniel Meyer
readValue
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/mapper/ByteArrayValueMapper.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/mapper/ByteArrayValueMapper.java
Apache-2.0
public void writeValue(BytesValue byteValue, TypedValueField typedValueField) { byte[] bytes = byteValue.getValue(); if (bytes != null) { typedValueField.setValue(Base64.encodeBase64String(bytes)); } }
@author Tom Baeyens @author Daniel Meyer
writeValue
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/mapper/ByteArrayValueMapper.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/mapper/ByteArrayValueMapper.java
Apache-2.0
protected boolean canWriteValue(TypedValue typedValue) { Object value = typedValue.getValue(); return super.canWriteValue(typedValue) || value instanceof InputStream; }
@author Tom Baeyens @author Daniel Meyer
canWriteValue
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/mapper/ByteArrayValueMapper.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/mapper/ByteArrayValueMapper.java
Apache-2.0
protected boolean canReadValue(TypedValueField typedValueField) { Object value = typedValueField.getValue(); return value == null || value instanceof String; }
@author Tom Baeyens @author Daniel Meyer
canReadValue
java
camunda/camunda-bpm-platform
clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/mapper/ByteArrayValueMapper.java
https://github.com/camunda/camunda-bpm-platform/blob/master/clients/java/client/src/main/java/org/camunda/bpm/client/variable/impl/mapper/ByteArrayValueMapper.java
Apache-2.0
public static <T extends BaseLogger> T createLogger(Class<T> loggerClass, String projectCode, String name, String componentId) { try { T logger = loggerClass.newInstance(); logger.projectCode = projectCode; logger.componentId = componentId; logger.delegateLogger = LoggerFactory.getLogger(nam...
Creates a new instance of the {@link BaseLogger Logger}. @param loggerClass the type of the logger @param projectCode the unique code for a complete project. @param name the name of the slf4j logger to use. @param componentId the unique id of the component.
createLogger
java
camunda/camunda-bpm-platform
commons/logging/src/main/java/org/camunda/commons/logging/BaseLogger.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/logging/src/main/java/org/camunda/commons/logging/BaseLogger.java
Apache-2.0
protected void log(String level, String id, String messageTemplate, Object... parameters) { log(level, Level.DEBUG, id, messageTemplate, parameters); }
Logs a message with the specified log level. If the log level cannot be matched, it defaults to DEBUG. @param level the log level @param id the unique id of this log message @param messageTemplate the message template to use @param parameters a list of optional parameters
log
java
camunda/camunda-bpm-platform
commons/logging/src/main/java/org/camunda/commons/logging/BaseLogger.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/logging/src/main/java/org/camunda/commons/logging/BaseLogger.java
Apache-2.0
protected void log(String level, Level defaultLevel, String id, String messageTemplate, Object... parameters) { switch (Level.parse(level, defaultLevel)) { case ERROR: logError(id, messageTemplate, parameters); break; case WARN: logWarn(id, messageTemplate, parameters); break; ca...
Logs a message with the specified log level. @param level the log level @param defaultLevel the default log level to use when log level cannot be matched @param id the unique id of this log message @param messageTemplate the message template to use @param parameters a list of optional pa...
log
java
camunda/camunda-bpm-platform
commons/logging/src/main/java/org/camunda/commons/logging/BaseLogger.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/logging/src/main/java/org/camunda/commons/logging/BaseLogger.java
Apache-2.0
protected void logTrace(String id, String messageTemplate, Object... parameters) { if (delegateLogger.isTraceEnabled()) { String msg = formatMessageTemplate(id, messageTemplate); delegateLogger.trace(msg, parameters); } }
Logs a 'TRACE' message @param id the unique id of this log message @param messageTemplate the message template to use @param parameters a list of optional parameters
logTrace
java
camunda/camunda-bpm-platform
commons/logging/src/main/java/org/camunda/commons/logging/BaseLogger.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/logging/src/main/java/org/camunda/commons/logging/BaseLogger.java
Apache-2.0
protected void logDebug(String id, String messageTemplate, Object... parameters) { if(delegateLogger.isDebugEnabled()) { String msg = formatMessageTemplate(id, messageTemplate); delegateLogger.debug(msg, parameters); } }
Logs a 'DEBUG' message @param id the unique id of this log message @param messageTemplate the message template to use @param parameters a list of optional parameters
logDebug
java
camunda/camunda-bpm-platform
commons/logging/src/main/java/org/camunda/commons/logging/BaseLogger.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/logging/src/main/java/org/camunda/commons/logging/BaseLogger.java
Apache-2.0
protected void logInfo(String id, String messageTemplate, Object... parameters) { if(delegateLogger.isInfoEnabled()) { String msg = formatMessageTemplate(id, messageTemplate); delegateLogger.info(msg, parameters); } }
Logs an 'INFO' message @param id the unique id of this log message @param messageTemplate the message template to use @param parameters a list of optional parameters
logInfo
java
camunda/camunda-bpm-platform
commons/logging/src/main/java/org/camunda/commons/logging/BaseLogger.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/logging/src/main/java/org/camunda/commons/logging/BaseLogger.java
Apache-2.0
protected void logWarn(String id, String messageTemplate, Object... parameters) { if(delegateLogger.isWarnEnabled()) { String msg = formatMessageTemplate(id, messageTemplate); delegateLogger.warn(msg, parameters); } }
Logs an 'WARN' message @param id the unique id of this log message @param messageTemplate the message template to use @param parameters a list of optional parameters
logWarn
java
camunda/camunda-bpm-platform
commons/logging/src/main/java/org/camunda/commons/logging/BaseLogger.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/logging/src/main/java/org/camunda/commons/logging/BaseLogger.java
Apache-2.0
protected void logError(String id, String messageTemplate, Object... parameters) { if(delegateLogger.isErrorEnabled()) { String msg = formatMessageTemplate(id, messageTemplate); delegateLogger.error(msg, parameters); } }
Logs an 'ERROR' message @param id the unique id of this log message @param messageTemplate the message template to use @param parameters a list of optional parameters
logError
java
camunda/camunda-bpm-platform
commons/logging/src/main/java/org/camunda/commons/logging/BaseLogger.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/logging/src/main/java/org/camunda/commons/logging/BaseLogger.java
Apache-2.0
public boolean isDebugEnabled() { return delegateLogger.isDebugEnabled(); }
@return true if the logger will log 'DEBUG' messages
isDebugEnabled
java
camunda/camunda-bpm-platform
commons/logging/src/main/java/org/camunda/commons/logging/BaseLogger.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/logging/src/main/java/org/camunda/commons/logging/BaseLogger.java
Apache-2.0
public boolean isInfoEnabled() { return delegateLogger.isInfoEnabled(); }
@return true if the logger will log 'INFO' messages
isInfoEnabled
java
camunda/camunda-bpm-platform
commons/logging/src/main/java/org/camunda/commons/logging/BaseLogger.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/logging/src/main/java/org/camunda/commons/logging/BaseLogger.java
Apache-2.0
public boolean isWarnEnabled() { return delegateLogger.isWarnEnabled(); }
@return true if the logger will log 'WARN' messages
isWarnEnabled
java
camunda/camunda-bpm-platform
commons/logging/src/main/java/org/camunda/commons/logging/BaseLogger.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/logging/src/main/java/org/camunda/commons/logging/BaseLogger.java
Apache-2.0
public boolean isErrorEnabled() { return delegateLogger.isErrorEnabled(); }
@return true if the logger will log 'ERROR' messages
isErrorEnabled
java
camunda/camunda-bpm-platform
commons/logging/src/main/java/org/camunda/commons/logging/BaseLogger.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/logging/src/main/java/org/camunda/commons/logging/BaseLogger.java
Apache-2.0
protected String formatMessageTemplate(String id, String messageTemplate) { return projectCode + "-" + componentId + id + " " + messageTemplate; }
Formats a message template @param id the id of the message @param messageTemplate the message template to use @return the formatted template
formatMessageTemplate
java
camunda/camunda-bpm-platform
commons/logging/src/main/java/org/camunda/commons/logging/BaseLogger.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/logging/src/main/java/org/camunda/commons/logging/BaseLogger.java
Apache-2.0
protected String exceptionMessage(String id, String messageTemplate, Object... parameters) { String formattedTemplate = formatMessageTemplate(id, messageTemplate); if(parameters == null || parameters.length == 0) { return formattedTemplate; } else { return MessageFormatter.arrayFormat(formatted...
Prepares an exception message @param id the id of the message @param messageTemplate the message template to use @param parameters the parameters for the message (optional) @return the prepared exception message
exceptionMessage
java
camunda/camunda-bpm-platform
commons/logging/src/main/java/org/camunda/commons/logging/BaseLogger.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/logging/src/main/java/org/camunda/commons/logging/BaseLogger.java
Apache-2.0
public static Level parse(String value, Level defaultLevel) { if (value == null) return defaultLevel; try { return valueOf(value.trim().toUpperCase()); } catch (IllegalArgumentException e) { return defaultLevel; } }
Parse value or fallback to default level @param value the value to parse @param defaultLevel the fallback default value @return the parsed log level
parse
java
camunda/camunda-bpm-platform
commons/logging/src/main/java/org/camunda/commons/logging/Level.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/logging/src/main/java/org/camunda/commons/logging/Level.java
Apache-2.0
public String getValue() { return value; }
@return the string value of the level
getValue
java
camunda/camunda-bpm-platform
commons/logging/src/main/java/org/camunda/commons/logging/Level.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/logging/src/main/java/org/camunda/commons/logging/Level.java
Apache-2.0
public static void put(String key, String value) { MDC.put(key, value); }
see {@link MDC#put(String, String)}
put
java
camunda/camunda-bpm-platform
commons/logging/src/main/java/org/camunda/commons/logging/MdcAccess.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/logging/src/main/java/org/camunda/commons/logging/MdcAccess.java
Apache-2.0
public String getName() { return name; }
<p>The Xml Serialization Data format. If this data format is used for serializing an object, the object is serialized as Xml text.</p> <p><strong>NOTE:</strong> the process does NOT provide a serializer for this dataformat out of the box. If you want to serialize objects using the Xml dataformat, you need to provide a...
getName
java
camunda/camunda-bpm-platform
commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
Apache-2.0
public static VariableMap fromMap(Map<String, Object> map) { if(map instanceof VariableMap) { return (VariableMap) map; } else { return new VariableMapImpl(map); } }
If the given map is not a variable map, adds all its entries as untyped values to a new {@link VariableMap}. If the given map is a {@link VariableMap}, it is returned as is.
fromMap
java
camunda/camunda-bpm-platform
commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
Apache-2.0
public static VariableMap putValue(String name, Object value) { return createVariables().putValue(name, value); }
Shortcut for {@code Variables.createVariables().putValue(name, value)}
putValue
java
camunda/camunda-bpm-platform
commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
Apache-2.0
public static VariableMap putValueTyped(String name, TypedValue value) { return createVariables().putValueTyped(name, value); }
Shortcut for {@code Variables.createVariables().putValueTyped(name, value)}
putValueTyped
java
camunda/camunda-bpm-platform
commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
Apache-2.0
public static ObjectValueBuilder objectValue(Object value) { return new ObjectVariableBuilderImpl(value); }
Returns a builder to create a new {@link ObjectValue} that encapsulates the given {@code value}.
objectValue
java
camunda/camunda-bpm-platform
commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
Apache-2.0
public static ObjectValueBuilder objectValue(Object value, boolean isTransient) { return (ObjectValueBuilder) objectValue(value).setTransient(isTransient); }
Returns a builder to create a new {@link ObjectValue} that encapsulates the given {@code value}.
objectValue
java
camunda/camunda-bpm-platform
commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
Apache-2.0
public static SerializedObjectValueBuilder serializedObjectValue() { return new SerializedObjectValueBuilderImpl(); }
Returns a builder to create a new {@link ObjectValue} from a serialized object representation.
serializedObjectValue
java
camunda/camunda-bpm-platform
commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
Apache-2.0
public static SerializedObjectValueBuilder serializedObjectValue(String value) { return serializedObjectValue().serializedValue(value); }
Shortcut for {@code Variables.serializedObjectValue().serializedValue(value)}
serializedObjectValue
java
camunda/camunda-bpm-platform
commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
Apache-2.0
public static SerializedObjectValueBuilder serializedObjectValue(String value, boolean isTransient) { return (SerializedObjectValueBuilder) serializedObjectValue().serializedValue(value).setTransient(isTransient); }
Shortcut for {@code Variables.serializedObjectValue().serializedValue(value).setTransient(isTransient)}
serializedObjectValue
java
camunda/camunda-bpm-platform
commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
Apache-2.0
public static IntegerValue integerValue(Integer integer) { return integerValue(integer, false); }
Creates a new {@link IntegerValue} that encapsulates the given <code>integer</code>
integerValue
java
camunda/camunda-bpm-platform
commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
Apache-2.0
public static IntegerValue integerValue(Integer integer, boolean isTransient) { return new IntegerValueImpl(integer, isTransient); }
Creates a new {@link IntegerValue} that encapsulates the given <code>integer</code>
integerValue
java
camunda/camunda-bpm-platform
commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
Apache-2.0
public static StringValue stringValue(String stringValue) { return stringValue(stringValue, false); }
Creates a new {@link StringValue} that encapsulates the given <code>stringValue</code>
stringValue
java
camunda/camunda-bpm-platform
commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
Apache-2.0
public static StringValue stringValue(String stringValue, boolean isTransient) { return new StringValueImpl(stringValue, isTransient); }
Creates a new {@link StringValue} that encapsulates the given <code>stringValue</code>
stringValue
java
camunda/camunda-bpm-platform
commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
Apache-2.0
public static BooleanValue booleanValue(Boolean booleanValue) { return booleanValue(booleanValue, false); }
Creates a new {@link BooleanValue} that encapsulates the given <code>booleanValue</code>
booleanValue
java
camunda/camunda-bpm-platform
commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
Apache-2.0
public static BooleanValue booleanValue(Boolean booleanValue, boolean isTransient) { return new BooleanValueImpl(booleanValue, isTransient); }
Creates a new {@link BooleanValue} that encapsulates the given <code>booleanValue</code>
booleanValue
java
camunda/camunda-bpm-platform
commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
Apache-2.0
public static BytesValue byteArrayValue(byte[] bytes) { return byteArrayValue(bytes, false); }
Creates a new {@link BytesValue} that encapsulates the given <code>bytes</code>
byteArrayValue
java
camunda/camunda-bpm-platform
commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
Apache-2.0
public static BytesValue byteArrayValue(byte[] bytes, boolean isTransient) { return new BytesValueImpl(bytes, isTransient); }
Creates a new {@link BytesValue} that encapsulates the given <code>bytes</code>
byteArrayValue
java
camunda/camunda-bpm-platform
commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
Apache-2.0
public static DateValue dateValue(Date date) { return dateValue(date, false); }
Creates a new {@link DateValue} that encapsulates the given <code>date</code>
dateValue
java
camunda/camunda-bpm-platform
commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
Apache-2.0
public static DateValue dateValue(Date date, boolean isTransient) { return new DateValueImpl(date, isTransient); }
Creates a new {@link DateValue} that encapsulates the given <code>date</code>
dateValue
java
camunda/camunda-bpm-platform
commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
Apache-2.0
public static LongValue longValue(Long longValue) { return longValue(longValue, false); }
Creates a new {@link LongValue} that encapsulates the given <code>longValue</code>
longValue
java
camunda/camunda-bpm-platform
commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
Apache-2.0
public static LongValue longValue(Long longValue, boolean isTransient) { return new LongValueImpl(longValue, isTransient); }
Creates a new {@link LongValue} that encapsulates the given <code>longValue</code>
longValue
java
camunda/camunda-bpm-platform
commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
Apache-2.0
public static ShortValue shortValue(Short shortValue) { return shortValue(shortValue, false); }
Creates a new {@link ShortValue} that encapsulates the given <code>shortValue</code>
shortValue
java
camunda/camunda-bpm-platform
commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
Apache-2.0
public static ShortValue shortValue(Short shortValue, boolean isTransient) { return new ShortValueImpl(shortValue, isTransient); }
Creates a new {@link ShortValue} that encapsulates the given <code>shortValue</code>
shortValue
java
camunda/camunda-bpm-platform
commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
Apache-2.0
public static DoubleValue doubleValue(Double doubleValue) { return doubleValue(doubleValue, false); }
Creates a new {@link DoubleValue} that encapsulates the given <code>doubleValue</code>
doubleValue
java
camunda/camunda-bpm-platform
commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
Apache-2.0
public static DoubleValue doubleValue(Double doubleValue, boolean isTransient) { return new DoubleValueImpl(doubleValue, isTransient); }
Creates a new {@link DoubleValue} that encapsulates the given <code>doubleValue</code>
doubleValue
java
camunda/camunda-bpm-platform
commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
Apache-2.0
public static NumberValue numberValue(Number numberValue) { return numberValue(numberValue, false); }
Creates an abstract Number value. Note that this value cannot be used to set variables. Use the specific methods {@link Variables#integerValue(Integer)}, {@link #shortValue(Short)}, {@link #longValue(Long)} and {@link #doubleValue(Double)} instead.
numberValue
java
camunda/camunda-bpm-platform
commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
https://github.com/camunda/camunda-bpm-platform/blob/master/commons/typed-values/src/main/java/org/camunda/bpm/engine/variable/Variables.java
Apache-2.0