Package com.soffid.iam.bpm.service
Class BpmEngineImpl
- java.lang.Object
-
- com.soffid.iam.bpm.service.BpmEngineBase
-
- com.soffid.iam.bpm.service.BpmEngineImpl
-
- All Implemented Interfaces:
com.soffid.iam.bpm.service.BpmEngine
public class BpmEngineImpl extends BpmEngineBase
-
-
Field Summary
Fields Modifier and Type Field Description static String
BPM_APPLICATION_ID
static String
BPM_EJB_APP
static String
INITIATOR_ROLE
static String
LUCENE_DIR_PARAM
static String
OBSERVER_ROLE
static String
SUPERVISOR_ROLE
-
Constructor Summary
Constructors Constructor Description BpmEngineImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
audit(org.jbpm.graph.def.ProcessDefinition definition, String action)
void
enableJob(com.soffid.iam.bpm.api.Job jobvo, boolean enable)
void
endAuthenticationLog(org.jbpm.graph.exe.Token token)
convenience method for ending a composite log.protected List
findProcessDefinitionsByRole(String name, boolean onlyEnabled)
protected List<Long>
findProcessInstancesByText(org.jbpm.JbpmContext context, String query)
com.soffid.iam.bpm.api.ProcessInstance
getProcessInstance2(long id, boolean lightweight)
protected void
handleAddComment(com.soffid.iam.bpm.api.ProcessInstance process, String comment)
protected com.soffid.iam.bpm.api.TaskInstance
handleAddComment(com.soffid.iam.bpm.api.TaskInstance task, String comment)
protected boolean
handleCanAdmin(com.soffid.iam.bpm.api.ProcessInstance instanceVO)
protected com.soffid.iam.bpm.api.ProcessInstance
handleCancel(com.soffid.iam.bpm.api.ProcessInstance process)
protected com.soffid.iam.bpm.api.TaskInstance
handleCancel(com.soffid.iam.bpm.api.TaskInstance task)
protected void
handleChangeConfiguration(Map m)
protected int
handleCountMyTasks()
protected int
handleCountNewTasks()
protected com.soffid.iam.bpm.api.TaskInstance
handleCreateDummyTask(long processDefinitionId)
protected com.soffid.iam.bpm.api.TaskInstance
handleDelegateTaskToUser(com.soffid.iam.bpm.api.TaskInstance task, String username)
protected com.soffid.iam.bpm.api.ProcessDefinition
handleDisableProcessDefinition(com.soffid.iam.bpm.api.ProcessDefinition defVO)
protected com.soffid.iam.bpm.api.ProcessDefinition
handleEnableProcessDefinition(com.soffid.iam.bpm.api.ProcessDefinition defVO)
protected void
handleEndDeployParDefinitionTransfer()
protected com.soffid.iam.bpm.api.TaskInstance
handleExecuteTask(com.soffid.iam.bpm.api.TaskInstance task, String transitionName)
protected List<com.soffid.iam.bpm.api.ProcessDefinition>
handleFindAllProcessDefinitions(boolean onlyEnabled)
protected Collection<Long>
handleFindChildProcesses(Long processId)
protected List
handleFindGroupTasks()
protected List
handleFindInitiatorProcessDefinitions()
protected List
handleFindMyProcesses()
protected List
handleFindMyTasks()
protected List
handleFindMyTasksLightweight()
protected List
handleFindObserverProcessDefinitions()
protected Collection<Long>
handleFindParentProceeses(Long processId)
protected com.soffid.iam.api.PagedResult<com.soffid.iam.bpm.api.ProcessDefinition>
handleFindProcessDefinitionByTextAndJsonQuery(String text, String jsonQuery, Integer start, Integer pageSize)
protected List
handleFindProcessDefinitions(String name, boolean onlyEnabled)
protected List
handleFindProcessDefinitions(String name, es.caib.bpm.vo.PredefinedProcessType type)
protected com.soffid.iam.api.PagedResult<com.soffid.iam.bpm.api.ProcessInstance>
handleFindProcessInstanceByTextAndJsonQuery(String text, String jsonQuery, Integer start, Integer pageSize)
protected List
handleFindProcessInstances(com.soffid.iam.bpm.api.ProcessDefinition def)
protected List
handleFindProcessInstances(List definitions, String processId, String estado, String actor, Date startDate, boolean finalizada)
protected List
handleFindSupervisorProcessDefinitions()
protected List
handleFindTaskDefinitions(com.soffid.iam.bpm.api.ProcessDefinition def)
protected List
handleFindTasks(List def, com.soffid.iam.bpm.api.TaskDefinition task, String actor, Date processStartDate, Date taskCreationDate, boolean finalizada)
protected List
handleFindTasks(List def, String processId, com.soffid.iam.bpm.api.TaskDefinition task, String actor, Date processStartDate, Date taskCreationDate, boolean finalizada)
protected com.soffid.iam.api.PagedResult<com.soffid.iam.bpm.api.TaskInstance>
handleFindTasksByTextAndJsonQuery(String text, String jsonQuery, Integer start, Integer pageSize)
protected Collection<com.soffid.iam.bpm.api.BPMUser>
handleFindUsers(String userName, String givenName, String surName, String group)
protected List
handleGetActiveJobs()
protected List
handleGetActiveJobs(com.soffid.iam.bpm.api.ProcessInstance process)
protected List
handleGetActiveTasks(com.soffid.iam.bpm.api.ProcessInstance process)
protected List
handleGetAllJobs()
protected Map
handleGetConfiguration()
protected org.jbpm.JbpmContext
handleGetContext()
protected int[]
handleGetCoordinates(com.soffid.iam.bpm.api.ProcessInstance processVO)
protected int[]
handleGetCoordinates(com.soffid.iam.bpm.api.TaskInstance task)
protected com.soffid.iam.bpm.api.ProcessDefinition
handleGetDefinition(com.soffid.iam.bpm.api.ProcessInstance process)
protected com.soffid.iam.bpm.api.TaskDefinition
handleGetDefinition(com.soffid.iam.bpm.api.TaskInstance task)
protected String[]
handleGetDeployMessages()
protected org.jbpm.JbpmConfiguration
handleGetJBpmConfiguration()
protected List
handleGetPendingTasks(com.soffid.iam.bpm.api.ProcessInstance process)
protected com.soffid.iam.bpm.api.ProcessInstance
handleGetProcess(long id)
protected com.soffid.iam.bpm.api.ProcessDefinition
handleGetProcessDefinition(com.soffid.iam.bpm.api.ProcessInstance process)
protected byte[]
handleGetProcessDefinitionIcon(Long definitionId)
protected byte[]
handleGetProcessDefinitionImage(com.soffid.iam.bpm.api.ProcessDefinition def)
protected com.soffid.iam.bpm.api.ProcessInstance
handleGetProcessInstance(com.soffid.iam.bpm.api.TaskInstance task)
protected com.soffid.iam.bpm.api.ProcessInstance
handleGetProcessLightweight(long id)
protected com.soffid.iam.bpm.api.ProcessLog[]
handleGetProcessLog(com.soffid.iam.bpm.api.ProcessInstance instanceVO)
protected InputStream
handleGetResourceAsStream(com.soffid.iam.bpm.api.ProcessDefinition processdef, String resource)
protected InputStream
handleGetResourceAsStream(com.soffid.iam.bpm.api.ProcessInstance process, String resource)
protected com.soffid.iam.bpm.api.TaskInstance
handleGetTask(long id)
protected com.soffid.iam.bpm.api.ProcessLog[]
handleGetTaskLog(com.soffid.iam.bpm.api.TaskInstance instanceVO)
protected com.soffid.iam.bpm.api.Token[]
handleGetTokens(long id)
protected String
handleGetUI(com.soffid.iam.bpm.api.ProcessInstance process)
protected String
handleGetUI(com.soffid.iam.bpm.api.TaskInstance task)
protected Map
handleGetUIClassesForTask(com.soffid.iam.bpm.api.ProcessDefinition def)
protected boolean
handleIsUserInRole(String role)
protected void
handleLinkProcesses(Long parentProcess, Long childProcess)
protected com.soffid.iam.bpm.api.ProcessInstance
handleNewProcess(com.soffid.iam.bpm.api.ProcessDefinition def)
protected com.soffid.iam.bpm.api.ProcessInstance
handleNewProcess(com.soffid.iam.bpm.api.ProcessDefinition def, boolean start)
protected void
handleNextDeployParDefinitionPackage(byte[] filePackage, int length)
protected void
handleOpenDeployParDefinitionTransfer()
protected void
handlePauseJob(com.soffid.iam.bpm.api.Job jobvo)
protected void
handlePing()
protected void
handleReindex()
protected com.soffid.iam.bpm.api.TaskInstance
handleReserveTask(com.soffid.iam.bpm.api.TaskInstance task)
protected void
handleResumeJob(com.soffid.iam.bpm.api.Job jobvo)
protected void
handleRetryJob(com.soffid.iam.bpm.api.Job jobvo)
protected List
handleSearchProcessInstances(String query, String processID, Date sinceStartDate, Date untilStartDate, Date sinceEndDate, Date untilEndDate, boolean finished)
protected void
handleSignal(com.soffid.iam.bpm.api.ProcessInstance instanceVO)
protected void
handleSignal(com.soffid.iam.bpm.api.ProcessInstance instanceVO, String transitionName)
protected void
handleStartProcess(com.soffid.iam.bpm.api.ProcessInstance process)
protected com.soffid.iam.bpm.api.TaskInstance
handleStartTask(com.soffid.iam.bpm.api.TaskInstance task)
protected void
handleUpdate(com.soffid.iam.bpm.api.ProcessInstance process)
protected com.soffid.iam.bpm.api.TaskInstance
handleUpdate(com.soffid.iam.bpm.api.TaskInstance task)
protected void
handleUpdateSwimlane(com.soffid.iam.bpm.api.TaskInstance task, String swimlane, String[] actorIds)
protected void
handleUpgradeParFile(InputStream stream)
protected void
handleUpgradeProcess(com.soffid.iam.bpm.api.ProcessInstance instanceVO)
void
startAuthenticationLog(org.jbpm.graph.exe.Token token)
-
Methods inherited from class com.soffid.iam.bpm.service.BpmEngineBase
addComment, addComment, canAdmin, cancel, cancel, changeConfiguration, countMyTasks, countNewTasks, createDummyTask, delegateTaskToUser, disableProcessDefinition, enableProcessDefinition, endDeployParDefinitionTransfer, executeTask, findAllProcessDefinitions, findChildProcesses, findGroupTasks, findInitiatorProcessDefinitions, findMyProcesses, findMyTasks, findMyTasksLightweight, findObserverProcessDefinitions, findParentProceeses, findProcessDefinitionByTextAndJsonQuery, findProcessDefinitions, findProcessDefinitions, findProcessInstanceByTextAndJsonQuery, findProcessInstances, findProcessInstances, findSupervisorProcessDefinitions, findTaskDefinitions, findTasks, findTasks, findTasksByTextAndJsonQuery, findUsers, getActiveJobs, getActiveJobs, getActiveTasks, getAllJobs, getApplicationService, getAuditEntityDao, getBpmConfigService, getConfiguration, getContext, getCoordinates, getCoordinates, getDefinition, getDefinition, getDeployMessages, getJBpmConfiguration, getLuceneIndexService, getPendingTasks, getPrincipal, getProcess, getProcessDefinition, getProcessDefinitionIcon, getProcessDefinitionImage, getProcessHierarchyEntityDao, getProcessInstance, getProcessLightweight, getProcessLog, getResourceAsStream, getResourceAsStream, getSessionCacheService, getSystemEntityDao, getTask, getTaskLog, getTokens, getUI, getUI, getUIClassesForTask, getUserEntityDao, getUserService, isUserInRole, linkProcesses, newProcess, newProcess, nextDeployParDefinitionPackage, openDeployParDefinitionTransfer, pauseJob, ping, reindex, reserveTask, resumeJob, retryJob, searchProcessInstances, setApplicationService, setAuditEntityDao, setBpmConfigService, setLuceneIndexService, setProcessHierarchyEntityDao, setSessionCacheService, setSystemEntityDao, setUserEntityDao, setUserService, signal, signal, startProcess, startTask, update, update, updateSwimlane, upgradeParFile, upgradeProcess
-
-
-
-
Field Detail
-
OBSERVER_ROLE
public static final String OBSERVER_ROLE
- See Also:
- Constant Field Values
-
SUPERVISOR_ROLE
public static final String SUPERVISOR_ROLE
- See Also:
- Constant Field Values
-
BPM_EJB_APP
public static final String BPM_EJB_APP
- See Also:
- Constant Field Values
-
INITIATOR_ROLE
public static final String INITIATOR_ROLE
- See Also:
- Constant Field Values
-
BPM_APPLICATION_ID
public static final String BPM_APPLICATION_ID
- See Also:
- Constant Field Values
-
LUCENE_DIR_PARAM
public static final String LUCENE_DIR_PARAM
- See Also:
- Constant Field Values
-
-
Method Detail
-
handleFindMyProcesses
protected List handleFindMyProcesses() throws Exception
- Specified by:
handleFindMyProcesses
in classBpmEngineBase
- Throws:
Exception
-
handleGetProcessDefinition
protected com.soffid.iam.bpm.api.ProcessDefinition handleGetProcessDefinition(com.soffid.iam.bpm.api.ProcessInstance process) throws Exception
- Specified by:
handleGetProcessDefinition
in classBpmEngineBase
- Throws:
Exception
-
startAuthenticationLog
public void startAuthenticationLog(org.jbpm.graph.exe.Token token)
-
endAuthenticationLog
public void endAuthenticationLog(org.jbpm.graph.exe.Token token)
convenience method for ending a composite log. Make sure you put this in a finally block.
-
handleCancel
protected com.soffid.iam.bpm.api.ProcessInstance handleCancel(com.soffid.iam.bpm.api.ProcessInstance process) throws Exception
- Specified by:
handleCancel
in classBpmEngineBase
- Throws:
Exception
-
handleSearchProcessInstances
protected List handleSearchProcessInstances(String query, String processID, Date sinceStartDate, Date untilStartDate, Date sinceEndDate, Date untilEndDate, boolean finished) throws Exception
- Specified by:
handleSearchProcessInstances
in classBpmEngineBase
- Throws:
Exception
-
handleFindProcessInstances
protected List handleFindProcessInstances(List definitions, String processId, String estado, String actor, Date startDate, boolean finalizada) throws Exception
- Specified by:
handleFindProcessInstances
in classBpmEngineBase
- Throws:
Exception
-
handleFindProcessInstances
protected List handleFindProcessInstances(com.soffid.iam.bpm.api.ProcessDefinition def) throws Exception
- Specified by:
handleFindProcessInstances
in classBpmEngineBase
- Throws:
Exception
-
handleGetDefinition
protected com.soffid.iam.bpm.api.ProcessDefinition handleGetDefinition(com.soffid.iam.bpm.api.ProcessInstance process) throws Exception
- Specified by:
handleGetDefinition
in classBpmEngineBase
- Throws:
Exception
-
handleUpdate
protected void handleUpdate(com.soffid.iam.bpm.api.ProcessInstance process) throws Exception
- Specified by:
handleUpdate
in classBpmEngineBase
- Throws:
Exception
-
handleStartProcess
protected void handleStartProcess(com.soffid.iam.bpm.api.ProcessInstance process) throws Exception
- Specified by:
handleStartProcess
in classBpmEngineBase
- Throws:
Exception
-
handleGetProcess
protected com.soffid.iam.bpm.api.ProcessInstance handleGetProcess(long id) throws Exception
- Specified by:
handleGetProcess
in classBpmEngineBase
- Throws:
Exception
-
getProcessInstance2
public com.soffid.iam.bpm.api.ProcessInstance getProcessInstance2(long id, boolean lightweight) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.bpm.exception.BPMException, es.caib.seycon.ng.exception.UnknownUserException, Exception
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
es.caib.bpm.exception.BPMException
es.caib.seycon.ng.exception.UnknownUserException
Exception
-
handleGetProcessLightweight
protected com.soffid.iam.bpm.api.ProcessInstance handleGetProcessLightweight(long id) throws Exception
- Specified by:
handleGetProcessLightweight
in classBpmEngineBase
- Throws:
Exception
-
handleGetTokens
protected com.soffid.iam.bpm.api.Token[] handleGetTokens(long id) throws Exception
- Specified by:
handleGetTokens
in classBpmEngineBase
- Throws:
Exception
-
handleGetProcessLog
protected com.soffid.iam.bpm.api.ProcessLog[] handleGetProcessLog(com.soffid.iam.bpm.api.ProcessInstance instanceVO) throws Exception
- Specified by:
handleGetProcessLog
in classBpmEngineBase
- Throws:
Exception
-
handleGetTaskLog
protected com.soffid.iam.bpm.api.ProcessLog[] handleGetTaskLog(com.soffid.iam.bpm.api.TaskInstance instanceVO) throws Exception
- Specified by:
handleGetTaskLog
in classBpmEngineBase
- Throws:
Exception
-
handleUpgradeProcess
protected void handleUpgradeProcess(com.soffid.iam.bpm.api.ProcessInstance instanceVO) throws Exception
- Specified by:
handleUpgradeProcess
in classBpmEngineBase
- Throws:
Exception
-
handleFindMyTasks
protected List handleFindMyTasks() throws Exception
- Specified by:
handleFindMyTasks
in classBpmEngineBase
- Throws:
Exception
-
handleFindMyTasksLightweight
protected List handleFindMyTasksLightweight() throws Exception
- Specified by:
handleFindMyTasksLightweight
in classBpmEngineBase
- Throws:
Exception
-
handleFindGroupTasks
protected List handleFindGroupTasks() throws Exception
- Specified by:
handleFindGroupTasks
in classBpmEngineBase
- Throws:
Exception
-
handleStartTask
protected com.soffid.iam.bpm.api.TaskInstance handleStartTask(com.soffid.iam.bpm.api.TaskInstance task) throws Exception
- Specified by:
handleStartTask
in classBpmEngineBase
- Throws:
Exception
-
handleAddComment
protected com.soffid.iam.bpm.api.TaskInstance handleAddComment(com.soffid.iam.bpm.api.TaskInstance task, String comment) throws Exception
- Specified by:
handleAddComment
in classBpmEngineBase
- Throws:
Exception
-
handleAddComment
protected void handleAddComment(com.soffid.iam.bpm.api.ProcessInstance process, String comment) throws Exception
- Specified by:
handleAddComment
in classBpmEngineBase
- Throws:
Exception
-
handleExecuteTask
protected com.soffid.iam.bpm.api.TaskInstance handleExecuteTask(com.soffid.iam.bpm.api.TaskInstance task, String transitionName) throws Exception
- Specified by:
handleExecuteTask
in classBpmEngineBase
- Throws:
Exception
-
handleReserveTask
protected com.soffid.iam.bpm.api.TaskInstance handleReserveTask(com.soffid.iam.bpm.api.TaskInstance task) throws Exception
- Specified by:
handleReserveTask
in classBpmEngineBase
- Throws:
Exception
-
handleDelegateTaskToUser
protected com.soffid.iam.bpm.api.TaskInstance handleDelegateTaskToUser(com.soffid.iam.bpm.api.TaskInstance task, String username) throws Exception
- Specified by:
handleDelegateTaskToUser
in classBpmEngineBase
- Throws:
Exception
-
handleUpdate
protected com.soffid.iam.bpm.api.TaskInstance handleUpdate(com.soffid.iam.bpm.api.TaskInstance task) throws Exception
- Specified by:
handleUpdate
in classBpmEngineBase
- Throws:
Exception
-
handleUpdateSwimlane
protected void handleUpdateSwimlane(com.soffid.iam.bpm.api.TaskInstance task, String swimlane, String[] actorIds) throws Exception
- Specified by:
handleUpdateSwimlane
in classBpmEngineBase
- Throws:
Exception
-
handleGetProcessInstance
protected com.soffid.iam.bpm.api.ProcessInstance handleGetProcessInstance(com.soffid.iam.bpm.api.TaskInstance task) throws Exception
- Specified by:
handleGetProcessInstance
in classBpmEngineBase
- Throws:
Exception
-
handleCancel
protected com.soffid.iam.bpm.api.TaskInstance handleCancel(com.soffid.iam.bpm.api.TaskInstance task) throws Exception
- Specified by:
handleCancel
in classBpmEngineBase
- Throws:
Exception
-
handleFindTasks
protected List handleFindTasks(List def, com.soffid.iam.bpm.api.TaskDefinition task, String actor, Date processStartDate, Date taskCreationDate, boolean finalizada) throws Exception
- Specified by:
handleFindTasks
in classBpmEngineBase
- Throws:
Exception
-
handleFindTasks
protected List handleFindTasks(List def, String processId, com.soffid.iam.bpm.api.TaskDefinition task, String actor, Date processStartDate, Date taskCreationDate, boolean finalizada) throws Exception
- Specified by:
handleFindTasks
in classBpmEngineBase
- Throws:
Exception
-
handleGetUI
protected String handleGetUI(com.soffid.iam.bpm.api.TaskInstance task) throws Exception
- Specified by:
handleGetUI
in classBpmEngineBase
- Throws:
Exception
-
handleGetUI
protected String handleGetUI(com.soffid.iam.bpm.api.ProcessInstance process) throws Exception
- Specified by:
handleGetUI
in classBpmEngineBase
- Throws:
Exception
-
handleGetDefinition
protected com.soffid.iam.bpm.api.TaskDefinition handleGetDefinition(com.soffid.iam.bpm.api.TaskInstance task) throws Exception
- Specified by:
handleGetDefinition
in classBpmEngineBase
- Throws:
Exception
-
handleGetPendingTasks
protected List handleGetPendingTasks(com.soffid.iam.bpm.api.ProcessInstance process) throws Exception
- Specified by:
handleGetPendingTasks
in classBpmEngineBase
- Throws:
Exception
-
findProcessDefinitionsByRole
protected List findProcessDefinitionsByRole(String name, boolean onlyEnabled) throws Exception
- Throws:
Exception
-
handleFindProcessDefinitions
protected List handleFindProcessDefinitions(String name, boolean onlyEnabled) throws Exception
- Specified by:
handleFindProcessDefinitions
in classBpmEngineBase
- Throws:
Exception
-
handleFindProcessDefinitions
protected List handleFindProcessDefinitions(String name, es.caib.bpm.vo.PredefinedProcessType type) throws Exception
- Specified by:
handleFindProcessDefinitions
in classBpmEngineBase
- Throws:
Exception
-
handleNewProcess
protected com.soffid.iam.bpm.api.ProcessInstance handleNewProcess(com.soffid.iam.bpm.api.ProcessDefinition def) throws Exception
- Specified by:
handleNewProcess
in classBpmEngineBase
- Throws:
Exception
-
handleNewProcess
protected com.soffid.iam.bpm.api.ProcessInstance handleNewProcess(com.soffid.iam.bpm.api.ProcessDefinition def, boolean start) throws Exception
- Specified by:
handleNewProcess
in classBpmEngineBase
- Throws:
Exception
-
handleGetProcessDefinitionImage
protected byte[] handleGetProcessDefinitionImage(com.soffid.iam.bpm.api.ProcessDefinition def) throws Exception
- Specified by:
handleGetProcessDefinitionImage
in classBpmEngineBase
- Throws:
Exception
-
handleGetProcessDefinitionIcon
protected byte[] handleGetProcessDefinitionIcon(Long definitionId) throws Exception
- Specified by:
handleGetProcessDefinitionIcon
in classBpmEngineBase
- Throws:
Exception
-
handleGetCoordinates
protected int[] handleGetCoordinates(com.soffid.iam.bpm.api.TaskInstance task) throws Exception
- Specified by:
handleGetCoordinates
in classBpmEngineBase
- Throws:
Exception
-
handleGetCoordinates
protected int[] handleGetCoordinates(com.soffid.iam.bpm.api.ProcessInstance processVO) throws Exception
- Specified by:
handleGetCoordinates
in classBpmEngineBase
- Throws:
Exception
-
handleFindInitiatorProcessDefinitions
protected List handleFindInitiatorProcessDefinitions() throws Exception
- Specified by:
handleFindInitiatorProcessDefinitions
in classBpmEngineBase
- Throws:
Exception
-
handleFindObserverProcessDefinitions
protected List handleFindObserverProcessDefinitions() throws Exception
- Specified by:
handleFindObserverProcessDefinitions
in classBpmEngineBase
- Throws:
Exception
-
handleFindSupervisorProcessDefinitions
protected List handleFindSupervisorProcessDefinitions() throws Exception
- Specified by:
handleFindSupervisorProcessDefinitions
in classBpmEngineBase
- Throws:
Exception
-
handleGetUIClassesForTask
protected Map handleGetUIClassesForTask(com.soffid.iam.bpm.api.ProcessDefinition def) throws Exception
- Specified by:
handleGetUIClassesForTask
in classBpmEngineBase
- Throws:
Exception
-
handleFindTaskDefinitions
protected List handleFindTaskDefinitions(com.soffid.iam.bpm.api.ProcessDefinition def) throws Exception
- Specified by:
handleFindTaskDefinitions
in classBpmEngineBase
- Throws:
Exception
-
handleEnableProcessDefinition
protected com.soffid.iam.bpm.api.ProcessDefinition handleEnableProcessDefinition(com.soffid.iam.bpm.api.ProcessDefinition defVO) throws Exception
- Specified by:
handleEnableProcessDefinition
in classBpmEngineBase
- Throws:
Exception
-
handleDisableProcessDefinition
protected com.soffid.iam.bpm.api.ProcessDefinition handleDisableProcessDefinition(com.soffid.iam.bpm.api.ProcessDefinition defVO) throws Exception
- Specified by:
handleDisableProcessDefinition
in classBpmEngineBase
- Throws:
Exception
-
handleOpenDeployParDefinitionTransfer
protected void handleOpenDeployParDefinitionTransfer() throws Exception
- Specified by:
handleOpenDeployParDefinitionTransfer
in classBpmEngineBase
- Throws:
Exception
-
handleNextDeployParDefinitionPackage
protected void handleNextDeployParDefinitionPackage(byte[] filePackage, int length) throws Exception
- Specified by:
handleNextDeployParDefinitionPackage
in classBpmEngineBase
- Throws:
Exception
-
handleEndDeployParDefinitionTransfer
protected void handleEndDeployParDefinitionTransfer() throws Exception
- Specified by:
handleEndDeployParDefinitionTransfer
in classBpmEngineBase
- Throws:
Exception
-
audit
public void audit(org.jbpm.graph.def.ProcessDefinition definition, String action)
-
handleGetDeployMessages
protected String[] handleGetDeployMessages() throws Exception
- Specified by:
handleGetDeployMessages
in classBpmEngineBase
- Throws:
Exception
-
handleGetTask
protected com.soffid.iam.bpm.api.TaskInstance handleGetTask(long id) throws Exception
- Specified by:
handleGetTask
in classBpmEngineBase
- Throws:
Exception
-
handleGetJBpmConfiguration
protected org.jbpm.JbpmConfiguration handleGetJBpmConfiguration() throws Exception
- Specified by:
handleGetJBpmConfiguration
in classBpmEngineBase
- Throws:
Exception
-
handleGetContext
protected org.jbpm.JbpmContext handleGetContext() throws Exception
- Specified by:
handleGetContext
in classBpmEngineBase
- Throws:
Exception
-
handleSignal
protected void handleSignal(com.soffid.iam.bpm.api.ProcessInstance instanceVO) throws Exception
- Specified by:
handleSignal
in classBpmEngineBase
- Throws:
Exception
-
handleSignal
protected void handleSignal(com.soffid.iam.bpm.api.ProcessInstance instanceVO, String transitionName) throws Exception
- Specified by:
handleSignal
in classBpmEngineBase
- Throws:
Exception
-
handleCanAdmin
protected boolean handleCanAdmin(com.soffid.iam.bpm.api.ProcessInstance instanceVO) throws Exception
- Specified by:
handleCanAdmin
in classBpmEngineBase
- Throws:
Exception
-
handleGetActiveJobs
protected List handleGetActiveJobs(com.soffid.iam.bpm.api.ProcessInstance process) throws Exception
- Specified by:
handleGetActiveJobs
in classBpmEngineBase
- Throws:
Exception
-
handleGetActiveTasks
protected List handleGetActiveTasks(com.soffid.iam.bpm.api.ProcessInstance process) throws Exception
- Specified by:
handleGetActiveTasks
in classBpmEngineBase
- Throws:
Exception
-
handleGetActiveJobs
protected List handleGetActiveJobs() throws Exception
- Specified by:
handleGetActiveJobs
in classBpmEngineBase
- Throws:
Exception
-
handleGetAllJobs
protected List handleGetAllJobs() throws Exception
- Specified by:
handleGetAllJobs
in classBpmEngineBase
- Throws:
Exception
-
handleResumeJob
protected void handleResumeJob(com.soffid.iam.bpm.api.Job jobvo) throws Exception
- Specified by:
handleResumeJob
in classBpmEngineBase
- Throws:
Exception
-
handlePauseJob
protected void handlePauseJob(com.soffid.iam.bpm.api.Job jobvo) throws Exception
- Specified by:
handlePauseJob
in classBpmEngineBase
- Throws:
Exception
-
enableJob
public void enableJob(com.soffid.iam.bpm.api.Job jobvo, boolean enable) throws es.caib.bpm.exception.BPMException, es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.UnknownUserException
- Throws:
es.caib.bpm.exception.BPMException
es.caib.seycon.ng.exception.InternalErrorException
es.caib.seycon.ng.exception.UnknownUserException
-
handleRetryJob
protected void handleRetryJob(com.soffid.iam.bpm.api.Job jobvo) throws Exception
- Specified by:
handleRetryJob
in classBpmEngineBase
- Throws:
Exception
-
handleChangeConfiguration
protected void handleChangeConfiguration(Map m) throws Exception
- Specified by:
handleChangeConfiguration
in classBpmEngineBase
- Throws:
Exception
-
handleGetConfiguration
protected Map handleGetConfiguration() throws Exception
- Specified by:
handleGetConfiguration
in classBpmEngineBase
- Throws:
Exception
-
handleReindex
protected void handleReindex() throws Exception
- Specified by:
handleReindex
in classBpmEngineBase
- Throws:
Exception
-
handlePing
protected void handlePing() throws Exception
- Specified by:
handlePing
in classBpmEngineBase
- Throws:
Exception
-
handleGetResourceAsStream
protected InputStream handleGetResourceAsStream(com.soffid.iam.bpm.api.ProcessInstance process, String resource) throws Exception
- Specified by:
handleGetResourceAsStream
in classBpmEngineBase
- Throws:
Exception
-
handleGetResourceAsStream
protected InputStream handleGetResourceAsStream(com.soffid.iam.bpm.api.ProcessDefinition processdef, String resource) throws Exception
- Specified by:
handleGetResourceAsStream
in classBpmEngineBase
- Throws:
Exception
-
handleFindUsers
protected Collection<com.soffid.iam.bpm.api.BPMUser> handleFindUsers(String userName, String givenName, String surName, String group) throws Exception
- Specified by:
handleFindUsers
in classBpmEngineBase
- Throws:
Exception
-
handleUpgradeParFile
protected void handleUpgradeParFile(InputStream stream) throws Exception
- Specified by:
handleUpgradeParFile
in classBpmEngineBase
- Throws:
Exception
-
handleIsUserInRole
protected boolean handleIsUserInRole(String role) throws Exception
- Specified by:
handleIsUserInRole
in classBpmEngineBase
- Throws:
Exception
-
handleFindChildProcesses
protected Collection<Long> handleFindChildProcesses(Long processId) throws Exception
- Specified by:
handleFindChildProcesses
in classBpmEngineBase
- Throws:
Exception
-
handleFindParentProceeses
protected Collection<Long> handleFindParentProceeses(Long processId) throws Exception
- Specified by:
handleFindParentProceeses
in classBpmEngineBase
- Throws:
Exception
-
handleLinkProcesses
protected void handleLinkProcesses(Long parentProcess, Long childProcess) throws Exception
- Specified by:
handleLinkProcesses
in classBpmEngineBase
- Throws:
Exception
-
handleCreateDummyTask
protected com.soffid.iam.bpm.api.TaskInstance handleCreateDummyTask(long processDefinitionId) throws Exception
- Specified by:
handleCreateDummyTask
in classBpmEngineBase
- Throws:
Exception
-
handleCountMyTasks
protected int handleCountMyTasks() throws Exception
- Specified by:
handleCountMyTasks
in classBpmEngineBase
- Throws:
Exception
-
handleCountNewTasks
protected int handleCountNewTasks() throws Exception
- Specified by:
handleCountNewTasks
in classBpmEngineBase
- Throws:
Exception
-
handleFindProcessDefinitionByTextAndJsonQuery
protected com.soffid.iam.api.PagedResult<com.soffid.iam.bpm.api.ProcessDefinition> handleFindProcessDefinitionByTextAndJsonQuery(String text, String jsonQuery, Integer start, Integer pageSize) throws Exception
- Specified by:
handleFindProcessDefinitionByTextAndJsonQuery
in classBpmEngineBase
- Throws:
Exception
-
handleFindProcessInstanceByTextAndJsonQuery
protected com.soffid.iam.api.PagedResult<com.soffid.iam.bpm.api.ProcessInstance> handleFindProcessInstanceByTextAndJsonQuery(String text, String jsonQuery, Integer start, Integer pageSize) throws Exception
- Specified by:
handleFindProcessInstanceByTextAndJsonQuery
in classBpmEngineBase
- Throws:
Exception
-
handleFindTasksByTextAndJsonQuery
protected com.soffid.iam.api.PagedResult<com.soffid.iam.bpm.api.TaskInstance> handleFindTasksByTextAndJsonQuery(String text, String jsonQuery, Integer start, Integer pageSize) throws Exception
- Specified by:
handleFindTasksByTextAndJsonQuery
in classBpmEngineBase
- Throws:
Exception
-
findProcessInstancesByText
protected List<Long> findProcessInstancesByText(org.jbpm.JbpmContext context, String query) throws Exception
- Throws:
Exception
-
handleFindAllProcessDefinitions
protected List<com.soffid.iam.bpm.api.ProcessDefinition> handleFindAllProcessDefinitions(boolean onlyEnabled) throws Exception
- Specified by:
handleFindAllProcessDefinitions
in classBpmEngineBase
- Throws:
Exception
-
-