Class RequestInfoUtils
java.lang.Object
org.alfresco.workflow.requestInfo.RequestInfoUtils
Util class for the request info workflow
- Since:
- 2.1
- Author:
- Tuna Aksoy
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetInitiator(org.activiti.engine.delegate.DelegateTask delegateTask) Helper method to extract the initiator from the taskstatic StringgetRecordName(org.activiti.engine.delegate.DelegateTask delegateTask) Helper method to extract the record name from the taskstatic ServiceRegistryHelper method to get the service registry in order to call services
-
Method Details
-
getServiceRegistry
Helper method to get the service registry in order to call services- Returns:
- Returns the service registry
-
getRecordName
Helper method to extract the record name from the task- Parameters:
delegateTask- The delegate task- Returns:
- Returns the name of the record or an empty string if the record name could not be found (may be because the record has been deleted in the mean time)
-
getInitiator
Helper method to extract the initiator from the task- Parameters:
delegateTask- The delegate task- Returns:
- Returns the initiator of the workflow. First it will be checked if a rule creator exists, which means the the workflow was started via rule. In this case the creator of the rule will receive the review task. If a rule creator cannot be found the code will try to find the initiator of the workflow. If also this is not the case the admin user will be returned.
-