Class BpmEngineBean

  • All Implemented Interfaces:
    es.caib.bpm.servei.ejb.BpmEngine, Serializable, javax.ejb.EnterpriseBean, javax.ejb.SessionBean, org.springframework.ejb.support.SmartSessionBean

    public class BpmEngineBean
    extends org.springframework.ejb.support.AbstractStatelessSessionBean
    implements es.caib.bpm.servei.ejb.BpmEngine
    See Also:
    es.caib.bpm.servei.BpmEngine,, es.caib.bpm.servei.BpmEngine,, Serialized Form
    • Constructor Detail

      • BpmEngineBean

        public BpmEngineBean()
    • Method Detail

      • canAdmin

        @PermitAll
        public boolean canAdmin​(es.caib.bpm.vo.ProcessInstance instanceVO)
                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                es.caib.seycon.ng.exception.InternalErrorException,
                                es.caib.bpm.exception.BPMException
        Specified by:
        canAdmin in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • isUserInRole

        @PermitAll
        public boolean isUserInRole​(String role)
                             throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        isUserInRole in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getProcessDefinitionIcon

        @PermitAll
        public byte[] getProcessDefinitionIcon​(Long definitionId)
                                        throws es.caib.seycon.ng.exception.InternalErrorException,
                                               es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getProcessDefinitionIcon in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getProcessDefinitionImage

        @PermitAll
        public byte[] getProcessDefinitionImage​(es.caib.bpm.vo.ProcessDefinition def)
                                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                                es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getProcessDefinitionImage in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findProcessDefinitionByTextAndJsonQuery

        @PermitAll
        public com.soffid.iam.api.PagedResult<es.caib.bpm.vo.ProcessDefinition> findProcessDefinitionByTextAndJsonQuery​(String text,
                                                                                                                        String jsonQuery,
                                                                                                                        Integer start,
                                                                                                                        Integer pageSize)
                                                                                                                 throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findProcessDefinitionByTextAndJsonQuery in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findProcessInstanceByTextAndJsonQuery

        @PermitAll
        public com.soffid.iam.api.PagedResult<es.caib.bpm.vo.ProcessInstance> findProcessInstanceByTextAndJsonQuery​(String text,
                                                                                                                    String jsonQuery,
                                                                                                                    Integer start,
                                                                                                                    Integer pageSize)
                                                                                                             throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findProcessInstanceByTextAndJsonQuery in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findTasksByTextAndJsonQuery

        @PermitAll
        public com.soffid.iam.api.PagedResult<es.caib.bpm.vo.TaskInstance> findTasksByTextAndJsonQuery​(String text,
                                                                                                       String jsonQuery,
                                                                                                       Integer start,
                                                                                                       Integer pageSize)
                                                                                                throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findTasksByTextAndJsonQuery in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • disableProcessDefinition

        @PermitAll
        public es.caib.bpm.vo.ProcessDefinition disableProcessDefinition​(es.caib.bpm.vo.ProcessDefinition defVO)
                                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                         es.caib.seycon.ng.exception.InternalErrorException,
                                                                         es.caib.bpm.exception.BPMException
        Specified by:
        disableProcessDefinition in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • enableProcessDefinition

        @PermitAll
        public es.caib.bpm.vo.ProcessDefinition enableProcessDefinition​(es.caib.bpm.vo.ProcessDefinition defVO)
                                                                 throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                        es.caib.seycon.ng.exception.InternalErrorException,
                                                                        es.caib.bpm.exception.BPMException
        Specified by:
        enableProcessDefinition in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • getDefinition

        @PermitAll
        public es.caib.bpm.vo.ProcessDefinition getDefinition​(es.caib.bpm.vo.ProcessInstance process)
                                                       throws es.caib.seycon.ng.exception.InternalErrorException,
                                                              es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getDefinition in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getProcessDefinition

        @PermitAll
        public es.caib.bpm.vo.ProcessDefinition getProcessDefinition​(es.caib.bpm.vo.ProcessInstance process)
                                                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                     es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getProcessDefinition in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • cancel

        @PermitAll
        public es.caib.bpm.vo.ProcessInstance cancel​(es.caib.bpm.vo.ProcessInstance process)
                                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                                     es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        cancel in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getProcess

        @PermitAll
        public es.caib.bpm.vo.ProcessInstance getProcess​(long id)
                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                         es.caib.seycon.ng.exception.InternalErrorException,
                                                         es.caib.bpm.exception.BPMException
        Specified by:
        getProcess in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • getProcessInstance

        @PermitAll
        public es.caib.bpm.vo.ProcessInstance getProcessInstance​(es.caib.bpm.vo.TaskInstance task)
                                                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                 es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getProcessInstance in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getProcessLightweight

        @PermitAll
        public es.caib.bpm.vo.ProcessInstance getProcessLightweight​(long id)
                                                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                    es.caib.seycon.ng.exception.InternalErrorException,
                                                                    es.caib.bpm.exception.BPMException
        Specified by:
        getProcessLightweight in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • newProcess

        @PermitAll
        public es.caib.bpm.vo.ProcessInstance newProcess​(es.caib.bpm.vo.ProcessDefinition def)
                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                         es.caib.seycon.ng.exception.InternalErrorException,
                                                         es.caib.bpm.exception.BPMException
        Specified by:
        newProcess in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • newProcess

        @PermitAll
        public es.caib.bpm.vo.ProcessInstance newProcess​(es.caib.bpm.vo.ProcessDefinition def,
                                                         boolean start)
                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                         es.caib.seycon.ng.exception.InternalErrorException,
                                                         es.caib.bpm.exception.BPMException
        Specified by:
        newProcess in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • getProcessLog

        @PermitAll
        public es.caib.bpm.vo.ProcessLog[] getProcessLog​(es.caib.bpm.vo.ProcessInstance process)
                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                         es.caib.seycon.ng.exception.InternalErrorException,
                                                         es.caib.bpm.exception.BPMException
        Specified by:
        getProcessLog in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • getTaskLog

        @PermitAll
        public es.caib.bpm.vo.ProcessLog[] getTaskLog​(es.caib.bpm.vo.TaskInstance process)
                                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                                      es.caib.seycon.ng.exception.InternalErrorException,
                                                      es.caib.bpm.exception.BPMException
        Specified by:
        getTaskLog in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • getDefinition

        @PermitAll
        public es.caib.bpm.vo.TaskDefinition getDefinition​(es.caib.bpm.vo.TaskInstance task)
                                                    throws es.caib.seycon.ng.exception.InternalErrorException,
                                                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getDefinition in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • addComment

        @PermitAll
        public es.caib.bpm.vo.TaskInstance addComment​(es.caib.bpm.vo.TaskInstance task,
                                                      String comment)
                                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                                      es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        addComment in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • cancel

        @PermitAll
        public es.caib.bpm.vo.TaskInstance cancel​(es.caib.bpm.vo.TaskInstance task)
                                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                                  es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        cancel in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • createDummyTask

        @PermitAll
        public es.caib.bpm.vo.TaskInstance createDummyTask​(long processDefinitionId)
                                                    throws es.caib.seycon.ng.exception.InternalErrorException,
                                                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        createDummyTask in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • delegateTaskToUser

        @PermitAll
        public es.caib.bpm.vo.TaskInstance delegateTaskToUser​(es.caib.bpm.vo.TaskInstance task,
                                                              String username)
                                                       throws es.caib.seycon.ng.exception.InternalErrorException,
                                                              es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        delegateTaskToUser in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • executeTask

        @PermitAll
        public es.caib.bpm.vo.TaskInstance executeTask​(es.caib.bpm.vo.TaskInstance task,
                                                       String transitionName)
                                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                                       es.caib.seycon.ng.exception.InternalErrorException,
                                                       es.caib.bpm.exception.BPMException
        Specified by:
        executeTask in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • getTask

        @PermitAll
        public es.caib.bpm.vo.TaskInstance getTask​(long id)
                                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                                   es.caib.seycon.ng.exception.InternalErrorException,
                                                   es.caib.bpm.exception.BPMException
        Specified by:
        getTask in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • reserveTask

        @PermitAll
        public es.caib.bpm.vo.TaskInstance reserveTask​(es.caib.bpm.vo.TaskInstance task)
                                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                                       es.caib.seycon.ng.exception.InternalErrorException,
                                                       es.caib.bpm.exception.BPMException
        Specified by:
        reserveTask in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • startTask

        @PermitAll
        public es.caib.bpm.vo.TaskInstance startTask​(es.caib.bpm.vo.TaskInstance task)
                                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                                     es.caib.seycon.ng.exception.InternalErrorException,
                                                     es.caib.bpm.exception.BPMException
        Specified by:
        startTask in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • update

        @PermitAll
        public es.caib.bpm.vo.TaskInstance update​(es.caib.bpm.vo.TaskInstance task)
                                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                                  es.caib.seycon.ng.exception.InternalErrorException,
                                                  es.caib.bpm.exception.BPMException
        Specified by:
        update in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • getTokens

        @PermitAll
        public es.caib.bpm.vo.Token[] getTokens​(long id)
                                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                                es.caib.seycon.ng.exception.InternalErrorException,
                                                es.caib.bpm.exception.BPMException
        Specified by:
        getTokens in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • countMyTasks

        @PermitAll
        public int countMyTasks()
                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                es.caib.seycon.ng.exception.InternalErrorException,
                                es.caib.bpm.exception.BPMException
        Specified by:
        countMyTasks in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • countNewTasks

        @PermitAll
        public int countNewTasks()
                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                 es.caib.seycon.ng.exception.InternalErrorException,
                                 es.caib.bpm.exception.BPMException
        Specified by:
        countNewTasks in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • getCoordinates

        @PermitAll
        public int[] getCoordinates​(es.caib.bpm.vo.ProcessInstance task)
                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                    es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getCoordinates in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getCoordinates

        @PermitAll
        public int[] getCoordinates​(es.caib.bpm.vo.TaskInstance task)
                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                    es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getCoordinates in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getResourceAsStream

        @PermitAll
        public InputStream getResourceAsStream​(es.caib.bpm.vo.ProcessDefinition processdef,
                                               String resource)
                                        throws es.caib.seycon.ng.exception.InternalErrorException,
                                               es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getResourceAsStream in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getResourceAsStream

        @PermitAll
        public InputStream getResourceAsStream​(es.caib.bpm.vo.ProcessInstance process,
                                               String resource)
                                        throws es.caib.seycon.ng.exception.InternalErrorException,
                                               es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getResourceAsStream in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getUI

        @PermitAll
        public String getUI​(es.caib.bpm.vo.ProcessInstance process)
                     throws es.caib.seycon.ng.exception.InternalErrorException,
                            es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getUI in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getUI

        @PermitAll
        public String getUI​(es.caib.bpm.vo.TaskInstance task)
                     throws es.caib.seycon.ng.exception.InternalErrorException,
                            es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getUI in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getDeployMessages

        @PermitAll
        public String[] getDeployMessages()
                                   throws es.caib.seycon.ng.exception.InternalErrorException,
                                          es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getDeployMessages in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findChildProcesses

        @PermitAll
        public Collection<Long> findChildProcesses​(Long processId)
                                            throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findChildProcesses in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findParentProceeses

        @PermitAll
        public Collection<Long> findParentProceeses​(Long processId)
                                             throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findParentProceeses in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findUsers

        @PermitAll
        public Collection<es.caib.bpm.vo.BPMUser> findUsers​(String userName,
                                                            String givenName,
                                                            String surName,
                                                            String group)
                                                     throws es.caib.seycon.ng.exception.InternalErrorException,
                                                            es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUsers in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findAllProcessDefinitions

        @PermitAll
        public List<es.caib.bpm.vo.ProcessDefinition> findAllProcessDefinitions​(boolean onlyEnabled)
                                                                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAllProcessDefinitions in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findGroupTasks

        @PermitAll
        public List<es.caib.bpm.vo.TaskInstance> findGroupTasks()
                                                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                es.caib.seycon.ng.exception.InternalErrorException,
                                                                es.caib.bpm.exception.BPMException
        Specified by:
        findGroupTasks in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • findInitiatorProcessDefinitions

        @PermitAll
        public List<es.caib.bpm.vo.ProcessDefinition> findInitiatorProcessDefinitions()
                                                                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                      es.caib.seycon.ng.exception.InternalErrorException,
                                                                                      es.caib.bpm.exception.BPMException
        Specified by:
        findInitiatorProcessDefinitions in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • findMyProcesses

        @PermitAll
        public List<es.caib.bpm.vo.ProcessInstance> findMyProcesses()
                                                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                    es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findMyProcesses in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findMyTasks

        @PermitAll
        public List<es.caib.bpm.vo.TaskInstance> findMyTasks()
                                                      throws es.caib.seycon.ng.exception.InternalErrorException,
                                                             es.caib.seycon.ng.exception.InternalErrorException,
                                                             es.caib.bpm.exception.BPMException
        Specified by:
        findMyTasks in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • findMyTasksLightweight

        @PermitAll
        public List<es.caib.bpm.vo.TaskInstance> findMyTasksLightweight()
                                                                 throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                        es.caib.seycon.ng.exception.InternalErrorException,
                                                                        es.caib.bpm.exception.BPMException
        Specified by:
        findMyTasksLightweight in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • findObserverProcessDefinitions

        @PermitAll
        public List<es.caib.bpm.vo.ProcessDefinition> findObserverProcessDefinitions()
                                                                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                     es.caib.seycon.ng.exception.InternalErrorException,
                                                                                     es.caib.bpm.exception.BPMException
        Specified by:
        findObserverProcessDefinitions in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • findProcessDefinitions

        @PermitAll
        public List<es.caib.bpm.vo.ProcessDefinition> findProcessDefinitions​(String name,
                                                                             boolean onlyEnabled)
                                                                      throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                             es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findProcessDefinitions in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findProcessDefinitions

        @PermitAll
        public List<es.caib.bpm.vo.ProcessDefinition> findProcessDefinitions​(String name,
                                                                             es.caib.bpm.vo.PredefinedProcessType processType)
                                                                      throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                             es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findProcessDefinitions in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findProcessInstances

        @PermitAll
        public List<es.caib.bpm.vo.ProcessInstance> findProcessInstances​(es.caib.bpm.vo.ProcessDefinition def)
                                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                         es.caib.seycon.ng.exception.InternalErrorException,
                                                                         es.caib.bpm.exception.BPMException
        Specified by:
        findProcessInstances in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • findProcessInstances

        @PermitAll
        public List<es.caib.bpm.vo.ProcessInstance> findProcessInstances​(List definitions,
                                                                         String processId,
                                                                         String estado,
                                                                         String actor,
                                                                         Date startDate,
                                                                         boolean finalizada)
                                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                         es.caib.seycon.ng.exception.InternalErrorException,
                                                                         es.caib.bpm.exception.BPMException
        Specified by:
        findProcessInstances in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • findSupervisorProcessDefinitions

        @PermitAll
        public List<es.caib.bpm.vo.ProcessDefinition> findSupervisorProcessDefinitions()
                                                                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                       es.caib.seycon.ng.exception.InternalErrorException,
                                                                                       es.caib.bpm.exception.BPMException
        Specified by:
        findSupervisorProcessDefinitions in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • findTaskDefinitions

        @PermitAll
        public List<es.caib.bpm.vo.TaskDefinition> findTaskDefinitions​(es.caib.bpm.vo.ProcessDefinition def)
                                                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                       es.caib.seycon.ng.exception.InternalErrorException,
                                                                       es.caib.bpm.exception.BPMException
        Specified by:
        findTaskDefinitions in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • findTasks

        @PermitAll
        public List<es.caib.bpm.vo.TaskInstance> findTasks​(List<es.caib.bpm.vo.ProcessInstance> def,
                                                           es.caib.bpm.vo.TaskDefinition task,
                                                           String actor,
                                                           Date processStartDate,
                                                           Date taskCreationDate,
                                                           boolean finalizada)
                                                    throws es.caib.seycon.ng.exception.InternalErrorException,
                                                           es.caib.seycon.ng.exception.InternalErrorException,
                                                           es.caib.bpm.exception.BPMException
        Specified by:
        findTasks in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • findTasks

        @PermitAll
        public List<es.caib.bpm.vo.TaskInstance> findTasks​(List<es.caib.bpm.vo.ProcessInstance> def,
                                                           String process,
                                                           es.caib.bpm.vo.TaskDefinition task,
                                                           String actor,
                                                           Date processStartDate,
                                                           Date taskCreationDate,
                                                           boolean finalizada)
                                                    throws es.caib.seycon.ng.exception.InternalErrorException,
                                                           es.caib.seycon.ng.exception.InternalErrorException,
                                                           es.caib.bpm.exception.BPMException
        Specified by:
        findTasks in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • getActiveJobs

        @PermitAll
        public List<es.caib.bpm.vo.Job> getActiveJobs()
                                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                                      es.caib.seycon.ng.exception.InternalErrorException,
                                                      es.caib.bpm.exception.BPMException
        Specified by:
        getActiveJobs in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • getActiveJobs

        @PermitAll
        public List<es.caib.bpm.vo.Job> getActiveJobs​(es.caib.bpm.vo.ProcessInstance process)
                                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                                      es.caib.seycon.ng.exception.InternalErrorException,
                                                      es.caib.bpm.exception.BPMException
        Specified by:
        getActiveJobs in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • getActiveTasks

        @PermitAll
        public List<es.caib.bpm.vo.TaskInstance> getActiveTasks​(es.caib.bpm.vo.ProcessInstance process)
                                                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                es.caib.seycon.ng.exception.InternalErrorException,
                                                                es.caib.bpm.exception.BPMException
        Specified by:
        getActiveTasks in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • getAllJobs

        @PermitAll
        public List<es.caib.bpm.vo.Job> getAllJobs()
                                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                                   es.caib.seycon.ng.exception.InternalErrorException,
                                                   es.caib.bpm.exception.BPMException
        Specified by:
        getAllJobs in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • getPendingTasks

        @PermitAll
        public List<es.caib.bpm.vo.TaskInstance> getPendingTasks​(es.caib.bpm.vo.ProcessInstance process)
                                                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                 es.caib.seycon.ng.exception.InternalErrorException,
                                                                 es.caib.bpm.exception.BPMException
        Specified by:
        getPendingTasks in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • searchProcessInstances

        @PermitAll
        public List<es.caib.bpm.vo.ProcessInstance> searchProcessInstances​(String query,
                                                                           String processID,
                                                                           Date sinceStartDate,
                                                                           Date untilStartDate,
                                                                           Date sinceEndDate,
                                                                           Date untilEndDate,
                                                                           boolean finished)
                                                                    throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                           es.caib.seycon.ng.exception.InternalErrorException,
                                                                           es.caib.bpm.exception.BPMException
        Specified by:
        searchProcessInstances in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • getConfiguration

        @PermitAll
        public Map<String,​String> getConfiguration()
                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                         es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getConfiguration in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getUIClassesForTask

        @PermitAll
        public Map getUIClassesForTask​(es.caib.bpm.vo.ProcessDefinition def)
                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                       es.caib.seycon.ng.exception.InternalErrorException,
                                       SQLException,
                                       IOException
        Specified by:
        getUIClassesForTask in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        SQLException
        IOException
      • getJBpmConfiguration

        @PermitAll
        public org.jbpm.JbpmConfiguration getJBpmConfiguration()
                                                        throws es.caib.seycon.ng.exception.InternalErrorException,
                                                               es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getJBpmConfiguration in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getContext

        @PermitAll
        public org.jbpm.JbpmContext getContext()
                                        throws es.caib.seycon.ng.exception.InternalErrorException,
                                               es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getContext in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • addComment

        @PermitAll
        public void addComment​(es.caib.bpm.vo.ProcessInstance process,
                               String comment)
                        throws es.caib.seycon.ng.exception.InternalErrorException,
                               es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        addComment in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • changeConfiguration

        @PermitAll
        public void changeConfiguration​(Map<String,​String> m)
                                 throws es.caib.seycon.ng.exception.InternalErrorException,
                                        es.caib.seycon.ng.exception.InternalErrorException,
                                        IOException
        Specified by:
        changeConfiguration in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        IOException
      • endDeployParDefinitionTransfer

        @PermitAll
        public void endDeployParDefinitionTransfer()
                                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                                   es.caib.seycon.ng.exception.InternalErrorException,
                                                   es.caib.bpm.exception.BPMException
        Specified by:
        endDeployParDefinitionTransfer in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • linkProcesses

        @PermitAll
        public void linkProcesses​(Long parentProcess,
                                  Long childProcess)
                           throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        linkProcesses in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • nextDeployParDefinitionPackage

        @PermitAll
        public void nextDeployParDefinitionPackage​(byte[] filePackage,
                                                   int length)
                                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                                   es.caib.seycon.ng.exception.InternalErrorException,
                                                   es.caib.bpm.exception.BPMException
        Specified by:
        nextDeployParDefinitionPackage in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • openDeployParDefinitionTransfer

        @PermitAll
        public void openDeployParDefinitionTransfer()
                                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                                    es.caib.seycon.ng.exception.InternalErrorException,
                                                    es.caib.bpm.exception.BPMException
        Specified by:
        openDeployParDefinitionTransfer in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • pauseJob

        @PermitAll
        public void pauseJob​(es.caib.bpm.vo.Job jobvo)
                      throws es.caib.seycon.ng.exception.InternalErrorException,
                             es.caib.seycon.ng.exception.InternalErrorException,
                             es.caib.bpm.exception.BPMException
        Specified by:
        pauseJob in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • ping

        @PermitAll
        public void ping()
                  throws es.caib.seycon.ng.exception.InternalErrorException,
                         es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        ping in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • reindex

        @PermitAll
        public void reindex()
                     throws es.caib.seycon.ng.exception.InternalErrorException,
                            es.caib.seycon.ng.exception.InternalErrorException,
                            IOException
        Specified by:
        reindex in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        IOException
      • resumeJob

        @PermitAll
        public void resumeJob​(es.caib.bpm.vo.Job jobvo)
                       throws es.caib.seycon.ng.exception.InternalErrorException,
                              es.caib.seycon.ng.exception.InternalErrorException,
                              es.caib.bpm.exception.BPMException
        Specified by:
        resumeJob in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • retryJob

        @PermitAll
        public void retryJob​(es.caib.bpm.vo.Job jobvo)
                      throws es.caib.seycon.ng.exception.InternalErrorException,
                             es.caib.seycon.ng.exception.InternalErrorException,
                             es.caib.bpm.exception.BPMException
        Specified by:
        retryJob in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • signal

        @PermitAll
        public void signal​(es.caib.bpm.vo.ProcessInstance instanceVO)
                    throws es.caib.seycon.ng.exception.InternalErrorException,
                           es.caib.seycon.ng.exception.InternalErrorException,
                           es.caib.bpm.exception.BPMException
        Specified by:
        signal in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • signal

        @PermitAll
        public void signal​(es.caib.bpm.vo.ProcessInstance instanceVO,
                           String transitionName)
                    throws es.caib.seycon.ng.exception.InternalErrorException,
                           es.caib.seycon.ng.exception.InternalErrorException,
                           es.caib.bpm.exception.BPMException
        Specified by:
        signal in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • startProcess

        @PermitAll
        public void startProcess​(es.caib.bpm.vo.ProcessInstance process)
                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                 es.caib.seycon.ng.exception.InternalErrorException,
                                 es.caib.bpm.exception.BPMException
        Specified by:
        startProcess in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • update

        @PermitAll
        public void update​(es.caib.bpm.vo.ProcessInstance process)
                    throws es.caib.seycon.ng.exception.InternalErrorException,
                           es.caib.seycon.ng.exception.InternalErrorException,
                           es.caib.bpm.exception.BPMException
        Specified by:
        update in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • updateSwimlane

        @PermitAll
        public void updateSwimlane​(es.caib.bpm.vo.TaskInstance task,
                                   String swimlane,
                                   String[] actorIds)
                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                   es.caib.seycon.ng.exception.InternalErrorException,
                                   es.caib.bpm.exception.BPMException
        Specified by:
        updateSwimlane in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • upgradeParFile

        @PermitAll
        public void upgradeParFile​(InputStream stream)
                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                   es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        upgradeParFile in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • upgradeProcess

        @PermitAll
        public void upgradeProcess​(es.caib.bpm.vo.ProcessInstance instanceVO)
                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                   es.caib.seycon.ng.exception.InternalErrorException,
                                   es.caib.bpm.exception.BPMException
        Specified by:
        upgradeProcess in interface es.caib.bpm.servei.ejb.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • ejbCreate

        @PostConstruct
        public void ejbCreate()
                       throws javax.ejb.CreateException
        Initizlizes been
        Overrides:
        ejbCreate in class org.springframework.ejb.support.AbstractStatelessSessionBean
        Throws:
        javax.ejb.CreateException
        See Also:
        AbstractStatelessSessionBean.onEjbCreate()
      • onEjbCreate

        protected void onEjbCreate()
        Specified by:
        onEjbCreate in class org.springframework.ejb.support.AbstractStatelessSessionBean
      • setSessionContext

        public void setSessionContext​(javax.ejb.SessionContext sessionContext)
        Override default BeanFactoryLocator implementation to provide singleton loading of the application context Bean factory.
        Specified by:
        setSessionContext in interface javax.ejb.SessionBean
        See Also:
        SessionBean.setSessionContext(javax.ejb.SessionContext)
      • getSessionContext

        public final javax.ejb.SessionContext getSessionContext()
        Specified by:
        getSessionContext in interface org.springframework.ejb.support.SmartSessionBean
      • setBeanFactoryLocator

        public void setBeanFactoryLocator​(org.springframework.beans.factory.access.BeanFactoryLocator arg0)
      • setBeanFactoryLocatorKey

        public void setBeanFactoryLocatorKey​(String arg0)
      • getBeanFactory

        protected org.springframework.beans.factory.BeanFactory getBeanFactory()
      • ejbRemove

        public void ejbRemove()
      • onEjbRemove

        protected void onEjbRemove()