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 URL getBpmPlatformXmlStream(DeploymentOperation operationContext) { return lookupBpmPlatformXml(); }
<p>Deployment Step that reads the bpm-platform.xml from the classpath</p> @author Daniel Meyer @author Christian Lipphardt
getBpmPlatformXmlStream
java
camunda/camunda-bpm-platform
javaee/ejb-service/src/main/java/org/camunda/bpm/container/impl/ejb/deployment/EjbJarParsePlatformXmlStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/javaee/ejb-service/src/main/java/org/camunda/bpm/container/impl/ejb/deployment/EjbJarParsePlatformXmlStep.java
Apache-2.0
private void checkConfiguration(JobExecutorXml jobExecutorXml) { Map<String, String> properties = jobExecutorXml.getProperties(); for (Entry<String, String> entry : properties.entrySet()) { LOGGER.warning("Property " + entry.getKey() + " with value " + entry.getValue() + " from bpm-platform.xml will be ignored for JobExecutor."); } }
Checks the validation to see if properties are present, which will be ignored in this environment so we can log a warning.
checkConfiguration
java
camunda/camunda-bpm-platform
javaee/ejb-service/src/main/java/org/camunda/bpm/container/impl/ejb/deployment/StartJcaExecutorServiceStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/javaee/ejb-service/src/main/java/org/camunda/bpm/container/impl/ejb/deployment/StartJcaExecutorServiceStep.java
Apache-2.0
public void release() { // nothing to do here }
An adapter for wrapping a Runnable as a JCA {@link Work} instance. @author Daniel Meyer
release
java
camunda/camunda-bpm-platform
javaee/jobexecutor-ra/src/main/java/org/camunda/bpm/container/impl/threading/ra/JcaWorkRunnableAdapter.java
https://github.com/camunda/camunda-bpm-platform/blob/master/javaee/jobexecutor-ra/src/main/java/org/camunda/bpm/container/impl/threading/ra/JcaWorkRunnableAdapter.java
Apache-2.0
public boolean isDaemon() { return false; }
An adapter for wrapping a Runnable as a CommonJ {@link Work} instance. @author Daniel Meyer
isDaemon
java
camunda/camunda-bpm-platform
javaee/jobexecutor-ra/src/main/java/org/camunda/bpm/container/impl/threading/ra/commonj/CommonjWorkRunnableAdapter.java
https://github.com/camunda/camunda-bpm-platform/blob/master/javaee/jobexecutor-ra/src/main/java/org/camunda/bpm/container/impl/threading/ra/commonj/CommonjWorkRunnableAdapter.java
Apache-2.0
@Override protected ClassLoader switchClassLoader() { return Thread.currentThread().getContextClassLoader(); }
Context class loader switch is not necessary since the loader used for job execution is successor of the engine's @see org.camunda.bpm.engine.impl.jobexecutor.ExecuteJobsRunnable#switchClassLoader() @return the context class loader of the current thread.
switchClassLoader
java
camunda/camunda-bpm-platform
javaee/jobexecutor-ra/src/main/java/org/camunda/bpm/container/impl/threading/ra/inflow/JcaInflowExecuteJobsRunnable.java
https://github.com/camunda/camunda-bpm-platform/blob/master/javaee/jobexecutor-ra/src/main/java/org/camunda/bpm/container/impl/threading/ra/inflow/JcaInflowExecuteJobsRunnable.java
Apache-2.0
public final Class<?> getType(Bindings bindings, ELContext context) { return null; }
according to the spec, the result is undefined for rvalues, so answer <code>null</code>
getType
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/AstRightValue.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/AstRightValue.java
Apache-2.0
public final boolean isReadOnly(Bindings bindings, ELContext context) { return true; }
non-lvalues are always readonly, so answer <code>true</code>
isReadOnly
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/AstRightValue.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/AstRightValue.java
Apache-2.0
public Method getFunction(int index) { return functions[index]; }
Get function by index. @param index function index @return method
getFunction
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/Bindings.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/Bindings.java
Apache-2.0
public boolean isFunctionBound(int index) { return index >= 0 && index < functions.length; }
Test if given index is bound to a function. This method performs an index check. @param index identifier index @return <code>true</code> if the given index is bound to a function
isFunctionBound
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/Bindings.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/Bindings.java
Apache-2.0
public ValueExpression getVariable(int index) { return variables[index]; }
Get variable by index. @param index identifier index @return value expression
getVariable
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/Bindings.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/Bindings.java
Apache-2.0
public boolean isVariableBound(int index) { return index >= 0 && index < variables.length && variables[index] != null; }
Test if given index is bound to a variable. This method performs an index check. @param index identifier index @return <code>true</code> if the given index is bound to a variable
isVariableBound
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/Bindings.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/Bindings.java
Apache-2.0
public boolean isEnabled(Feature feature) { return features.contains(feature); }
@return <code>true</code> iff the specified feature is supported.
isEnabled
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/Builder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/Builder.java
Apache-2.0
protected TreeStore createTreeStore(int defaultCacheSize, Profile profile, Properties properties) { // create builder TreeBuilder builder = null; if (properties == null) { builder = createTreeBuilder(null, profile.features()); } else { EnumSet<Builder.Feature> features = EnumSet.noneOf(Builder.Feature.class); if (getFeatureProperty(profile, properties, Builder.Feature.METHOD_INVOCATIONS, PROP_METHOD_INVOCATIONS)) { features.add(Builder.Feature.METHOD_INVOCATIONS); } if (getFeatureProperty(profile, properties, Builder.Feature.VARARGS, PROP_VAR_ARGS)) { features.add(Builder.Feature.VARARGS); } if (getFeatureProperty(profile, properties, Builder.Feature.NULL_PROPERTIES, PROP_NULL_PROPERTIES)) { features.add(Builder.Feature.NULL_PROPERTIES); } builder = createTreeBuilder(properties, features.toArray(new Builder.Feature[0])); } // create cache int cacheSize = defaultCacheSize; if (properties != null && properties.containsKey(PROP_CACHE_SIZE)) { try { cacheSize = Integer.parseInt(properties.getProperty(PROP_CACHE_SIZE)); } catch (NumberFormatException e) { throw new ELException("Cannot parse EL property " + PROP_CACHE_SIZE, e); } } Cache cache = cacheSize > 0 ? new Cache(cacheSize) : null; return new TreeStore(builder, cache); }
Create the factory's tree store. This implementation creates a new tree store using the default builder and cache implementations. The builder and cache are configured using the specified properties. The maximum cache size will be as specified unless overridden by property <code>jakarta.el.cacheSize</code>.
createTreeStore
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/ExpressionFactoryImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/ExpressionFactoryImpl.java
Apache-2.0
protected TypeConverter createTypeConverter(Properties properties) { Class<?> clazz = load(TypeConverter.class, properties); if (clazz == null) { return TypeConverter.DEFAULT; } try { return TypeConverter.class.cast(clazz.getDeclaredConstructor().newInstance()); } catch (Exception e) { throw new ELException("TypeConverter " + clazz + " could not be instantiated", e); } }
Create the factory's type converter. This implementation takes the <code>de.odysseus.el.misc.TypeConverter</code> property as the name of a class implementing the <code>de.odysseus.el.misc.TypeConverter</code> interface. If the property is not set, the default converter (<code>TypeConverter.DEFAULT</code>) is used.
createTypeConverter
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/ExpressionFactoryImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/ExpressionFactoryImpl.java
Apache-2.0
@Override public Object getValue(ELContext context) { return converter.convert(object, type); }
Answer the wrapped object, coerced to the expected type.
getValue
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/ObjectValueExpression.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/ObjectValueExpression.java
Apache-2.0
public ExtensionPoint getExtensionPoint() { return point; }
@return the extension point specifying where this syntax extension is active
getExtensionPoint
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
Apache-2.0
protected Number parseInteger(String string) throws ParseException { try { return Long.valueOf(string); } catch (NumberFormatException e) { fail(Scanner.Symbol.INTEGER); return null; } }
Parse an integer literal. @param string string to parse @return <code>Long.valueOf(string)</code>
parseInteger
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
Apache-2.0
protected final Scanner.Token consumeToken() throws Scanner.ScanException, ParseException { Scanner.Token result = token; if (lookahead.isEmpty()) { token = scanner.next(); position = scanner.getPosition(); } else { LookaheadToken next = lookahead.remove(0); token = next.token; position = next.position; } return result; }
consume current token (get next token). @return the consumed token (which was the current token when calling this method)
consumeToken
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
Apache-2.0
protected final Scanner.Token consumeToken(Scanner.Symbol expected) throws Scanner.ScanException, ParseException { if (token.getSymbol() != expected) { fail(expected); } return consumeToken(); }
consume current token (get next token); throw exception if the current token doesn't match the expected symbol.
consumeToken
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
Apache-2.0
public Tree tree() throws Scanner.ScanException, ParseException { consumeToken(); AstNode t = text(); if (token.getSymbol() == Scanner.Symbol.EOF) { if (t == null) { t = new AstText(""); } return new Tree(t, functions, identifiers, false); } AstEval e = eval(); if (token.getSymbol() == Scanner.Symbol.EOF && t == null) { return new Tree(e, functions, identifiers, e.isDeferred()); } ArrayList<AstNode> list = new ArrayList<AstNode>(); if (t != null) { list.add(t); } list.add(e); t = text(); if (t != null) { list.add(t); } while (token.getSymbol() != Scanner.Symbol.EOF) { if (e.isDeferred()) { list.add(eval(true, true)); } else { list.add(eval(true, false)); } t = text(); if (t != null) { list.add(t); } } return new Tree(createAstComposite(list), functions, identifiers, e.isDeferred()); }
tree := text? ((dynamic text?)+ | (deferred text?)+)?
tree
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
Apache-2.0
protected AstEval eval(boolean required, boolean deferred) throws Scanner.ScanException, ParseException { AstEval v = null; Scanner.Symbol start_eval = deferred ? Scanner.Symbol.START_EVAL_DEFERRED : Scanner.Symbol.START_EVAL_DYNAMIC; if (token.getSymbol() == start_eval) { consumeToken(); v = new AstEval(expr(true), deferred); consumeToken(Scanner.Symbol.END_EVAL); } else if (required) { fail(start_eval); } return v; }
dynmamic := &lt;START_EVAL_DYNAMIC&gt; expr &lt;END_EVAL&gt; deferred := &lt;START_EVAL_DEFERRED&gt; expr &lt;END_EVAL&gt;
eval
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
Apache-2.0
protected AstNode expr(boolean required) throws Scanner.ScanException, ParseException { AstNode v = or(required); if (v == null) { return null; } if (token.getSymbol() == Scanner.Symbol.QUESTION) { consumeToken(); AstNode a = expr(true); consumeToken(Scanner.Symbol.COLON); AstNode b = expr(true); v = createAstChoice(v, a, b); } return v; }
expr := or (&lt;QUESTION&gt; expr &lt;COLON&gt; expr)?
expr
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
Apache-2.0
protected AstNode or(boolean required) throws Scanner.ScanException, ParseException { AstNode v = and(required); if (v == null) { return null; } while (true) { switch (token.getSymbol()) { case OR: consumeToken(); v = createAstBinary(v, and(true), AstBinary.OR); break; case EXTENSION: if (getExtensionHandler(token).getExtensionPoint() == ExtensionPoint.OR) { v = getExtensionHandler(consumeToken()).createAstNode(v, and(true)); break; } default: return v; } } }
or := and (&lt;OR&gt; and)*
or
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
Apache-2.0
protected AstNode and(boolean required) throws Scanner.ScanException, ParseException { AstNode v = eq(required); if (v == null) { return null; } while (true) { switch (token.getSymbol()) { case AND: consumeToken(); v = createAstBinary(v, eq(true), AstBinary.AND); break; case EXTENSION: if (getExtensionHandler(token).getExtensionPoint() == ExtensionPoint.AND) { v = getExtensionHandler(consumeToken()).createAstNode(v, eq(true)); break; } default: return v; } } }
and := eq (&lt;AND&gt; eq)*
and
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
Apache-2.0
protected AstNode eq(boolean required) throws Scanner.ScanException, ParseException { AstNode v = cmp(required); if (v == null) { return null; } while (true) { switch (token.getSymbol()) { case EQ: consumeToken(); v = createAstBinary(v, cmp(true), AstBinary.EQ); break; case NE: consumeToken(); v = createAstBinary(v, cmp(true), AstBinary.NE); break; case EXTENSION: if (getExtensionHandler(token).getExtensionPoint() == ExtensionPoint.EQ) { v = getExtensionHandler(consumeToken()).createAstNode(v, cmp(true)); break; } default: return v; } } }
eq := cmp (&lt;EQ&gt; cmp | &lt;NE&gt; cmp)*
eq
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
Apache-2.0
protected AstNode cmp(boolean required) throws Scanner.ScanException, ParseException { AstNode v = add(required); if (v == null) { return null; } while (true) { switch (token.getSymbol()) { case LT: consumeToken(); v = createAstBinary(v, add(true), AstBinary.LT); break; case LE: consumeToken(); v = createAstBinary(v, add(true), AstBinary.LE); break; case GE: consumeToken(); v = createAstBinary(v, add(true), AstBinary.GE); break; case GT: consumeToken(); v = createAstBinary(v, add(true), AstBinary.GT); break; case EXTENSION: if (getExtensionHandler(token).getExtensionPoint() == ExtensionPoint.CMP) { v = getExtensionHandler(consumeToken()).createAstNode(v, add(true)); break; } default: return v; } } }
cmp := add (&lt;LT&gt; add | &lt;LE&gt; add | &lt;GE&gt; add | &lt;GT&gt; add)*
cmp
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
Apache-2.0
protected AstNode add(boolean required) throws Scanner.ScanException, ParseException { AstNode v = mul(required); if (v == null) { return null; } while (true) { switch (token.getSymbol()) { case PLUS: consumeToken(); v = createAstBinary(v, mul(true), AstBinary.ADD); break; case MINUS: consumeToken(); v = createAstBinary(v, mul(true), AstBinary.SUB); break; case EXTENSION: if (getExtensionHandler(token).getExtensionPoint() == ExtensionPoint.ADD) { v = getExtensionHandler(consumeToken()).createAstNode(v, mul(true)); break; } default: return v; } } }
add := add (&lt;PLUS&gt; mul | &lt;MINUS&gt; mul)*
add
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
Apache-2.0
protected AstNode mul(boolean required) throws Scanner.ScanException, ParseException { AstNode v = unary(required); if (v == null) { return null; } while (true) { switch (token.getSymbol()) { case MUL: consumeToken(); v = createAstBinary(v, unary(true), AstBinary.MUL); break; case DIV: consumeToken(); v = createAstBinary(v, unary(true), AstBinary.DIV); break; case MOD: consumeToken(); v = createAstBinary(v, unary(true), AstBinary.MOD); break; case EXTENSION: if (getExtensionHandler(token).getExtensionPoint() == ExtensionPoint.MUL) { v = getExtensionHandler(consumeToken()).createAstNode(v, unary(true)); break; } default: return v; } } }
mul := unary (&lt;MUL&gt; unary | &lt;DIV&gt; unary | &lt;MOD&gt; unary)*
mul
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
Apache-2.0
protected AstNode unary(boolean required) throws Scanner.ScanException, ParseException { AstNode v = null; switch (token.getSymbol()) { case NOT: consumeToken(); v = createAstUnary(unary(true), AstUnary.NOT); break; case MINUS: consumeToken(); v = createAstUnary(unary(true), AstUnary.NEG); break; case EMPTY: consumeToken(); v = createAstUnary(unary(true), AstUnary.EMPTY); break; case EXTENSION: if (getExtensionHandler(token).getExtensionPoint() == ExtensionPoint.UNARY) { v = getExtensionHandler(consumeToken()).createAstNode(unary(true)); break; } default: v = value(); } if (v == null && required) { fail(EXPR_FIRST); } return v; }
unary := &lt;NOT&gt; unary | &lt;MINUS&gt; unary | &lt;EMPTY&gt; unary | value
unary
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
Apache-2.0
protected AstNode value() throws Scanner.ScanException, ParseException { boolean lvalue = true; AstNode v = nonliteral(); if (v == null) { v = literal(); if (v == null) { return null; } lvalue = false; } while (true) { switch (token.getSymbol()) { case DOT: consumeToken(); String name = consumeToken(Scanner.Symbol.IDENTIFIER).getImage(); AstDot dot = createAstDot(v, name, lvalue); if (token.getSymbol() == Scanner.Symbol.LPAREN && context.isEnabled(Builder.Feature.METHOD_INVOCATIONS)) { v = createAstMethod(dot, params()); } else { v = dot; } break; case LBRACK: consumeToken(); AstNode property = expr(true); boolean strict = !context.isEnabled(Builder.Feature.NULL_PROPERTIES); consumeToken(Scanner.Symbol.RBRACK); AstBracket bracket = createAstBracket(v, property, lvalue, strict); if (token.getSymbol() == Scanner.Symbol.LPAREN && context.isEnabled(Builder.Feature.METHOD_INVOCATIONS)) { v = createAstMethod(bracket, params()); } else { v = bracket; } break; default: return v; } } }
value := (nonliteral | literal) (&lt;DOT&gt; &lt;IDENTIFIER&gt; | &lt;LBRACK&gt; expr &lt;RBRACK&gt;)*
value
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
Apache-2.0
protected AstNode nonliteral() throws Scanner.ScanException, ParseException { AstNode v = null; switch (token.getSymbol()) { case IDENTIFIER: String name = consumeToken().getImage(); if (token.getSymbol() == Scanner.Symbol.COLON && lookahead(0).getSymbol() == Scanner.Symbol.IDENTIFIER && lookahead(1).getSymbol() == Scanner.Symbol.LPAREN) { // ns:f(...) consumeToken(); name += ":" + token.getImage(); consumeToken(); } if (token.getSymbol() == Scanner.Symbol.LPAREN) { // function v = function(name, params()); } else { // identifier v = identifier(name); } break; case LPAREN: consumeToken(); v = expr(true); consumeToken(Scanner.Symbol.RPAREN); v = new AstNested(v); break; } return v; }
nonliteral := &lt;IDENTIFIER&gt; | function | &lt;LPAREN&gt; expr &lt;RPAREN&gt; function := (&lt;IDENTIFIER&gt; &lt;COLON&gt;)? &lt;IDENTIFIER&gt; &lt;LPAREN&gt; list? &lt;RPAREN&gt;
nonliteral
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
Apache-2.0
protected AstParameters params() throws Scanner.ScanException, ParseException { consumeToken(Scanner.Symbol.LPAREN); List<AstNode> l = Collections.emptyList(); AstNode v = expr(false); if (v != null) { l = new ArrayList<AstNode>(); l.add(v); while (token.getSymbol() == Scanner.Symbol.COMMA) { consumeToken(); l.add(expr(true)); } } consumeToken(Scanner.Symbol.RPAREN); return new AstParameters(l); }
params := &lt;LPAREN&gt; (expr (&lt;COMMA&gt; expr)*)? &lt;RPAREN&gt;
params
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/Parser.java
Apache-2.0
public Object getProperty(String property) { return map.get(property); }
Get property value @param property property name @return value associated with the given property
getProperty
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/RootPropertyResolver.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/RootPropertyResolver.java
Apache-2.0
public void setProperty(String property, Object value) { map.put(property, value); }
Set property value @param property property name @param value property value
setProperty
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/RootPropertyResolver.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/RootPropertyResolver.java
Apache-2.0
public boolean isProperty(String property) { return map.containsKey(property); }
Test property @param property property name @return <code>true</code> if the given property is associated with a value
isProperty
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/RootPropertyResolver.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/RootPropertyResolver.java
Apache-2.0
public Iterable<String> properties() { return map.keySet(); }
Get properties @return all property names (in no particular order)
properties
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/RootPropertyResolver.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/RootPropertyResolver.java
Apache-2.0
protected boolean isDigit(char c) { return c >= '0' && c <= '9'; }
@return <code>true</code> iff the specified character is a digit
isDigit
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/Scanner.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/Scanner.java
Apache-2.0
protected Token keyword(String s) { return KEYMAP.get(s); }
@param s name @return token for the given keyword or <code>null</code>
keyword
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/Scanner.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/Scanner.java
Apache-2.0
public Token next() throws ScanException { if (token != null) { position += token.getSize(); } int length = input.length(); if (isEval()) { while (position < length && Character.isWhitespace(input.charAt(position))) { position++; } } if (position == length) { return token = fixed(Symbol.EOF); } return token = nextToken(); }
Scan next token. After calling this method, {@link #getToken()} and {@link #getPosition()} can be used to retreive the token's image and input position. @return scanned token
next
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/Scanner.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/Scanner.java
Apache-2.0
@Override public ELResolver getELResolver() { if (resolver == null) { resolver = new SimpleResolver(); } return resolver; }
Get our resolver. Lazy initialize to a {@link SimpleResolver} if necessary.
getELResolver
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/SimpleContext.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/SimpleContext.java
Apache-2.0
public Iterable<FunctionNode> getFunctionNodes() { return functions; }
Get function nodes (in no particular order)
getFunctionNodes
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/Tree.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/Tree.java
Apache-2.0
public Iterable<IdentifierNode> getIdentifierNodes() { return identifiers; }
Get identifier nodes (in no particular order)
getIdentifierNodes
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/Tree.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/Tree.java
Apache-2.0
public Bindings bind(FunctionMapper fnMapper, VariableMapper varMapper) { return bind(fnMapper, varMapper, null); }
Create a bindings. @param fnMapper the function mapper to use @param varMapper the variable mapper to use @return tree bindings
bind
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/Tree.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/Tree.java
Apache-2.0
public Bindings bind(FunctionMapper fnMapper, VariableMapper varMapper, TypeConverter converter) { Method[] methods = null; if (!functions.isEmpty()) { if (fnMapper == null) { throw new ELException(LocalMessages.get("error.function.nomapper")); } methods = new Method[functions.size()]; for (FunctionNode node: functions) { String image = node.getName(); Method method = null; int colon = image.indexOf(':'); if (colon < 0) { method = fnMapper.resolveFunction("", image); } else { method = fnMapper.resolveFunction(image.substring(0, colon), image.substring(colon + 1)); } if (method == null) { throw new ELException(LocalMessages.get("error.function.notfound", image)); } if (node.isVarArgs() && method.isVarArgs()) { if (method.getParameterTypes().length > node.getParamCount() + 1) { throw new ELException(LocalMessages.get("error.function.params", image)); } } else { if (method.getParameterTypes().length != node.getParamCount()) { throw new ELException(LocalMessages.get("error.function.params", image)); } } methods[node.getIndex()] = method; } } ValueExpression[] expressions = null; if (identifiers.size() > 0) { expressions = new ValueExpression[identifiers.size()]; for (IdentifierNode node: identifiers) { ValueExpression expression = null; if (varMapper != null) { expression = varMapper.resolveVariable(node.getName()); } expressions[node.getIndex()] = expression; } } return new Bindings(methods, expressions, converter); }
Create a bindings. @param fnMapper the function mapper to use @param varMapper the variable mapper to use @param converter custom type converter @return tree bindings
bind
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/Tree.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/Tree.java
Apache-2.0
public String getEncountered() { return encountered; }
@return the substring (or description) that has been encountered
getEncountered
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/TreeBuilderException.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/TreeBuilderException.java
Apache-2.0
public String getExpected() { return expected; }
@return the substring (or description) that was expected
getExpected
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/TreeBuilderException.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/TreeBuilderException.java
Apache-2.0
private String getStructuralId() { if (structure == null) { structure = node.getStructuralId(bindings); } return structure; }
Create a new method expression. The expression must be an lvalue expression or literal text. The expected return type may be <code>null</code>, meaning "don't care". If it is an lvalue expression, the parameter types must not be <code>null</code>. If it is literal text, the expected return type must not be <code>void</code>. @param store used to get the parse tree from. @param functions the function mapper used to bind functions @param variables the variable mapper used to bind variables @param expr the expression string @param returnType the expected return type (may be <code>null</code>) @param paramTypes the expected parameter types (must not be <code>null</code> for lvalues)
getStructuralId
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/TreeMethodExpression.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/TreeMethodExpression.java
Apache-2.0
@Override public Object invoke(ELContext context, Object[] paramValues) throws ELException { return node.invoke(bindings, context, type, types, paramValues); }
Evaluates the expression and invokes the method. @param context used to resolve properties (<code>base.property</code> and <code>base[property]</code>) @param paramValues @return method result or <code>null</code> if this is a literal text expression @throws ELException if evaluation fails (e.g. suitable method not found)
invoke
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/TreeMethodExpression.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/TreeMethodExpression.java
Apache-2.0
@Override public boolean isParametersProvided() { return node.isMethodInvocation(); }
@return <code>true</code> if this is a method invocation expression
isParametersProvided
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/TreeMethodExpression.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/TreeMethodExpression.java
Apache-2.0
public boolean isDeferred() { return deferred; }
Answer <code>true</code> if this is a deferred expression (starting with <code>#{</code>)
isDeferred
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/TreeMethodExpression.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/TreeMethodExpression.java
Apache-2.0
public TreeBuilder getBuilder() { return builder; }
Constructor. @param builder the tree builder @param cache the tree cache (may be <code>null</code>)
getBuilder
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/TreeStore.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/TreeStore.java
Apache-2.0
public Tree get(String expression) throws TreeBuilderException { if (cache == null) { return builder.build(expression); } Tree tree = cache.get(expression); if (tree == null) { cache.put(expression, tree = builder.build(expression)); } return tree; }
Get a {@link Tree}. If a tree for the given expression is present in the cache, it is taken from there; otherwise, the expression string is parsed and the resulting tree is added to the cache. @param expression expression string @return expression tree
get
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/TreeStore.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/TreeStore.java
Apache-2.0
@Override public Class<?> getType(ELContext context) throws ELException { return node.getType(bindings, context); }
Evaluates the expression as an lvalue and answers the result type. @param context used to resolve properties (<code>base.property</code> and <code>base[property]</code>) and to determine the result from the last base/property pair @return lvalue evaluation type or <code>null</code> for rvalue expressions @throws ELException if evaluation fails (e.g. property not found, type conversion failed, ...)
getType
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/TreeValueExpression.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/TreeValueExpression.java
Apache-2.0
@Override public Object getValue(ELContext context) throws ELException { return node.getValue(bindings, context, type); }
Evaluates the expression as an rvalue and answers the result. @param context used to resolve properties (<code>base.property</code> and <code>base[property]</code>) and to determine the result from the last base/property pair @return rvalue evaluation result @throws ELException if evaluation fails (e.g. property not found, type conversion failed, ...)
getValue
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/TreeValueExpression.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/TreeValueExpression.java
Apache-2.0
@Override public boolean isReadOnly(ELContext context) throws ELException { return node.isReadOnly(bindings, context); }
Evaluates the expression as an lvalue and determines if {@link #setValue(ELContext, Object)} will always fail. @param context used to resolve properties (<code>base.property</code> and <code>base[property]</code>) and to determine the result from the last base/property pair @return <code>true</code> if {@link #setValue(ELContext, Object)} always fails. @throws ELException if evaluation fails (e.g. property not found, type conversion failed, ...)
isReadOnly
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/TreeValueExpression.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/TreeValueExpression.java
Apache-2.0
@Override public void setValue(ELContext context, Object value) throws ELException { node.setValue(bindings, context, value); }
Evaluates the expression as an lvalue and assigns the given value. @param context used to resolve properties (<code>base.property</code> and <code>base[property]</code>) and to perform the assignment to the last base/property pair @throws ELException if evaluation fails (e.g. property not found, type conversion failed, assignment failed...)
setValue
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/TreeValueExpression.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/TreeValueExpression.java
Apache-2.0
public boolean isLeftValue() { return node.isLeftValue(); }
Answer <code>true</code> if this could be used as an lvalue. This is the case for eval expressions consisting of a simple identifier or a nonliteral prefix, followed by a sequence of property operators (<code>.</code> or <code>[]</code>)
isLeftValue
java
camunda/camunda-bpm-platform
juel/src/main/java/org/camunda/bpm/impl/juel/TreeValueExpression.java
https://github.com/camunda/camunda-bpm-platform/blob/master/juel/src/main/java/org/camunda/bpm/impl/juel/TreeValueExpression.java
Apache-2.0
public static BpmnModelInstance readModelFromFile(File file) { return INSTANCE.doReadModelFromFile(file); }
Allows reading a {@link BpmnModelInstance} from a File. @param file the {@link File} to read the {@link BpmnModelInstance} from @return the model read @throws BpmnModelException if the model cannot be read
readModelFromFile
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/Bpmn.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/Bpmn.java
Apache-2.0
public static BpmnModelInstance readModelFromStream(InputStream stream) { return INSTANCE.doReadModelFromInputStream(stream); }
Allows reading a {@link BpmnModelInstance} from an {@link InputStream} @param stream the {@link InputStream} to read the {@link BpmnModelInstance} from @return the model read @throws ModelParseException if the model cannot be read
readModelFromStream
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/Bpmn.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/Bpmn.java
Apache-2.0
public static void writeModelToFile(File file, BpmnModelInstance modelInstance) { INSTANCE.doWriteModelToFile(file, modelInstance); }
Allows writing a {@link BpmnModelInstance} to a File. It will be validated before writing. @param file the {@link File} to write the {@link BpmnModelInstance} to @param modelInstance the {@link BpmnModelInstance} to write @throws BpmnModelException if the model cannot be written @throws ModelValidationException if the model is not valid
writeModelToFile
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/Bpmn.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/Bpmn.java
Apache-2.0
public static void writeModelToStream(OutputStream stream, BpmnModelInstance modelInstance) { INSTANCE.doWriteModelToOutputStream(stream, modelInstance); }
Allows writing a {@link BpmnModelInstance} to an {@link OutputStream}. It will be validated before writing. @param stream the {@link OutputStream} to write the {@link BpmnModelInstance} to @param modelInstance the {@link BpmnModelInstance} 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/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/Bpmn.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/Bpmn.java
Apache-2.0
public static String convertToString(BpmnModelInstance modelInstance) { return INSTANCE.doConvertToString(modelInstance); }
Allows the conversion of a {@link BpmnModelInstance} 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/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/Bpmn.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/Bpmn.java
Apache-2.0
public void setBpmnModel(Model bpmnModel) { this.bpmnModel = bpmnModel; }
@param bpmnModel the bpmnModel to set
setBpmnModel
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/Bpmn.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/Bpmn.java
Apache-2.0
public B id(String identifier) { element.setId(identifier); return myself; }
Sets the identifier of the element. @param identifier the identifier to set @return the builder object
id
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBaseElementBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBaseElementBuilder.java
Apache-2.0
public B documentation(String documentation) { final Documentation child = createChild(element, Documentation.class); child.setTextContent(documentation); return myself; }
Sets the documentation of the element. @param documentation the documentation to set @return the builder object
documentation
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBaseElementBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBaseElementBuilder.java
Apache-2.0
public B cancelActivity(Boolean cancelActivity) { element.setCancelActivity(cancelActivity); return myself; }
Set if the boundary event cancels the attached activity. @param cancelActivity true if the boundary event cancels the activiy, false otherwise @return the builder object
cancelActivity
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBoundaryEventBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBoundaryEventBuilder.java
Apache-2.0
public B error(String errorCode, String errorMessage) { ErrorEventDefinition errorEventDefinition = createErrorEventDefinition(errorCode, errorMessage); element.getEventDefinitions().add(errorEventDefinition); return myself; }
Sets an error definition for the given error code. If already an error with this code exists it will be used, otherwise a new error with the given error message is created. @param errorCode the code of the error @param errorMessage the error message that is used when a new error needs to be created @return the builder object
error
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBoundaryEventBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBoundaryEventBuilder.java
Apache-2.0
public BpmnModelInstance done() { return modelInstance; }
Finishes the process building. @return the model instance with the build process
done
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBpmnModelElementBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBpmnModelElementBuilder.java
Apache-2.0
public B implementation(String implementation) { element.setImplementation(implementation); return myself; }
Sets the implementation of the business rule task. @param implementation the implementation to set @return the builder object
implementation
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBusinessRuleTaskBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBusinessRuleTaskBuilder.java
Apache-2.0
public B camundaDecisionRef(String camundaDecisionRef) { element.setCamundaDecisionRef(camundaDecisionRef); return myself; }
Sets the camunda decisionRef attribute. @param camundaDecisionRef the decisionRef to set @return the builder object
camundaDecisionRef
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBusinessRuleTaskBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBusinessRuleTaskBuilder.java
Apache-2.0
public B camundaDecisionRefBinding(String camundaDecisionRefBinding) { element.setCamundaDecisionRefBinding(camundaDecisionRefBinding); return myself; }
Sets the camunda decisionRefBinding attribute. @param camundaDecisionRefBinding the decisionRefBinding to set @return the builder object
camundaDecisionRefBinding
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBusinessRuleTaskBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBusinessRuleTaskBuilder.java
Apache-2.0
public B camundaDecisionRefVersion(String camundaDecisionRefVersion) { element.setCamundaDecisionRefVersion(camundaDecisionRefVersion); return myself; }
Sets the camunda decisionRefVersion attribute. @param camundaDecisionRefVersion the decisionRefVersion to set @return the builder object
camundaDecisionRefVersion
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBusinessRuleTaskBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBusinessRuleTaskBuilder.java
Apache-2.0
public B camundaDecisionRefVersionTag(String camundaDecisionRefVersionTag) { element.setCamundaDecisionRefVersionTag(camundaDecisionRefVersionTag); return myself; }
Sets the camunda decisionRefVersionTag attribute. @param camundaDecisionRefVersionTag the decisionRefVersionTag to set @return the builder object
camundaDecisionRefVersionTag
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBusinessRuleTaskBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBusinessRuleTaskBuilder.java
Apache-2.0
public B camundaDecisionRefTenantId(String decisionRefTenantId) { element.setCamundaDecisionRefTenantId(decisionRefTenantId); return myself; }
Sets the camunda decisionRefTenantId attribute. @param decisionRefTenantId the decisionRefTenantId to set @return the builder object
camundaDecisionRefTenantId
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBusinessRuleTaskBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBusinessRuleTaskBuilder.java
Apache-2.0
public B camundaMapDecisionResult(String camundaMapDecisionResult) { element.setCamundaMapDecisionResult(camundaMapDecisionResult); return myself; }
Set the camunda mapDecisionResult attribute. @param camundaMapDecisionResult the mapper for the decision result to set @return the builder object
camundaMapDecisionResult
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBusinessRuleTaskBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBusinessRuleTaskBuilder.java
Apache-2.0
public B calledElement(String calledElement) { element.setCalledElement(calledElement); return myself; }
Sets the called element @param calledElement the process to call @return the builder object
calledElement
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCallActivityBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCallActivityBuilder.java
Apache-2.0
@Deprecated public B camundaAsync(boolean isCamundaAsync) { element.setCamundaAsyncBefore(isCamundaAsync); return myself; }
@deprecated use camundaAsyncBefore(isCamundaAsyncBefore) instead Sets the camunda async attribute. @param isCamundaAsync the async state of the task @return the builder object
camundaAsync
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCallActivityBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCallActivityBuilder.java
Apache-2.0
public B camundaCalledElementBinding(String camundaCalledElementBinding) { element.setCamundaCalledElementBinding(camundaCalledElementBinding); return myself; }
Sets the camunda calledElementBinding attribute @param camundaCalledElementBinding the element binding to use @return the builder object
camundaCalledElementBinding
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCallActivityBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCallActivityBuilder.java
Apache-2.0
public B camundaCalledElementVersion(String camundaCalledElementVersion) { element.setCamundaCalledElementVersion(camundaCalledElementVersion); return myself; }
Sets the camunda calledElementVersion attribute @param camundaCalledElementVersion the element version to use @return the builder object
camundaCalledElementVersion
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCallActivityBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCallActivityBuilder.java
Apache-2.0
public B camundaCalledElementVersionTag(String camundaCalledElementVersionTag) { element.setCamundaCalledElementVersionTag(camundaCalledElementVersionTag); return myself; }
Sets the camunda calledElementVersionTag attribute @param camundaCalledElementVersionTag the element version to use @return the builder object
camundaCalledElementVersionTag
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCallActivityBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCallActivityBuilder.java
Apache-2.0
public B camundaCalledElementTenantId(String camundaCalledElementTenantId) { element.setCamundaCalledElementTenantId(camundaCalledElementTenantId); return myself; }
Sets the camunda calledElementTenantId attribute @param camundaCalledElementTenantId the called element tenant id @return the builder object
camundaCalledElementTenantId
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCallActivityBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCallActivityBuilder.java
Apache-2.0
public B camundaCaseRef(String caseRef) { element.setCamundaCaseRef(caseRef); return myself; }
Sets the camunda caseRef attribute @param caseRef the case to call @return the builder object
camundaCaseRef
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCallActivityBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCallActivityBuilder.java
Apache-2.0
public B camundaCaseBinding(String camundaCaseBinding) { element.setCamundaCaseBinding(camundaCaseBinding); return myself; }
Sets the camunda caseBinding attribute @param camundaCaseBinding the case binding to use @return the builder object
camundaCaseBinding
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCallActivityBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCallActivityBuilder.java
Apache-2.0
public B camundaCaseVersion(String camundaCaseVersion) { element.setCamundaCaseVersion(camundaCaseVersion); return myself; }
Sets the camunda caseVersion attribute @param camundaCaseVersion the case version to use @return the builder object
camundaCaseVersion
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCallActivityBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCallActivityBuilder.java
Apache-2.0
public B camundaCaseTenantId(String tenantId) { element.setCamundaCaseTenantId(tenantId); return myself; }
Sets the caseTenantId @param tenantId the tenant id to set @return the builder object
camundaCaseTenantId
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCallActivityBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCallActivityBuilder.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 a business key from the super process instance to the sub process instance @param businessKey the business key to set @return the builder object
camundaInBusinessKey
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCallActivityBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCallActivityBuilder.java
Apache-2.0
public B camundaIn(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 super process instance to the sub process instance @param source the name of variable in the super process instance @param target the name of the variable in the sub process instance @return the builder object
camundaIn
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCallActivityBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCallActivityBuilder.java
Apache-2.0
public B camundaOut(String source, String target) { CamundaOut param = modelInstance.newInstance(CamundaOut.class); param.setCamundaSource(source); param.setCamundaTarget(target); addExtensionElement(param); return myself; }
Sets a "camunda out" parameter to pass a variable from a sub process instance to the super process instance @param source the name of variable in the sub process instance @param target the name of the variable in the super process instance @return the builder object
camundaOut
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCallActivityBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCallActivityBuilder.java
Apache-2.0
public B camundaVariableMappingDelegateExpression(String camundaVariableMappingDelegateExpression) { element.setCamundaVariableMappingDelegateExpression(camundaVariableMappingDelegateExpression); return myself; }
Sets the camunda variableMappingDelegateExpression attribute. The expression when is resolved references to an object of a class, which implements the {@link DelegateVariableMapping} interface. Is used to delegate the variable in- and output mapping to the given class. @param camundaVariableMappingDelegateExpression the expression which references a delegate object @return the builder object
camundaVariableMappingDelegateExpression
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCallActivityBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCallActivityBuilder.java
Apache-2.0
public B camundaId(String id) { element.setCamundaId(id); return myself; }
Sets the form field id. @param id the form field id @return the builder object
camundaId
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCamundaFormFieldBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCamundaFormFieldBuilder.java
Apache-2.0
public B camundaLabel(String label) { element.setCamundaLabel(label);; return myself; }
Sets form field label. @param label the form field label @return the builder object
camundaLabel
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCamundaFormFieldBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCamundaFormFieldBuilder.java
Apache-2.0
public B camundaType(String type) { element.setCamundaType(type); return myself; }
Sets the form field type. @param type the form field type @return the builder object
camundaType
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCamundaFormFieldBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCamundaFormFieldBuilder.java
Apache-2.0
public B camundaDefaultValue(String defaultValue) { element.setCamundaDefaultValue(defaultValue); return myself; }
Sets the form field default value. @param defaultValue the form field default value @return the builder object
camundaDefaultValue
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCamundaFormFieldBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCamundaFormFieldBuilder.java
Apache-2.0
@SuppressWarnings({ "unchecked" }) public P camundaFormFieldDone() { return (P) parent.builder(); }
Finishes the building of a form field. @return the parent activity builder
camundaFormFieldDone
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCamundaFormFieldBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCamundaFormFieldBuilder.java
Apache-2.0
public B parallelMultiple() { element.isParallelMultiple(); return myself; }
Sets the event to be parallel multiple @return the builder object
parallelMultiple
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCatchEventBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCatchEventBuilder.java
Apache-2.0
public B timerWithDate(String timerDate) { element.getEventDefinitions().add(createTimeDate(timerDate)); return myself; }
Sets an event definition for the timer with a time date. @param timerDate the time date of the timer @return the builder object
timerWithDate
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCatchEventBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCatchEventBuilder.java
Apache-2.0
public B timerWithDuration(String timerDuration) { element.getEventDefinitions().add(createTimeDuration(timerDuration)); return myself; }
Sets an event definition for the timer with a time duration. @param timerDuration the time duration of the timer @return the builder object
timerWithDuration
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCatchEventBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractCatchEventBuilder.java
Apache-2.0
public B defaultFlow(SequenceFlow sequenceFlow) { element.setDefault(sequenceFlow); return myself; }
Sets the default sequence flow for the build complex gateway. @param sequenceFlow the default sequence flow to set @return the builder object
defaultFlow
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractComplexGatewayBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractComplexGatewayBuilder.java
Apache-2.0
public B activationCondition(String conditionExpression) { ActivationCondition activationCondition = createInstance(ActivationCondition.class); activationCondition.setTextContent(conditionExpression); element.setActivationCondition(activationCondition); return myself; }
Sets the activation condition expression for the build complex gateway @param conditionExpression the activation condition expression to set @return the builder object
activationCondition
java
camunda/camunda-bpm-platform
model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractComplexGatewayBuilder.java
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractComplexGatewayBuilder.java
Apache-2.0
public B condition(String conditionText) { Condition condition = createInstance(Condition.class); condition.setTextContent(conditionText); element.setCondition(condition); return myself; }
Sets the condition of the conditional event definition. @param conditionText the condition which should be evaluate to true or false @return the builder object
condition
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