Class RequestInfoUtils


  • public final class RequestInfoUtils
    extends Object
    Util class for the request info workflow
    Since:
    2.1
    Author:
    Tuna Aksoy
    • Method Detail

      • getServiceRegistry

        public static org.alfresco.service.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.