Class BpmEngineBase

  • All Implemented Interfaces:
    com.soffid.iam.bpm.service.BpmEngine
    Direct Known Subclasses:
    BpmEngineImpl

    public abstract class BpmEngineBase
    extends Object
    implements com.soffid.iam.bpm.service.BpmEngine

    Spring Service base class for com.soffid.iam.bpm.service.BpmEngine, provides access to all services and entities referenced by this service.

    see com.soffid.iam.bpm.service.BpmEngine
    • Constructor Detail

      • BpmEngineBase

        public BpmEngineBase()
    • Method Detail

      • setApplicationService

        public void setApplicationService​(com.soffid.iam.service.ApplicationService aplicacioService)
        Sets reference to aplicacioService.
      • getApplicationService

        public com.soffid.iam.service.ApplicationService getApplicationService()
        Gets reference to aplicacioService.
      • setAuditEntityDao

        public void setAuditEntityDao​(AuditEntityDao auditoriaEntityDao)
        Sets reference to auditoriaEntityDao.
      • getAuditEntityDao

        public AuditEntityDao getAuditEntityDao()
        Gets reference to auditoriaEntityDao.
      • setBpmConfigService

        public void setBpmConfigService​(com.soffid.iam.bpm.service.BpmConfigService bpmConfigService)
        Sets reference to bpmConfigService.
      • getBpmConfigService

        public com.soffid.iam.bpm.service.BpmConfigService getBpmConfigService()
        Gets reference to bpmConfigService.
      • setSystemEntityDao

        public void setSystemEntityDao​(SystemEntityDao dispatcherEntityDao)
        Sets reference to dispatcherEntityDao.
      • getSystemEntityDao

        public SystemEntityDao getSystemEntityDao()
        Gets reference to dispatcherEntityDao.
      • setLuceneIndexService

        public void setLuceneIndexService​(LuceneIndexService luceneIndexService)
        Sets reference to luceneIndexService.
      • getLuceneIndexService

        public LuceneIndexService getLuceneIndexService()
        Gets reference to luceneIndexService.
      • setProcessHierarchyEntityDao

        public void setProcessHierarchyEntityDao​(ProcessHierarchyEntityDao processHierarchyEntityDao)
        Sets reference to processHierarchyEntityDao.
      • getProcessHierarchyEntityDao

        public ProcessHierarchyEntityDao getProcessHierarchyEntityDao()
        Gets reference to processHierarchyEntityDao.
      • setSessionCacheService

        public void setSessionCacheService​(com.soffid.iam.service.SessionCacheService sessionCacheService)
        Sets reference to sessionCacheService.
      • getSessionCacheService

        public com.soffid.iam.service.SessionCacheService getSessionCacheService()
        Gets reference to sessionCacheService.
      • setUserEntityDao

        public void setUserEntityDao​(UserEntityDao usuariEntityDao)
        Sets reference to usuariEntityDao.
      • getUserEntityDao

        public UserEntityDao getUserEntityDao()
        Gets reference to usuariEntityDao.
      • setUserService

        public void setUserService​(com.soffid.iam.service.UserService usuariService)
        Sets reference to usuariService.
      • getUserService

        public com.soffid.iam.service.UserService getUserService()
        Gets reference to usuariService.
      • canAdmin

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public boolean canAdmin​(com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleCanAdmin

        protected abstract boolean handleCanAdmin​(com.soffid.iam.bpm.api.ProcessInstance instanceVO)
                                           throws Exception
        Throws:
        Exception
      • isUserInRole

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class,
                       readOnly=true)
        public boolean isUserInRole​(String role)
                             throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        isUserInRole in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleIsUserInRole

        protected abstract boolean handleIsUserInRole​(String role)
                                               throws Exception
        Throws:
        Exception
      • getProcessDefinitionIcon

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public byte[] getProcessDefinitionIcon​(Long definitionId)
                                        throws es.caib.seycon.ng.exception.InternalErrorException,
                                               es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getProcessDefinitionIcon in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetProcessDefinitionIcon

        protected abstract byte[] handleGetProcessDefinitionIcon​(Long definitionId)
                                                          throws Exception
        Throws:
        Exception
      • getProcessDefinitionImage

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public byte[] getProcessDefinitionImage​(com.soffid.iam.bpm.api.ProcessDefinition def)
                                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                                es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getProcessDefinitionImage in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetProcessDefinitionImage

        protected abstract byte[] handleGetProcessDefinitionImage​(com.soffid.iam.bpm.api.ProcessDefinition def)
                                                           throws Exception
        Throws:
        Exception
      • findProcessDefinitionByTextAndJsonQuery

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PagedResult<com.soffid.iam.bpm.api.ProcessDefinition> findProcessDefinitionByTextAndJsonQuery​(String text,
                                                                                                                                String jsonQuery,
                                                                                                                                Integer start,
                                                                                                                                Integer pageSize)
                                                                                                                         throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findProcessDefinitionByTextAndJsonQuery in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindProcessDefinitionByTextAndJsonQuery

        protected abstract com.soffid.iam.api.PagedResult<com.soffid.iam.bpm.api.ProcessDefinition> handleFindProcessDefinitionByTextAndJsonQuery​(String text,
                                                                                                                                                  String jsonQuery,
                                                                                                                                                  Integer start,
                                                                                                                                                  Integer pageSize)
                                                                                                                                           throws Exception
        Throws:
        Exception
      • findProcessInstanceByTextAndJsonQuery

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PagedResult<com.soffid.iam.bpm.api.ProcessInstance> findProcessInstanceByTextAndJsonQuery​(String text,
                                                                                                                            String jsonQuery,
                                                                                                                            Integer start,
                                                                                                                            Integer pageSize)
                                                                                                                     throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findProcessInstanceByTextAndJsonQuery in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindProcessInstanceByTextAndJsonQuery

        protected abstract com.soffid.iam.api.PagedResult<com.soffid.iam.bpm.api.ProcessInstance> handleFindProcessInstanceByTextAndJsonQuery​(String text,
                                                                                                                                              String jsonQuery,
                                                                                                                                              Integer start,
                                                                                                                                              Integer pageSize)
                                                                                                                                       throws Exception
        Throws:
        Exception
      • findTasksByTextAndJsonQuery

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PagedResult<com.soffid.iam.bpm.api.TaskInstance> findTasksByTextAndJsonQuery​(String text,
                                                                                                               String jsonQuery,
                                                                                                               Integer start,
                                                                                                               Integer pageSize)
                                                                                                        throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findTasksByTextAndJsonQuery in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindTasksByTextAndJsonQuery

        protected abstract com.soffid.iam.api.PagedResult<com.soffid.iam.bpm.api.TaskInstance> handleFindTasksByTextAndJsonQuery​(String text,
                                                                                                                                 String jsonQuery,
                                                                                                                                 Integer start,
                                                                                                                                 Integer pageSize)
                                                                                                                          throws Exception
        Throws:
        Exception
      • disableProcessDefinition

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.bpm.api.ProcessDefinition disableProcessDefinition​(com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleDisableProcessDefinition

        protected abstract com.soffid.iam.bpm.api.ProcessDefinition handleDisableProcessDefinition​(com.soffid.iam.bpm.api.ProcessDefinition defVO)
                                                                                            throws Exception
        Throws:
        Exception
      • enableProcessDefinition

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.bpm.api.ProcessDefinition enableProcessDefinition​(com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleEnableProcessDefinition

        protected abstract com.soffid.iam.bpm.api.ProcessDefinition handleEnableProcessDefinition​(com.soffid.iam.bpm.api.ProcessDefinition defVO)
                                                                                           throws Exception
        Throws:
        Exception
      • getDefinition

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.bpm.api.ProcessDefinition getDefinition​(com.soffid.iam.bpm.api.ProcessInstance process)
                                                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                      es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getDefinition in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetDefinition

        protected abstract com.soffid.iam.bpm.api.ProcessDefinition handleGetDefinition​(com.soffid.iam.bpm.api.ProcessInstance process)
                                                                                 throws Exception
        Throws:
        Exception
      • getProcessDefinition

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.bpm.api.ProcessDefinition getProcessDefinition​(com.soffid.iam.bpm.api.ProcessInstance process)
                                                                      throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                             es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getProcessDefinition in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetProcessDefinition

        protected abstract com.soffid.iam.bpm.api.ProcessDefinition handleGetProcessDefinition​(com.soffid.iam.bpm.api.ProcessInstance process)
                                                                                        throws Exception
        Throws:
        Exception
      • cancel

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.bpm.api.ProcessInstance cancel​(com.soffid.iam.bpm.api.ProcessInstance process)
                                                      throws es.caib.seycon.ng.exception.InternalErrorException,
                                                             es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        cancel in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCancel

        protected abstract com.soffid.iam.bpm.api.ProcessInstance handleCancel​(com.soffid.iam.bpm.api.ProcessInstance process)
                                                                        throws Exception
        Throws:
        Exception
      • getProcess

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       noRollbackFor=java.lang.Exception.class,
                       readOnly=true)
        public com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleGetProcess

        protected abstract com.soffid.iam.bpm.api.ProcessInstance handleGetProcess​(long id)
                                                                            throws Exception
        Throws:
        Exception
      • getProcessInstance

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       noRollbackFor=java.lang.Exception.class,
                       readOnly=true)
        public com.soffid.iam.bpm.api.ProcessInstance getProcessInstance​(com.soffid.iam.bpm.api.TaskInstance task)
                                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                         es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getProcessInstance in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetProcessInstance

        protected abstract com.soffid.iam.bpm.api.ProcessInstance handleGetProcessInstance​(com.soffid.iam.bpm.api.TaskInstance task)
                                                                                    throws Exception
        Throws:
        Exception
      • getProcessLightweight

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleGetProcessLightweight

        protected abstract com.soffid.iam.bpm.api.ProcessInstance handleGetProcessLightweight​(long id)
                                                                                       throws Exception
        Throws:
        Exception
      • newProcess

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.bpm.api.ProcessInstance newProcess​(com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleNewProcess

        protected abstract com.soffid.iam.bpm.api.ProcessInstance handleNewProcess​(com.soffid.iam.bpm.api.ProcessDefinition def)
                                                                            throws Exception
        Throws:
        Exception
      • newProcess

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.bpm.api.ProcessInstance newProcess​(com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleNewProcess

        protected abstract com.soffid.iam.bpm.api.ProcessInstance handleNewProcess​(com.soffid.iam.bpm.api.ProcessDefinition def,
                                                                                   boolean start)
                                                                            throws Exception
        Throws:
        Exception
      • getProcessLog

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.bpm.api.ProcessLog[] getProcessLog​(com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleGetProcessLog

        protected abstract com.soffid.iam.bpm.api.ProcessLog[] handleGetProcessLog​(com.soffid.iam.bpm.api.ProcessInstance process)
                                                                            throws Exception
        Throws:
        Exception
      • getTaskLog

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.bpm.api.ProcessLog[] getTaskLog​(com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleGetTaskLog

        protected abstract com.soffid.iam.bpm.api.ProcessLog[] handleGetTaskLog​(com.soffid.iam.bpm.api.TaskInstance process)
                                                                         throws Exception
        Throws:
        Exception
      • getDefinition

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.bpm.api.TaskDefinition getDefinition​(com.soffid.iam.bpm.api.TaskInstance task)
                                                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                   es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getDefinition in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetDefinition

        protected abstract com.soffid.iam.bpm.api.TaskDefinition handleGetDefinition​(com.soffid.iam.bpm.api.TaskInstance task)
                                                                              throws Exception
        Throws:
        Exception
      • addComment

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.bpm.api.TaskInstance addComment​(com.soffid.iam.bpm.api.TaskInstance task,
                                                              String comment)
                                                       throws es.caib.seycon.ng.exception.InternalErrorException,
                                                              es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        addComment in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleAddComment

        protected abstract com.soffid.iam.bpm.api.TaskInstance handleAddComment​(com.soffid.iam.bpm.api.TaskInstance task,
                                                                                String comment)
                                                                         throws Exception
        Throws:
        Exception
      • cancel

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.bpm.api.TaskInstance cancel​(com.soffid.iam.bpm.api.TaskInstance task)
                                                   throws es.caib.seycon.ng.exception.InternalErrorException,
                                                          es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        cancel in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCancel

        protected abstract com.soffid.iam.bpm.api.TaskInstance handleCancel​(com.soffid.iam.bpm.api.TaskInstance task)
                                                                     throws Exception
        Throws:
        Exception
      • createDummyTask

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.bpm.api.TaskInstance createDummyTask​(long processDefinitionId)
                                                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                   es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        createDummyTask in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCreateDummyTask

        protected abstract com.soffid.iam.bpm.api.TaskInstance handleCreateDummyTask​(long processDefinitionId)
                                                                              throws Exception
        Throws:
        Exception
      • delegateTaskToUser

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.bpm.api.TaskInstance delegateTaskToUser​(com.soffid.iam.bpm.api.TaskInstance task,
                                                                      String username)
                                                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                      es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        delegateTaskToUser in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleDelegateTaskToUser

        protected abstract com.soffid.iam.bpm.api.TaskInstance handleDelegateTaskToUser​(com.soffid.iam.bpm.api.TaskInstance task,
                                                                                        String username)
                                                                                 throws Exception
        Throws:
        Exception
      • executeTask

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.bpm.api.TaskInstance executeTask​(com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleExecuteTask

        protected abstract com.soffid.iam.bpm.api.TaskInstance handleExecuteTask​(com.soffid.iam.bpm.api.TaskInstance task,
                                                                                 String transitionName)
                                                                          throws Exception
        Throws:
        Exception
      • getTask

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       noRollbackFor=java.lang.Exception.class,
                       readOnly=true)
        public com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleGetTask

        protected abstract com.soffid.iam.bpm.api.TaskInstance handleGetTask​(long id)
                                                                      throws Exception
        Throws:
        Exception
      • reserveTask

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.bpm.api.TaskInstance reserveTask​(com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleReserveTask

        protected abstract com.soffid.iam.bpm.api.TaskInstance handleReserveTask​(com.soffid.iam.bpm.api.TaskInstance task)
                                                                          throws Exception
        Throws:
        Exception
      • startTask

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.bpm.api.TaskInstance startTask​(com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleStartTask

        protected abstract com.soffid.iam.bpm.api.TaskInstance handleStartTask​(com.soffid.iam.bpm.api.TaskInstance task)
                                                                        throws Exception
        Throws:
        Exception
      • update

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.bpm.api.TaskInstance update​(com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleUpdate

        protected abstract com.soffid.iam.bpm.api.TaskInstance handleUpdate​(com.soffid.iam.bpm.api.TaskInstance task)
                                                                     throws Exception
        Throws:
        Exception
      • getTokens

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleGetTokens

        protected abstract com.soffid.iam.bpm.api.Token[] handleGetTokens​(long id)
                                                                   throws Exception
        Throws:
        Exception
      • countMyTasks

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleCountMyTasks

        protected abstract int handleCountMyTasks()
                                           throws Exception
        Throws:
        Exception
      • countNewTasks

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleCountNewTasks

        protected abstract int handleCountNewTasks()
                                            throws Exception
        Throws:
        Exception
      • getCoordinates

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public int[] getCoordinates​(com.soffid.iam.bpm.api.ProcessInstance task)
                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                    es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getCoordinates in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetCoordinates

        protected abstract int[] handleGetCoordinates​(com.soffid.iam.bpm.api.ProcessInstance task)
                                               throws Exception
        Throws:
        Exception
      • getCoordinates

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public int[] getCoordinates​(com.soffid.iam.bpm.api.TaskInstance task)
                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                    es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getCoordinates in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetCoordinates

        protected abstract int[] handleGetCoordinates​(com.soffid.iam.bpm.api.TaskInstance task)
                                               throws Exception
        Throws:
        Exception
      • getResourceAsStream

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public InputStream getResourceAsStream​(com.soffid.iam.bpm.api.ProcessDefinition processdef,
                                               String resource)
                                        throws es.caib.seycon.ng.exception.InternalErrorException,
                                               es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getResourceAsStream in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetResourceAsStream

        protected abstract InputStream handleGetResourceAsStream​(com.soffid.iam.bpm.api.ProcessDefinition processdef,
                                                                 String resource)
                                                          throws Exception
        Throws:
        Exception
      • getResourceAsStream

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public InputStream getResourceAsStream​(com.soffid.iam.bpm.api.ProcessInstance process,
                                               String resource)
                                        throws es.caib.seycon.ng.exception.InternalErrorException,
                                               es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getResourceAsStream in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetResourceAsStream

        protected abstract InputStream handleGetResourceAsStream​(com.soffid.iam.bpm.api.ProcessInstance process,
                                                                 String resource)
                                                          throws Exception
        Throws:
        Exception
      • getUI

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public String getUI​(com.soffid.iam.bpm.api.ProcessInstance process)
                     throws es.caib.seycon.ng.exception.InternalErrorException,
                            es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getUI in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetUI

        protected abstract String handleGetUI​(com.soffid.iam.bpm.api.ProcessInstance process)
                                       throws Exception
        Throws:
        Exception
      • getUI

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public String getUI​(com.soffid.iam.bpm.api.TaskInstance task)
                     throws es.caib.seycon.ng.exception.InternalErrorException,
                            es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getUI in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetUI

        protected abstract String handleGetUI​(com.soffid.iam.bpm.api.TaskInstance task)
                                       throws Exception
        Throws:
        Exception
      • getDeployMessages

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public String[] getDeployMessages()
                                   throws es.caib.seycon.ng.exception.InternalErrorException,
                                          es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getDeployMessages in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findChildProcesses

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class,
                       readOnly=true)
        public Collection<Long> findChildProcesses​(Long processId)
                                            throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findChildProcesses in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findParentProceeses

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class,
                       readOnly=true)
        public Collection<Long> findParentProceeses​(Long processId)
                                             throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findParentProceeses in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findUsers

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findAllProcessDefinitions

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.bpm.api.ProcessDefinition> findAllProcessDefinitions​(boolean onlyEnabled)
                                                                                 throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                        es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAllProcessDefinitions in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindAllProcessDefinitions

        protected abstract List<com.soffid.iam.bpm.api.ProcessDefinition> handleFindAllProcessDefinitions​(boolean onlyEnabled)
                                                                                                   throws Exception
        Throws:
        Exception
      • findGroupTasks

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleFindGroupTasks

        protected abstract List<com.soffid.iam.bpm.api.TaskInstance> handleFindGroupTasks()
                                                                                   throws Exception
        Throws:
        Exception
      • findInitiatorProcessDefinitions

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleFindInitiatorProcessDefinitions

        protected abstract List<com.soffid.iam.bpm.api.ProcessDefinition> handleFindInitiatorProcessDefinitions()
                                                                                                         throws Exception
        Throws:
        Exception
      • findMyProcesses

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.bpm.api.ProcessInstance> findMyProcesses()
                                                                     throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                            es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findMyProcesses in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindMyProcesses

        protected abstract List<com.soffid.iam.bpm.api.ProcessInstance> handleFindMyProcesses()
                                                                                       throws Exception
        Throws:
        Exception
      • findMyTasks

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleFindMyTasks

        protected abstract List<com.soffid.iam.bpm.api.TaskInstance> handleFindMyTasks()
                                                                                throws Exception
        Throws:
        Exception
      • findMyTasksLightweight

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleFindMyTasksLightweight

        protected abstract List<com.soffid.iam.bpm.api.TaskInstance> handleFindMyTasksLightweight()
                                                                                           throws Exception
        Throws:
        Exception
      • findObserverProcessDefinitions

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleFindObserverProcessDefinitions

        protected abstract List<com.soffid.iam.bpm.api.ProcessDefinition> handleFindObserverProcessDefinitions()
                                                                                                        throws Exception
        Throws:
        Exception
      • findProcessDefinitions

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.bpm.api.ProcessDefinition> findProcessDefinitions​(String name,
                                                                                     boolean onlyEnabled)
                                                                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                     es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findProcessDefinitions in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindProcessDefinitions

        protected abstract List<com.soffid.iam.bpm.api.ProcessDefinition> handleFindProcessDefinitions​(String name,
                                                                                                       boolean onlyEnabled)
                                                                                                throws Exception
        Throws:
        Exception
      • findProcessDefinitions

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindProcessDefinitions

        protected abstract List<com.soffid.iam.bpm.api.ProcessDefinition> handleFindProcessDefinitions​(String name,
                                                                                                       es.caib.bpm.vo.PredefinedProcessType processType)
                                                                                                throws Exception
        Throws:
        Exception
      • findProcessInstances

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.bpm.api.ProcessInstance> findProcessInstances​(com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleFindProcessInstances

        protected abstract List<com.soffid.iam.bpm.api.ProcessInstance> handleFindProcessInstances​(com.soffid.iam.bpm.api.ProcessDefinition def)
                                                                                            throws Exception
        Throws:
        Exception
      • findProcessInstances

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleFindProcessInstances

        protected abstract List<com.soffid.iam.bpm.api.ProcessInstance> handleFindProcessInstances​(List definitions,
                                                                                                   String processId,
                                                                                                   String estado,
                                                                                                   String actor,
                                                                                                   Date startDate,
                                                                                                   boolean finalizada)
                                                                                            throws Exception
        Throws:
        Exception
      • findSupervisorProcessDefinitions

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleFindSupervisorProcessDefinitions

        protected abstract List<com.soffid.iam.bpm.api.ProcessDefinition> handleFindSupervisorProcessDefinitions()
                                                                                                          throws Exception
        Throws:
        Exception
      • findTaskDefinitions

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.bpm.api.TaskDefinition> findTaskDefinitions​(com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleFindTaskDefinitions

        protected abstract List<com.soffid.iam.bpm.api.TaskDefinition> handleFindTaskDefinitions​(com.soffid.iam.bpm.api.ProcessDefinition def)
                                                                                          throws Exception
        Throws:
        Exception
      • findTasks

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.bpm.api.TaskInstance> findTasks​(List<com.soffid.iam.bpm.api.ProcessInstance> def,
                                                                   com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleFindTasks

        protected abstract List<com.soffid.iam.bpm.api.TaskInstance> handleFindTasks​(List<com.soffid.iam.bpm.api.ProcessInstance> def,
                                                                                     com.soffid.iam.bpm.api.TaskDefinition task,
                                                                                     String actor,
                                                                                     Date processStartDate,
                                                                                     Date taskCreationDate,
                                                                                     boolean finalizada)
                                                                              throws Exception
        Throws:
        Exception
      • findTasks

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.bpm.api.TaskInstance> findTasks​(List<com.soffid.iam.bpm.api.ProcessInstance> def,
                                                                   String process,
                                                                   com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleFindTasks

        protected abstract List<com.soffid.iam.bpm.api.TaskInstance> handleFindTasks​(List<com.soffid.iam.bpm.api.ProcessInstance> def,
                                                                                     String process,
                                                                                     com.soffid.iam.bpm.api.TaskDefinition task,
                                                                                     String actor,
                                                                                     Date processStartDate,
                                                                                     Date taskCreationDate,
                                                                                     boolean finalizada)
                                                                              throws Exception
        Throws:
        Exception
      • getActiveJobs

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleGetActiveJobs

        protected abstract List<com.soffid.iam.bpm.api.Job> handleGetActiveJobs()
                                                                         throws Exception
        Throws:
        Exception
      • getActiveJobs

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.bpm.api.Job> getActiveJobs​(com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleGetActiveJobs

        protected abstract List<com.soffid.iam.bpm.api.Job> handleGetActiveJobs​(com.soffid.iam.bpm.api.ProcessInstance process)
                                                                         throws Exception
        Throws:
        Exception
      • getActiveTasks

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.bpm.api.TaskInstance> getActiveTasks​(com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleGetActiveTasks

        protected abstract List<com.soffid.iam.bpm.api.TaskInstance> handleGetActiveTasks​(com.soffid.iam.bpm.api.ProcessInstance process)
                                                                                   throws Exception
        Throws:
        Exception
      • getAllJobs

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleGetAllJobs

        protected abstract List<com.soffid.iam.bpm.api.Job> handleGetAllJobs()
                                                                      throws Exception
        Throws:
        Exception
      • getPendingTasks

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.bpm.api.TaskInstance> getPendingTasks​(com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleGetPendingTasks

        protected abstract List<com.soffid.iam.bpm.api.TaskInstance> handleGetPendingTasks​(com.soffid.iam.bpm.api.ProcessInstance process)
                                                                                    throws Exception
        Throws:
        Exception
      • searchProcessInstances

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleSearchProcessInstances

        protected abstract List<com.soffid.iam.bpm.api.ProcessInstance> handleSearchProcessInstances​(String query,
                                                                                                     String processID,
                                                                                                     Date sinceStartDate,
                                                                                                     Date untilStartDate,
                                                                                                     Date sinceEndDate,
                                                                                                     Date untilEndDate,
                                                                                                     boolean finished)
                                                                                              throws Exception
        Throws:
        Exception
      • getConfiguration

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Map<String,​String> getConfiguration()
                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                         es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getConfiguration in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getUIClassesForTask

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Map getUIClassesForTask​(com.soffid.iam.bpm.api.ProcessDefinition def)
                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                       es.caib.seycon.ng.exception.InternalErrorException,
                                       SQLException,
                                       IOException
        Specified by:
        getUIClassesForTask in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        SQLException
        IOException
      • handleGetUIClassesForTask

        protected abstract Map handleGetUIClassesForTask​(com.soffid.iam.bpm.api.ProcessDefinition def)
                                                  throws Exception
        Throws:
        Exception
      • getJBpmConfiguration

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public org.jbpm.JbpmConfiguration getJBpmConfiguration()
                                                        throws es.caib.seycon.ng.exception.InternalErrorException,
                                                               es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getJBpmConfiguration in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetJBpmConfiguration

        protected abstract org.jbpm.JbpmConfiguration handleGetJBpmConfiguration()
                                                                          throws Exception
        Throws:
        Exception
      • getContext

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public org.jbpm.JbpmContext getContext()
                                        throws es.caib.seycon.ng.exception.InternalErrorException,
                                               es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getContext in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetContext

        protected abstract org.jbpm.JbpmContext handleGetContext()
                                                          throws Exception
        Throws:
        Exception
      • addComment

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void addComment​(com.soffid.iam.bpm.api.ProcessInstance process,
                               String comment)
                        throws es.caib.seycon.ng.exception.InternalErrorException,
                               es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        addComment in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleAddComment

        protected abstract void handleAddComment​(com.soffid.iam.bpm.api.ProcessInstance process,
                                                 String comment)
                                          throws Exception
        Throws:
        Exception
      • changeConfiguration

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        IOException
      • endDeployParDefinitionTransfer

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleEndDeployParDefinitionTransfer

        protected abstract void handleEndDeployParDefinitionTransfer()
                                                              throws Exception
        Throws:
        Exception
      • linkProcesses

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void linkProcesses​(Long parentProcess,
                                  Long childProcess)
                           throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        linkProcesses in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleLinkProcesses

        protected abstract void handleLinkProcesses​(Long parentProcess,
                                                    Long childProcess)
                                             throws Exception
        Throws:
        Exception
      • nextDeployParDefinitionPackage

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleNextDeployParDefinitionPackage

        protected abstract void handleNextDeployParDefinitionPackage​(byte[] filePackage,
                                                                     int length)
                                                              throws Exception
        Throws:
        Exception
      • openDeployParDefinitionTransfer

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleOpenDeployParDefinitionTransfer

        protected abstract void handleOpenDeployParDefinitionTransfer()
                                                               throws Exception
        Throws:
        Exception
      • pauseJob

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void pauseJob​(com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handlePauseJob

        protected abstract void handlePauseJob​(com.soffid.iam.bpm.api.Job jobvo)
                                        throws Exception
        Throws:
        Exception
      • ping

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void ping()
                  throws es.caib.seycon.ng.exception.InternalErrorException,
                         es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        ping in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • reindex

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void reindex()
                     throws es.caib.seycon.ng.exception.InternalErrorException,
                            es.caib.seycon.ng.exception.InternalErrorException,
                            IOException
        Specified by:
        reindex in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        IOException
      • handleReindex

        protected abstract void handleReindex()
                                       throws Exception
        Throws:
        Exception
      • resumeJob

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void resumeJob​(com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleResumeJob

        protected abstract void handleResumeJob​(com.soffid.iam.bpm.api.Job jobvo)
                                         throws Exception
        Throws:
        Exception
      • retryJob

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void retryJob​(com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleRetryJob

        protected abstract void handleRetryJob​(com.soffid.iam.bpm.api.Job jobvo)
                                        throws Exception
        Throws:
        Exception
      • signal

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void signal​(com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleSignal

        protected abstract void handleSignal​(com.soffid.iam.bpm.api.ProcessInstance instanceVO)
                                      throws Exception
        Throws:
        Exception
      • signal

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void signal​(com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleSignal

        protected abstract void handleSignal​(com.soffid.iam.bpm.api.ProcessInstance instanceVO,
                                             String transitionName)
                                      throws Exception
        Throws:
        Exception
      • startProcess

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void startProcess​(com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleStartProcess

        protected abstract void handleStartProcess​(com.soffid.iam.bpm.api.ProcessInstance process)
                                            throws Exception
        Throws:
        Exception
      • update

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void update​(com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleUpdate

        protected abstract void handleUpdate​(com.soffid.iam.bpm.api.ProcessInstance process)
                                      throws Exception
        Throws:
        Exception
      • updateSwimlane

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void updateSwimlane​(com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleUpdateSwimlane

        protected abstract void handleUpdateSwimlane​(com.soffid.iam.bpm.api.TaskInstance task,
                                                     String swimlane,
                                                     String[] actorIds)
                                              throws Exception
        Throws:
        Exception
      • upgradeParFile

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void upgradeParFile​(InputStream stream)
                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                   es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        upgradeParFile in interface com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • upgradeProcess

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void upgradeProcess​(com.soffid.iam.bpm.api.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 com.soffid.iam.bpm.service.BpmEngine
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.bpm.exception.BPMException
      • handleUpgradeProcess

        protected abstract void handleUpgradeProcess​(com.soffid.iam.bpm.api.ProcessInstance instanceVO)
                                              throws Exception
        Throws:
        Exception
      • getPrincipal

        protected Principal getPrincipal()
        Gets the current principal if one has been set, otherwise returns null.
        Returns:
        the current principal