Class WorkflowInterpreter

  • All Implemented Interfaces:
    java.util.EventListener, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener

    public class WorkflowInterpreter
    extends BaseInterpreter
    An interactive console for Workflows.
    Author:
    davidc
    • Constructor Detail

      • WorkflowInterpreter

        public WorkflowInterpreter()
    • Method Detail

      • onBootstrap

        protected void onBootstrap​(org.springframework.context.ApplicationEvent event)
        Overrides:
        onBootstrap in class BaseInterpreter
      • onShutdown

        protected void onShutdown​(org.springframework.context.ApplicationEvent event)
        Overrides:
        onShutdown in class BaseInterpreter
      • setWorkflowService

        public void setWorkflowService​(WorkflowService workflowService)
        Parameters:
        workflowService - The Workflow Service
      • setNodeService

        public void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)
        Parameters:
        nodeService - The Node Service
      • setTenantService

        public void setTenantService​(org.alfresco.repo.tenant.TenantService tenantService)
        Parameters:
        tenantService - The Tenant Service
      • setDictionaryService

        public void setDictionaryService​(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
        Parameters:
        dictionaryService - dictionaryService
      • setNamespaceService

        public void setNamespaceService​(org.alfresco.service.namespace.NamespaceService namespaceService)
        Parameters:
        namespaceService - namespaceService
      • setPersonService

        public void setPersonService​(PersonService personService)
        Parameters:
        personService - personService
      • setAuthorityDAO

        public void setAuthorityDAO​(AuthorityDAO authorityDAO)
        Parameters:
        authorityDAO - authorityDAO
      • setFileFolderService

        public void setFileFolderService​(FileFolderService fileFolderService)
        Parameters:
        fileFolderService - fileFolderService
      • main

        public static void main​(java.lang.String[] args)
        Main entry point.
      • executeCommand

        protected java.lang.String executeCommand​(java.lang.String line)
                                           throws java.io.IOException
        Execute a single command using the BufferedReader passed in for any data needed. TODO: Use decent parser!
        Specified by:
        executeCommand in class BaseInterpreter
        Parameters:
        line - The unparsed command
        Returns:
        The textual output of the command.
        Throws:
        java.io.IOException
      • getCurrentWorkflowDef

        public WorkflowDefinition getCurrentWorkflowDef()
        Get currently used workflow definition
        Returns:
        workflow definition