Package com.soffid.iam.bpm.service.ejb
Interface BpmEngine
public interface BpmEngine
EJB BpmEngine
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddComment(ProcessInstance process, String comment) addComment(TaskInstance task, String comment) booleancanAdmin(ProcessInstance instanceVO) cancel(ProcessInstance process) cancel(TaskInstance task) intintcreateDummyTask(long processDefinitionId) delegateTaskToUser(TaskInstance task, String username) voiddownloadParFile(ProcessDefinition def, OutputStream stream) voidexecuteTask(TaskInstance task, String transitionName) findAllProcessDefinitions(boolean onlyEnabled) findChildProcesses(Long processId) findParentProceeses(Long processId) com.soffid.zkdb.api.PagedResult<ProcessDefinition>findProcessDefinitionByTextAndJsonQuery(String text, String jsonQuery, Integer start, Integer pageSize) findProcessDefinitions(String name, boolean onlyEnabled) findProcessDefinitions(String name, PredefinedProcessType processType) com.soffid.zkdb.api.PagedResult<ProcessInstance>findProcessInstance(com.soffid.zkdb.api.Query query) com.soffid.zkdb.api.PagedResult<ProcessInstance>findProcessInstanceByTextAndJsonQuery(String text, String jsonQuery, Integer start, Integer pageSize) findProcessInstances(List definitions, String processId, String estado, String actor, Date startDate, boolean finalizada) findTasks(List<ProcessInstance> def, TaskDefinition task, String actor, Date processStartDate, Date taskCreationDate, boolean finalizada) findTasks(List<ProcessInstance> def, String process, TaskDefinition task, String actor, Date processStartDate, Date taskCreationDate, boolean finalizada) com.soffid.zkdb.api.PagedResult<TaskInstance>findTasksByTextAndJsonQuery(String text, String jsonQuery, Integer start, Integer pageSize) getActiveJobs(ProcessInstance process) getActiveTasks(ProcessInstance process) org.jbpm.JbpmContextint[]int[]getCoordinates(TaskInstance task) getDefinition(ProcessInstance process) getDefinition(TaskInstance task) String[]getDeployMessages(DeployToken token) org.jbpm.JbpmConfigurationgetPendingTasks(ProcessInstance process) getProcess(long id) getProcessDefinition(ProcessInstance process) byte[]getProcessDefinitionIcon(Long definitionId) byte[]getProcessLightweight(long id) getProcessLog(ProcessInstance process) getResourceAsStream(ProcessDefinition processdef, String resource) getResourceAsStream(ProcessInstance process, String resource) getTask(long id) getTaskLog(TaskInstance process) Token[]getTokens(long id) getUI(ProcessInstance process) getUI(TaskInstance task) booleanisUserInRole(String role) voidlinkProcesses(Long parentProcess, Long childProcess) newProcess(ProcessDefinition def, boolean start) voidnextDeployParDefinitionPackage(DeployToken token, byte[] filePackage, int length) voidvoidping()voidreindex()reserveTask(TaskInstance task) voidvoidsearchProcessInstances(String query, String processID, Date sinceStartDate, Date untilStartDate, Date sinceEndDate, Date untilEndDate, boolean finished) voidsignal(ProcessInstance instanceVO) voidsignal(ProcessInstance instanceVO, String transitionName) voidstartProcess(ProcessInstance process) startTask(TaskInstance task) voidupdate(ProcessInstance process) update(TaskInstance task) voidupdateSwimlane(TaskInstance task, String swimlane, String[] actorIds) voidupgradeParFile(InputStream stream) String[]upgradeProcess(ProcessInstance instanceVO)
-
Method Details
-
downloadParFile
void downloadParFile(ProcessDefinition def, OutputStream stream) throws InternalErrorException, Exception - Throws:
InternalErrorExceptionException
-
canAdmin
boolean canAdmin(ProcessInstance instanceVO) throws InternalErrorException, InternalErrorException, BPMException -
isUserInRole
- Throws:
InternalErrorException
-
getProcessDefinitionIcon
byte[] getProcessDefinitionIcon(Long definitionId) throws InternalErrorException, InternalErrorException -
getProcessDefinitionImage
byte[] getProcessDefinitionImage(ProcessDefinition def) throws InternalErrorException, InternalErrorException -
openDeployParDefinitionTransfer
DeployToken openDeployParDefinitionTransfer() throws InternalErrorException, InternalErrorException, BPMException -
disableProcessDefinition
ProcessDefinition disableProcessDefinition(ProcessDefinition defVO) throws InternalErrorException, InternalErrorException, BPMException -
enableProcessDefinition
ProcessDefinition enableProcessDefinition(ProcessDefinition defVO) throws InternalErrorException, InternalErrorException, BPMException -
getDefinition
ProcessDefinition getDefinition(ProcessInstance process) throws InternalErrorException, InternalErrorException -
getProcessDefinition
ProcessDefinition getProcessDefinition(ProcessInstance process) throws InternalErrorException, InternalErrorException -
cancel
ProcessInstance cancel(ProcessInstance process) throws InternalErrorException, InternalErrorException -
getProcess
ProcessInstance getProcess(long id) throws InternalErrorException, InternalErrorException, BPMException -
getProcessInstance
ProcessInstance getProcessInstance(TaskInstance task) throws InternalErrorException, InternalErrorException -
getProcessLightweight
ProcessInstance getProcessLightweight(long id) throws InternalErrorException, InternalErrorException, BPMException -
newProcess
ProcessInstance newProcess(ProcessDefinition def) throws InternalErrorException, InternalErrorException, BPMException -
newProcess
ProcessInstance newProcess(ProcessDefinition def, boolean start) throws InternalErrorException, InternalErrorException, BPMException -
getProcessLog
ProcessLog[] getProcessLog(ProcessInstance process) throws InternalErrorException, InternalErrorException, BPMException -
getTaskLog
ProcessLog[] getTaskLog(TaskInstance process) throws InternalErrorException, InternalErrorException, BPMException -
getDefinition
TaskDefinition getDefinition(TaskInstance task) throws InternalErrorException, InternalErrorException -
addComment
TaskInstance addComment(TaskInstance task, String comment) throws InternalErrorException, InternalErrorException -
cancel
-
createDummyTask
TaskInstance createDummyTask(long processDefinitionId) throws InternalErrorException, InternalErrorException -
delegateTaskToUser
TaskInstance delegateTaskToUser(TaskInstance task, String username) throws InternalErrorException, InternalErrorException -
executeTask
TaskInstance executeTask(TaskInstance task, String transitionName) throws InternalErrorException, InternalErrorException, BPMException -
getTask
-
reserveTask
TaskInstance reserveTask(TaskInstance task) throws InternalErrorException, InternalErrorException, BPMException -
startTask
TaskInstance startTask(TaskInstance task) throws InternalErrorException, InternalErrorException, BPMException -
update
TaskInstance update(TaskInstance task) throws InternalErrorException, InternalErrorException, BPMException -
getTokens
-
findProcessDefinitionByTextAndJsonQuery
com.soffid.zkdb.api.PagedResult<ProcessDefinition> findProcessDefinitionByTextAndJsonQuery(String text, String jsonQuery, Integer start, Integer pageSize) throws InternalErrorException - Throws:
InternalErrorException
-
findProcessInstance
com.soffid.zkdb.api.PagedResult<ProcessInstance> findProcessInstance(com.soffid.zkdb.api.Query query) throws InternalErrorException - Throws:
InternalErrorException
-
findProcessInstanceByTextAndJsonQuery
com.soffid.zkdb.api.PagedResult<ProcessInstance> findProcessInstanceByTextAndJsonQuery(String text, String jsonQuery, Integer start, Integer pageSize) throws InternalErrorException - Throws:
InternalErrorException
-
findTasksByTextAndJsonQuery
com.soffid.zkdb.api.PagedResult<TaskInstance> findTasksByTextAndJsonQuery(String text, String jsonQuery, Integer start, Integer pageSize) throws InternalErrorException - Throws:
InternalErrorException
-
countMyTasks
-
countNewTasks
-
getCoordinates
-
getCoordinates
-
getResourceAsStream
InputStream getResourceAsStream(ProcessDefinition processdef, String resource) throws InternalErrorException, InternalErrorException -
getResourceAsStream
InputStream getResourceAsStream(ProcessInstance process, String resource) throws InternalErrorException, InternalErrorException -
getUI
-
getUI
-
getDeployMessages
-
upgradeProcess
String[] upgradeProcess(ProcessInstance instanceVO) throws InternalErrorException, InternalErrorException, BPMException -
findChildProcesses
- Throws:
InternalErrorException
-
findParentProceeses
- Throws:
InternalErrorException
-
findUsers
Collection<BPMUser> findUsers(String userName, String givenName, String surName, String group) throws InternalErrorException, InternalErrorException -
findAllProcessDefinitions
List<ProcessDefinition> findAllProcessDefinitions(boolean onlyEnabled) throws InternalErrorException, InternalErrorException -
findGroupTasks
List<TaskInstance> findGroupTasks() throws InternalErrorException, InternalErrorException, BPMException -
findInitiatorProcessDefinitions
List<ProcessDefinition> findInitiatorProcessDefinitions() throws InternalErrorException, InternalErrorException, BPMException -
findMyProcesses
-
findMyTasks
List<TaskInstance> findMyTasks() throws InternalErrorException, InternalErrorException, BPMException -
findMyTasksLightweight
List<TaskInstance> findMyTasksLightweight() throws InternalErrorException, InternalErrorException, BPMException -
findObserverProcessDefinitions
List<ProcessDefinition> findObserverProcessDefinitions() throws InternalErrorException, InternalErrorException, BPMException -
findProcessDefinitions
List<ProcessDefinition> findProcessDefinitions(String name, boolean onlyEnabled) throws InternalErrorException, InternalErrorException -
findProcessDefinitions
List<ProcessDefinition> findProcessDefinitions(String name, PredefinedProcessType processType) throws InternalErrorException, InternalErrorException -
findProcessInstances
List<ProcessInstance> findProcessInstances(ProcessDefinition def) throws InternalErrorException, InternalErrorException, BPMException -
findProcessInstances
List<ProcessInstance> findProcessInstances(List definitions, String processId, String estado, String actor, Date startDate, boolean finalizada) throws InternalErrorException, InternalErrorException, BPMException -
findSupervisorProcessDefinitions
List<ProcessDefinition> findSupervisorProcessDefinitions() throws InternalErrorException, InternalErrorException, BPMException -
findTaskDefinitions
List<TaskDefinition> findTaskDefinitions(ProcessDefinition def) throws InternalErrorException, InternalErrorException, BPMException -
findTasks
List<TaskInstance> findTasks(List<ProcessInstance> def, TaskDefinition task, String actor, Date processStartDate, Date taskCreationDate, boolean finalizada) throws InternalErrorException, InternalErrorException, BPMException -
findTasks
List<TaskInstance> findTasks(List<ProcessInstance> def, String process, TaskDefinition task, String actor, Date processStartDate, Date taskCreationDate, boolean finalizada) throws InternalErrorException, InternalErrorException, BPMException -
getActiveJobs
-
getActiveJobs
List<Job> getActiveJobs(ProcessInstance process) throws InternalErrorException, InternalErrorException, BPMException -
getActiveTasks
List<TaskInstance> getActiveTasks(ProcessInstance process) throws InternalErrorException, InternalErrorException, BPMException -
getAllJobs
-
getPendingTasks
List<TaskInstance> getPendingTasks(ProcessInstance process) throws InternalErrorException, InternalErrorException, BPMException -
searchProcessInstances
List<ProcessInstance> searchProcessInstances(String query, String processID, Date sinceStartDate, Date untilStartDate, Date sinceEndDate, Date untilEndDate, boolean finished) throws InternalErrorException, InternalErrorException, BPMException -
getUIClassesForTask
Map getUIClassesForTask(ProcessDefinition def) throws InternalErrorException, InternalErrorException, SQLException, IOException -
getJBpmConfiguration
org.jbpm.JbpmConfiguration getJBpmConfiguration() throws InternalErrorException, InternalErrorException -
getContext
-
addComment
void addComment(ProcessInstance process, String comment) throws InternalErrorException, InternalErrorException -
endDeployParDefinitionTransfer
void endDeployParDefinitionTransfer(DeployToken token) throws InternalErrorException, InternalErrorException, BPMException -
linkProcesses
- Throws:
InternalErrorException
-
nextDeployParDefinitionPackage
void nextDeployParDefinitionPackage(DeployToken token, byte[] filePackage, int length) throws InternalErrorException, InternalErrorException, BPMException -
pauseJob
-
ping
-
reindex
-
resumeJob
-
retryJob
-
signal
void signal(ProcessInstance instanceVO) throws InternalErrorException, InternalErrorException, BPMException -
signal
void signal(ProcessInstance instanceVO, String transitionName) throws InternalErrorException, InternalErrorException, BPMException -
startProcess
void startProcess(ProcessInstance process) throws InternalErrorException, InternalErrorException, BPMException -
update
void update(ProcessInstance process) throws InternalErrorException, InternalErrorException, BPMException -
updateSwimlane
void updateSwimlane(TaskInstance task, String swimlane, String[] actorIds) throws InternalErrorException, InternalErrorException, BPMException -
upgradeParFile
-