public class DelegateHelper extends Object
JavaDelegate
,
ActivityBehavior
, ExecutionListener
and TaskListener
interfaces.Constructor and Description |
---|
DelegateHelper() |
Modifier and Type | Method and Description |
---|---|
static Expression |
createExpressionForField(org.activiti.bpmn.model.FieldExtension fieldExtension)
Creates an
Expression for the FieldExtension . |
static org.activiti.bpmn.model.BpmnModel |
getBpmnModel(DelegateExecution execution)
Returns the
BpmnModel matching the process definition bpmn model
for the process definition of the passed DelegateExecution . |
static Map<String,List<org.activiti.bpmn.model.ExtensionElement>> |
getExtensionElements(DelegateExecution execution)
|
static org.activiti.bpmn.model.FieldExtension |
getField(DelegateExecution execution,
String fieldName)
Returns the
FieldExtension matching the provided 'fieldName' which is
defined for the current activity of the provided DelegateExecution . |
static Expression |
getFieldExpression(DelegateExecution execution,
String fieldName)
Returns the
Expression for the field defined for the current activity
of the provided DelegateExecution . |
static List<org.activiti.bpmn.model.FieldExtension> |
getFields(DelegateExecution execution)
Returns the list of field extensions, represented as instances of
FieldExtension ,
for the current activity of the passed DelegateExecution . |
static org.activiti.bpmn.model.FlowElement |
getFlowElement(DelegateExecution execution)
Returns the current
FlowElement where the DelegateExecution is currently at. |
public static org.activiti.bpmn.model.BpmnModel getBpmnModel(DelegateExecution execution)
BpmnModel
matching the process definition bpmn model
for the process definition of the passed DelegateExecution
.public static org.activiti.bpmn.model.FlowElement getFlowElement(DelegateExecution execution)
FlowElement
where the DelegateExecution
is currently at.public static Map<String,List<org.activiti.bpmn.model.ExtensionElement>> getExtensionElements(DelegateExecution execution)
DelegateExecution
the
Map
of ExtensionElement
instances. These represent the
extension elements defined in the BPMN 2.0 XML as part of that particular
activity.public static List<org.activiti.bpmn.model.FieldExtension> getFields(DelegateExecution execution)
FieldExtension
,
for the current activity of the passed DelegateExecution
.public static org.activiti.bpmn.model.FieldExtension getField(DelegateExecution execution, String fieldName)
FieldExtension
matching the provided 'fieldName' which is
defined for the current activity of the provided DelegateExecution
.
Returns null if no such FieldExtension
can be found.public static Expression createExpressionForField(org.activiti.bpmn.model.FieldExtension fieldExtension)
Expression
for the FieldExtension
.public static Expression getFieldExpression(DelegateExecution execution, String fieldName)
Expression
for the field defined for the current activity
of the provided DelegateExecution
.
Returns null if no such field was found in the process definition xml.Copyright © 2016 Alfresco. All rights reserved.