Class ProcessChangeExpressionObject

java.lang.Object
org.bgerp.dao.expression.ExpressionContextAccessingObject
org.bgerp.dao.expression.ProcessChangeExpressionObject
All Implemented Interfaces:
ExpressionObject
Direct Known Subclasses:
ProcessChangeFunctions

public class ProcessChangeExpressionObject extends ExpressionContextAccessingObject
Expression object for performing process related operations
  • Constructor Details

  • Method Details

    • toContext

      public void toContext(Map<String,Object> context)
      Specified by:
      toContext in interface ExpressionObject
      Overrides:
      toContext in class ExpressionContextAccessingObject
    • delete

      public void delete() throws Exception
      Delete the current process
      Throws:
      Exception
    • addGroups

      public void addGroups(Set<Integer> groupIds, int roleId) throws Exception
      Add execution groups in the process
      Parameters:
      groupIds - the group IDs
      roleId - the role ID
      Throws:
      Exception
    • deleteGroups

      public void deleteGroups(Set<Integer> ids) throws Exception
      Delete execution groups and related executors in the process
      Parameters:
      ids - the group IDs
      Throws:
      Exception
    • addExecutors

      public void addExecutors(Set<Integer> ids) throws BGMessageException, Exception
      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 groups
      Exception
    • addExecutors

      public void addExecutors(Set<Integer> groupIds, Set<Integer> userIds, int roleId) throws Exception
      Adds process executers with defined groups and roles. Execution groups have to be already added.
      Parameters:
      groupIds - the group IDs, or null for adding to all execution groups
      userIds - the executor IDs to be added
      roleId - the role >= 0 or -1 for adding to execution groups with any role
      Throws:
      Exception
    • deleteExecutors

      public void deleteExecutors(Set<Integer> ids) throws Exception
      Delete process executors
      Parameters:
      ids - the executor user IDs
      Throws:
      Exception
    • setPriority

      public void setPriority(int value) throws SQLException
      Set process priority
      Parameters:
      value - the priority
      Throws:
      SQLException
    • setStatus

      public void setStatus(int value) throws Exception
      Change process status
      Parameters:
      value - the status
      Throws:
      Exception
    • setStatus

      public void setStatus(int value, String comment) throws Exception
      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