public class ActivitiPropertyConverter extends Object
Constructor and Description |
---|
ActivitiPropertyConverter(ActivitiUtil activitiUtil,
WorkflowObjectFactory factory,
WorkflowPropertyHandlerRegistry handlerRegistry,
WorkflowAuthorityManager authorityManager,
MessageService messageService,
WorkflowNodeConverter nodeConverter) |
Modifier and Type | Method and Description |
---|---|
void |
checkMandatoryProperties(org.activiti.engine.delegate.DelegateTask task) |
Map<String,Object> |
convertHistoricDetails(List<org.activiti.engine.history.HistoricDetail> details)
Convert a list of
HistoricDetail to a map with key-value pairs. |
Object |
convertPropertyToValue(Object property)
Performs basic conversion from a property to a
value that can be uses as activiti variable.
|
Serializable |
convertPropertyValue(Object value)
Convert an Activiti variable value to an Alfresco value.
|
Serializable |
convertValueToPropertyType(org.activiti.engine.task.Task task,
Serializable value,
org.alfresco.service.namespace.QName propertyName)
Converts a
Serializable value to the type of the specified property. |
Map<String,Object> |
getHistoricActivityVariables(String activityId)
Get all variable updates for activity, latest updates on top
|
Map<String,Object> |
getHistoricProcessVariables(String processId)
Get all variable updates for process instance, latest updates on top
|
Map<String,Object> |
getHistoricTaskVariables(String taskId)
Get all variable updates for task instance, latest updates on top
|
Map<org.alfresco.service.namespace.QName,Serializable> |
getPathProperties(String executionId) |
List<org.alfresco.service.cmr.repository.NodeRef> |
getPooledActorsReference(Collection<org.activiti.engine.task.IdentityLink> links) |
Map<org.alfresco.service.namespace.QName,Serializable> |
getStartTaskProperties(org.activiti.engine.history.HistoricProcessInstance historicProcessInstance,
String taskDefId,
boolean completed) |
Map<String,Object> |
getStartVariables(org.activiti.engine.history.HistoricProcessInstance historicProcessInstance) |
Map<String,Object> |
getStartVariables(String processDefId,
Map<org.alfresco.service.namespace.QName,Serializable> properties) |
Map<org.alfresco.service.namespace.QName,Serializable> |
getTaskProperties(org.activiti.engine.delegate.DelegateTask task,
org.alfresco.service.cmr.dictionary.TypeDefinition typeDefinition,
boolean localOnly) |
Map<org.alfresco.service.namespace.QName,Serializable> |
getTaskProperties(org.activiti.engine.history.HistoricTaskInstance historicTask,
Map<String,Object> localVariables) |
Map<org.alfresco.service.namespace.QName,Serializable> |
getTaskProperties(org.activiti.engine.task.Task task) |
WorkflowObjectFactory |
getWorkflowObjectFactory() |
void |
setDefaultTaskProperties(org.activiti.engine.delegate.DelegateTask task)
Sets Default Properties of Task
|
void |
setTaskProperties(org.activiti.engine.delegate.DelegateTask task,
Map<org.alfresco.service.namespace.QName,Serializable> properties) |
void |
setTaskProperties(org.activiti.engine.task.Task task,
Map<org.alfresco.service.namespace.QName,Serializable> properties)
Sets the properties on the task, using Activiti API.
|
org.activiti.engine.task.Task |
updateTask(org.activiti.engine.task.Task task,
Map<org.alfresco.service.namespace.QName,Serializable> properties,
Map<org.alfresco.service.namespace.QName,List<org.alfresco.service.cmr.repository.NodeRef>> add,
Map<org.alfresco.service.namespace.QName,List<org.alfresco.service.cmr.repository.NodeRef>> remove) |
public ActivitiPropertyConverter(ActivitiUtil activitiUtil, WorkflowObjectFactory factory, WorkflowPropertyHandlerRegistry handlerRegistry, WorkflowAuthorityManager authorityManager, MessageService messageService, WorkflowNodeConverter nodeConverter)
public Map<org.alfresco.service.namespace.QName,Serializable> getTaskProperties(org.activiti.engine.task.Task task)
public Map<org.alfresco.service.namespace.QName,Serializable> getPathProperties(String executionId)
public List<org.alfresco.service.cmr.repository.NodeRef> getPooledActorsReference(Collection<org.activiti.engine.task.IdentityLink> links)
public Map<org.alfresco.service.namespace.QName,Serializable> getTaskProperties(org.activiti.engine.delegate.DelegateTask task, org.alfresco.service.cmr.dictionary.TypeDefinition typeDefinition, boolean localOnly)
public Map<org.alfresco.service.namespace.QName,Serializable> getTaskProperties(org.activiti.engine.history.HistoricTaskInstance historicTask, Map<String,Object> localVariables)
public void setDefaultTaskProperties(org.activiti.engine.delegate.DelegateTask task)
task
- task instancepublic Map<org.alfresco.service.namespace.QName,Serializable> getStartTaskProperties(org.activiti.engine.history.HistoricProcessInstance historicProcessInstance, String taskDefId, boolean completed)
public Map<String,Object> getStartVariables(org.activiti.engine.history.HistoricProcessInstance historicProcessInstance)
historicProcessInstance
- HistoricProcessInstancepublic Map<String,Object> getHistoricProcessVariables(String processId)
processId
- Stringpublic Map<String,Object> getHistoricTaskVariables(String taskId)
taskId
- Stringpublic Map<String,Object> getHistoricActivityVariables(String activityId)
activityId
- Stringpublic Serializable convertPropertyValue(Object value)
value
- activti valuepublic Object convertPropertyToValue(Object property)
convertValueToPropertyType(Task, Serializable, QName)
property
- the property to be convertedpublic Serializable convertValueToPropertyType(org.activiti.engine.task.Task task, Serializable value, org.alfresco.service.namespace.QName propertyName)
Serializable
value to the type of the specified property.task
- Taskvalue
- SerializablepropertyName
- QNamepublic void setTaskProperties(org.activiti.engine.delegate.DelegateTask task, Map<org.alfresco.service.namespace.QName,Serializable> properties)
public void setTaskProperties(org.activiti.engine.task.Task task, Map<org.alfresco.service.namespace.QName,Serializable> properties)
public Map<String,Object> convertHistoricDetails(List<org.activiti.engine.history.HistoricDetail> details)
HistoricDetail
to a map with key-value pairs.details
- the histroicDetails. Should be a list of HistoricVariableUpdate
s.public Map<String,Object> getStartVariables(String processDefId, Map<org.alfresco.service.namespace.QName,Serializable> properties)
public WorkflowObjectFactory getWorkflowObjectFactory()
public void checkMandatoryProperties(org.activiti.engine.delegate.DelegateTask task)
public org.activiti.engine.task.Task updateTask(org.activiti.engine.task.Task task, Map<org.alfresco.service.namespace.QName,Serializable> properties, Map<org.alfresco.service.namespace.QName,List<org.alfresco.service.cmr.repository.NodeRef>> add, Map<org.alfresco.service.namespace.QName,List<org.alfresco.service.cmr.repository.NodeRef>> remove)
Copyright © 2005–2017 Alfresco Software. All rights reserved.