Package org.bgerp.dao.expression
Class ProcessChangeExpressionObject
java.lang.Object
org.bgerp.dao.expression.ExpressionContextAccessingObject
org.bgerp.dao.expression.ProcessChangeExpressionObject
- All Implemented Interfaces:
ExpressionObject
- Direct Known Subclasses:
ProcessChangeFunctions
Expression object for performing process related operations
-
Field Summary
Fields inherited from class org.bgerp.dao.expression.ExpressionContextAccessingObject
context -
Constructor Summary
ConstructorsConstructorDescriptionProcessChangeExpressionObject(Connection con, DynActionForm form, Process process) ProcessChangeExpressionObject(Process process, DynActionForm form, Connection con) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExecutors(Set<Integer> ids) Add executors in the process.voidaddExecutors(Set<Integer> groupIds, Set<Integer> userIds, int roleId) Adds process executers with defined groups and roles.voidAdd execution groups in the processvoiddelete()Delete the current processvoiddeleteExecutors(Set<Integer> ids) Delete process executorsvoiddeleteGroups(Set<Integer> ids) Delete execution groups and related executors in the processvoidemailNotifyExecutors(int paramId, String subject, String text) Deprecated.voidemailNotifyUsers(Collection<Integer> userIds, int paramId, String subject, String text) Deprecated.voidsetPriority(int value) Set process priorityvoidsetStatus(int value) Change process statusvoidChange process statusvoid
-
Constructor Details
-
ProcessChangeExpressionObject
-
ProcessChangeExpressionObject
@Deprecated public ProcessChangeExpressionObject(Process process, DynActionForm form, Connection con) Deprecated.
-
-
Method Details
-
toContext
- Specified by:
toContextin interfaceExpressionObject- Overrides:
toContextin classExpressionContextAccessingObject
-
delete
Delete the current process- Throws:
Exception
-
addGroups
Add execution groups in the process- Parameters:
groupIds- the group IDsroleId- the role ID- Throws:
Exception
-
deleteGroups
Delete execution groups and related executors in the process- Parameters:
ids- the group IDs- Throws:
Exception
-
addExecutors
Add executors in the process. Execution groups must be already set there. Any of added executors must have only one of the process execution groups.- Parameters:
ids- the executor user IDs- Throws:
BGMessageException- not any of added executors have only one of the process execution groupsException
-
addExecutors
Adds process executers with defined groups and roles. Execution groups have to be already added.- Parameters:
groupIds- the group IDs, ornullfor adding to all execution groupsuserIds- the executor IDs to be addedroleId- the role >= 0 or -1 for adding to execution groups with any role- Throws:
Exception
-
deleteExecutors
Delete process executors- Parameters:
ids- the executor user IDs- Throws:
Exception
-
setPriority
Set process priority- Parameters:
value- the priority- Throws:
SQLException
-
setStatus
Change process status- Parameters:
value- the status- Throws:
Exception
-
setStatus
Change process status- Parameters:
value- the status- Throws:
Exception
-
emailNotifyExecutors
@Deprecated public void emailNotifyExecutors(int paramId, String subject, String text) throws Exception Deprecated.- Throws:
Exception
-
emailNotifyUsers
@Deprecated public void emailNotifyUsers(Collection<Integer> userIds, int paramId, String subject, String text) throws Exception Deprecated.- Throws:
Exception
-