Package es.caib.bpm.servei.ejb
Interface BpmEngine
-
public interface BpmEngine
EJB BpmEngine
-
-
Method Summary
-
-
-
Method Detail
-
canAdmin
boolean canAdmin(ProcessInstance instanceVO) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
isUserInRole
boolean isUserInRole(String role) throws InternalErrorException
- Throws:
InternalErrorException
-
getProcessDefinitionIcon
byte[] getProcessDefinitionIcon(Long definitionId) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
getProcessDefinitionImage
byte[] getProcessDefinitionImage(ProcessDefinition def) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
findProcessDefinitionByTextAndJsonQuery
PagedResult<ProcessDefinition> findProcessDefinitionByTextAndJsonQuery(String text, String jsonQuery, Integer start, Integer pageSize) throws InternalErrorException
- Throws:
InternalErrorException
-
findProcessInstanceByTextAndJsonQuery
PagedResult<ProcessInstance> findProcessInstanceByTextAndJsonQuery(String text, String jsonQuery, Integer start, Integer pageSize) throws InternalErrorException
- Throws:
InternalErrorException
-
findTasksByTextAndJsonQuery
PagedResult<TaskInstance> findTasksByTextAndJsonQuery(String text, String jsonQuery, Integer start, Integer pageSize) throws InternalErrorException
- Throws:
InternalErrorException
-
disableProcessDefinition
ProcessDefinition disableProcessDefinition(ProcessDefinition defVO) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
enableProcessDefinition
ProcessDefinition enableProcessDefinition(ProcessDefinition defVO) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
getDefinition
ProcessDefinition getDefinition(ProcessInstance process) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
getProcessDefinition
ProcessDefinition getProcessDefinition(ProcessInstance process) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
cancel
ProcessInstance cancel(ProcessInstance process) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
getProcess
ProcessInstance getProcess(long id) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
getProcessInstance
ProcessInstance getProcessInstance(TaskInstance task) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
getProcessLightweight
ProcessInstance getProcessLightweight(long id) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
newProcess
ProcessInstance newProcess(ProcessDefinition def) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
newProcess
ProcessInstance newProcess(ProcessDefinition def, boolean start) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
getProcessLog
ProcessLog[] getProcessLog(ProcessInstance process) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
getTaskLog
ProcessLog[] getTaskLog(TaskInstance process) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
getDefinition
TaskDefinition getDefinition(TaskInstance task) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
addComment
TaskInstance addComment(TaskInstance task, String comment) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
cancel
TaskInstance cancel(TaskInstance task) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
createDummyTask
TaskInstance createDummyTask(long processDefinitionId) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
delegateTaskToUser
TaskInstance delegateTaskToUser(TaskInstance task, String username) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
executeTask
TaskInstance executeTask(TaskInstance task, String transitionName) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
getTask
TaskInstance getTask(long id) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
reserveTask
TaskInstance reserveTask(TaskInstance task) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
startTask
TaskInstance startTask(TaskInstance task) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
update
TaskInstance update(TaskInstance task) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
getTokens
Token[] getTokens(long id) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
countMyTasks
int countMyTasks() throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
countNewTasks
int countNewTasks() throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
getCoordinates
int[] getCoordinates(ProcessInstance task) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
getCoordinates
int[] getCoordinates(TaskInstance task) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
getResourceAsStream
InputStream getResourceAsStream(ProcessDefinition processdef, String resource) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
getResourceAsStream
InputStream getResourceAsStream(ProcessInstance process, String resource) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
getUI
String getUI(ProcessInstance process) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
getUI
String getUI(TaskInstance task) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
getDeployMessages
String[] getDeployMessages() throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
findChildProcesses
Collection<Long> findChildProcesses(Long processId) throws InternalErrorException
- Throws:
InternalErrorException
-
findParentProceeses
Collection<Long> findParentProceeses(Long processId) throws InternalErrorException
- Throws:
InternalErrorException
-
findUsers
Collection<BPMUser> findUsers(String userName, String givenName, String surName, String group) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
findAllProcessDefinitions
List<ProcessDefinition> findAllProcessDefinitions(boolean onlyEnabled) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
findGroupTasks
List<TaskInstance> findGroupTasks() throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
findInitiatorProcessDefinitions
List<ProcessDefinition> findInitiatorProcessDefinitions() throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
findMyProcesses
List<ProcessInstance> findMyProcesses() throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
findMyTasks
List<TaskInstance> findMyTasks() throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
findMyTasksLightweight
List<TaskInstance> findMyTasksLightweight() throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
findObserverProcessDefinitions
List<ProcessDefinition> findObserverProcessDefinitions() throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
findProcessDefinitions
List<ProcessDefinition> findProcessDefinitions(String name, boolean onlyEnabled) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
findProcessDefinitions
List<ProcessDefinition> findProcessDefinitions(String name, PredefinedProcessType processType) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
findProcessInstances
List<ProcessInstance> findProcessInstances(ProcessDefinition def) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
findProcessInstances
List<ProcessInstance> findProcessInstances(List definitions, String processId, String estado, String actor, Date startDate, boolean finalizada) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
findSupervisorProcessDefinitions
List<ProcessDefinition> findSupervisorProcessDefinitions() throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
findTaskDefinitions
List<TaskDefinition> findTaskDefinitions(ProcessDefinition def) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
findTasks
List<TaskInstance> findTasks(List<ProcessInstance> def, TaskDefinition task, String actor, Date processStartDate, Date taskCreationDate, boolean finalizada) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
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
- Throws:
InternalErrorException
BPMException
-
getActiveJobs
List<Job> getActiveJobs() throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
getActiveJobs
List<Job> getActiveJobs(ProcessInstance process) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
getActiveTasks
List<TaskInstance> getActiveTasks(ProcessInstance process) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
getAllJobs
List<Job> getAllJobs() throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
getPendingTasks
List<TaskInstance> getPendingTasks(ProcessInstance process) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
searchProcessInstances
List<ProcessInstance> searchProcessInstances(String query, String processID, Date sinceStartDate, Date untilStartDate, Date sinceEndDate, Date untilEndDate, boolean finished) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
getConfiguration
Map<String,String> getConfiguration() throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
getUIClassesForTask
Map getUIClassesForTask(ProcessDefinition def) throws InternalErrorException, InternalErrorException, SQLException, IOException
-
getJBpmConfiguration
org.jbpm.JbpmConfiguration getJBpmConfiguration() throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
getContext
org.jbpm.JbpmContext getContext() throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
addComment
void addComment(ProcessInstance process, String comment) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
changeConfiguration
void changeConfiguration(Map<String,String> m) throws InternalErrorException, InternalErrorException, IOException
- Throws:
InternalErrorException
IOException
-
endDeployParDefinitionTransfer
void endDeployParDefinitionTransfer() throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
linkProcesses
void linkProcesses(Long parentProcess, Long childProcess) throws InternalErrorException
- Throws:
InternalErrorException
-
nextDeployParDefinitionPackage
void nextDeployParDefinitionPackage(byte[] filePackage, int length) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
openDeployParDefinitionTransfer
void openDeployParDefinitionTransfer() throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
pauseJob
void pauseJob(Job jobvo) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
ping
void ping() throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
reindex
void reindex() throws InternalErrorException, InternalErrorException, IOException
- Throws:
InternalErrorException
IOException
-
resumeJob
void resumeJob(Job jobvo) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
retryJob
void retryJob(Job jobvo) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
signal
void signal(ProcessInstance instanceVO) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
signal
void signal(ProcessInstance instanceVO, String transitionName) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
startProcess
void startProcess(ProcessInstance process) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
update
void update(ProcessInstance process) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
updateSwimlane
void updateSwimlane(TaskInstance task, String swimlane, String[] actorIds) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
upgradeParFile
void upgradeParFile(InputStream stream) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
upgradeProcess
void upgradeProcess(ProcessInstance instanceVO) throws InternalErrorException, InternalErrorException, BPMException
- Throws:
InternalErrorException
BPMException
-
-