@Component public class ActivitiHelper extends Object
| Constructor and Description |
|---|
ActivitiHelper() |
| Modifier and Type | Method and Description |
|---|---|
org.activiti.bpmn.model.BpmnModel |
constructBpmnModelFromXmlAndValidate(String xmlString)
Constructs BPMN model from the XML string and validates
|
Object |
getExpressionVariable(org.activiti.engine.delegate.Expression expression,
org.activiti.engine.delegate.DelegateExecution execution)
Gets an expression variable from the execution.
|
Boolean |
getExpressionVariableAsBoolean(org.activiti.engine.delegate.Expression expression,
org.activiti.engine.delegate.DelegateExecution execution,
String variableName,
boolean isRequired,
Boolean defaultValue)
Gets an expression variable from the execution as a Boolean.
|
Integer |
getExpressionVariableAsInteger(org.activiti.engine.delegate.Expression expression,
org.activiti.engine.delegate.DelegateExecution execution,
String variableName,
boolean isRequired)
Gets an expression variable from the execution as Integer.
|
String |
getExpressionVariableAsString(org.activiti.engine.delegate.Expression expression,
org.activiti.engine.delegate.DelegateExecution execution)
Gets an expression variable from the execution as String.
|
String |
getProcessIdentifyingInformation(org.activiti.engine.delegate.DelegateExecution execution)
Gets process identifying information from the current execution as a String.
|
String |
getRequiredExpressionVariableAsString(org.activiti.engine.delegate.Expression expression,
org.activiti.engine.delegate.DelegateExecution execution,
String variableName)
Gets an expression variable from the execution as String.
|
public String getProcessIdentifyingInformation(org.activiti.engine.delegate.DelegateExecution execution)
execution - the execution.public Object getExpressionVariable(org.activiti.engine.delegate.Expression expression, org.activiti.engine.delegate.DelegateExecution execution)
expression - the expression variable to get.execution - the execution that contains the variable value.public String getExpressionVariableAsString(org.activiti.engine.delegate.Expression expression, org.activiti.engine.delegate.DelegateExecution execution)
expression - the expression variable to get.execution - the execution that contains the variable value.public String getRequiredExpressionVariableAsString(org.activiti.engine.delegate.Expression expression, org.activiti.engine.delegate.DelegateExecution execution, String variableName) throws IllegalArgumentException
expression - the expression variable to get.execution - the execution that contains the variable value.variableName - the name of the variable that is being checked.IllegalArgumentException - if variable is not specified.public Integer getExpressionVariableAsInteger(org.activiti.engine.delegate.Expression expression, org.activiti.engine.delegate.DelegateExecution execution, String variableName, boolean isRequired) throws IllegalArgumentException
expression - the expression variable to get.execution - the execution that contains the variable value.variableName - the variable nameisRequired - whether this variable is requiredIllegalArgumentException - if not a valid integer value.public Boolean getExpressionVariableAsBoolean(org.activiti.engine.delegate.Expression expression, org.activiti.engine.delegate.DelegateExecution execution, String variableName, boolean isRequired, Boolean defaultValue) throws IllegalArgumentException
expression - the expression variable to get.execution - the execution that contains the variable value.variableName - the variable name.isRequired - whether this variable is required.defaultValue - the default value if variable is null.IllegalArgumentException - if not a valid boolean value.public org.activiti.bpmn.model.BpmnModel constructBpmnModelFromXmlAndValidate(String xmlString) throws UnsupportedEncodingException, XMLStreamException
xmlString - the Activiti XMLUnsupportedEncodingException - if the encoding wasn't supported.XMLStreamException - if the XML couldn't be streamed.Copyright © 2021. All rights reserved.