Class RequestInfoUtils
- java.lang.Object
-
- org.alfresco.workflow.requestInfo.RequestInfoUtils
-
public final class RequestInfoUtils extends Object
Util class for the request info workflow- Since:
- 2.1
- Author:
- Tuna Aksoy
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getInitiator(org.activiti.engine.delegate.DelegateTask delegateTask)
Helper method to extract the initiator from the taskstatic String
getRecordName(org.activiti.engine.delegate.DelegateTask delegateTask)
Helper method to extract the record name from the taskstatic ServiceRegistry
getServiceRegistry()
Helper method to get the service registry in order to call services
-
-
-
Method Detail
-
getServiceRegistry
public static ServiceRegistry getServiceRegistry()
Helper method to get the service registry in order to call services- Returns:
- Returns the service registry
-
getRecordName
public static String getRecordName(org.activiti.engine.delegate.DelegateTask delegateTask)
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
public static String getInitiator(org.activiti.engine.delegate.DelegateTask delegateTask)
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.
-
-