Agentflow
V3.1

si.wfinterface
Interface WCCI

All Superinterfaces:
DBService, FileService, FlowService, OrgService, PDEService, SecurityService, UtilityService

public interface WCCI
extends DBService, FileService, FlowService, PDEService, OrgService, SecurityService, UtilityService

WCCI.

Version:
1.1.5,
Author:
Flowring co.

Field Summary
 
Fields inherited from interface pe.pase.UtilityService
CACHE_TYPE_ALL, CACHE_TYPE_ARTIFACT, CACHE_TYPE_ORG, CACHE_TYPE_PROCESS, CACHE_TYPE_TASK
 
Method Summary
 void addDebugLog(java.lang.String msg)
          Add a debug log to server.
 void addErrLog(java.lang.String msg)
          Add an error log to server.
 void addExeLog(java.lang.String msg)
          Add a execution log to server.
 void addInfoLog(java.lang.String msg)
          Add an information log to server.
 boolean addMonitorRelation(java.lang.String sourceTaskID, java.lang.String createdRootTaskID)
          Add task monitor relation, store root task ID and those created root task ID when executed.
 boolean addMonitorRelation(java.lang.String sourceTaskID, java.util.Vector createdRootTaskIDs)
          Add task monitor relation, store root task ID and those created root task ID when executed.
 int addNewSessionConnectionURL(int type, java.lang.String name, java.lang.String dburl, java.lang.String username, java.lang.String password)
          Add a new db URL at the end of the db configuration list.
 int addNewSessionConnectionURL(int type, java.lang.String name, java.lang.String dburl, java.lang.String username, java.lang.String password, int minConnCount, int maxConnCount)
          Add a new db URL at the end of the db configuration list.
 void addSessionConnectionURL(int seq, int type, java.lang.String dburl, java.lang.String username, java.lang.String password)
          Set a db URL to db configuration.
 void addSessionConnectionURL(int seq, int type, java.lang.String name, java.lang.String dburl, java.lang.String username, java.lang.String password)
          Set a db URL to db configuration.
 void addSessionConnectionURL(int seq, int type, java.lang.String name, java.lang.String dburl, java.lang.String username, java.lang.String password, int minConnCount, int maxConnCount)
          Set a db URL to db configuration.
 void addWarningLog(java.lang.String msg)
          Add a warning log to server.
 java.util.List ArtSQLloadValue(java.lang.String sql)
          The method is used to load value from database by nickname (the RTRepository).
 java.util.Vector batchProcess(java.util.List completeTask, java.util.List removeRootTask, java.util.List createPro)
          Batch create, remove and complete process Examples: // CompleteTask var completeVector = new java.util.Vector(); var stateID = "AST0371992486182500"; var taskID = "Tsk000000226232"; var tsk = WCCI.getTask(taskID); var artInstance = tsk.getArtInstance(); var Result = WCCI.setArtInsState(artInstance, stateID); completeVector.add(tsk); java.lang.System.out.println("Complete"); // RemoveRootTask var removeVector = new java.util.Vector(); removeVector.add("Tsk000000835835"); java.lang.System.out.println("Remove"); // CreateProcess var createVector = new java.util.Vector(); var cv = new java.util.Vector(); var userID = "jdwa"; var proID = "PRO0570993694941810"; var hm = new java.util.HashMap(); var popUp = new java.lang.Boolean("true"); cv.add(userID); cv.add(proID); cv.add(hm); cv.add(popUp); createVector.add(cv); java.lang.System.out.println("Create"); // Call bachProcess var ret = WCCI.batchProcess(completeVector, removeVector, createVector); java.lang.System.out.println(ret);
 boolean bypassTask(Task p_Task, java.lang.String p_AstID)
          Bypass the task.
 boolean changePassword(java.lang.String loginID, java.lang.String newPwd)
          The method is used to change the password of some member without checking old password.
 boolean changePassword(java.lang.String memID, java.lang.String oldPwd, java.lang.String newPwd)
          The method is used to change the password of some member.
 void clearCache()
          Clear the cache of the PASE server.
 void closeSessionConnection(java.lang.String session)
          Close a SessionConnection object
 void commitSessionConnection(java.lang.String session)
          Make commit on the connection
 java.util.HashMap completeTask(Task t)
          Complete the task.
 int connectServer(java.lang.String host, java.lang.String port)
          Connect to the PASE server.
 PASEartInstance createFreqArtInstance(java.lang.String aID)
          Create artifact instance, for FreqAp use
 java.lang.String createProcess(java.lang.String userID, java.lang.String proID, java.util.HashMap args, boolean isPopUp)
          Create a Process.
 SessionConnection createSessionConnection(int seq)
          Create a SessionConnection object with database configuration, by the specific sequence.
 SessionConnection createSessionConnection(java.lang.String name)
          Create a SessionConnection object with database configuration, by the specific name.
 boolean deleteCompany(Company company)
          delete the Company in database.
 boolean deleteDepartment(Department department)
          delete the Department in database.
 boolean deleteGlobals(java.lang.String rootTaskID)
          Delete Globals data from database.
 boolean deleteMemberRecord(MemberRecord memberRecord)
          delete the MemberRecord in database.
 boolean deletePASEMessage(PASEMessage msg)
          Delete message from database.
 boolean deletePASEMessageByID(java.lang.String msgID)
          Delete message from database with message ID.
 boolean deleteRole(Role role)
          delete the Role in database.
 java.util.HashMap deleteSessionConnectionURL(java.lang.String name)
          Delete a db URL from db configuration.
 int disconnectServer()
          Disconnect to the PASE server.
 boolean forceReassignTask(java.lang.String p_TaskID, java.lang.String p_MemID)
          Force to reassign the task.
 boolean forceReassignTask(Task p_Task, MemberRecord p_MR)
          Force to reassign the task.
 long getAdminLoginTime(java.lang.String loginID)
          Get login time for a Administration tool user.
 AFConnection getAFConnection()
           
 java.util.Vector getAllMember()
          Return all member of system
 java.util.List getAllMemberByComID(java.lang.String comID)
          Get all MemberRecord Objects by the specified company id
 java.util.List getAllMemberByComID(java.lang.String comID, boolean searchSubCompany)
          Get all MemberRecord Objects by the specified company id, include sub company
 java.util.List getAllUnassignedMember()
          get all members which are not assigned any role.
 java.util.Vector getApprovalHistoryRootTaskOfJoinMember(java.lang.String mbrID)
          Return a Approval History Root Task List of the Member(mbrID)
 Artifact getArtifact(java.lang.String aID)
          Return a data object of artifact.
 java.util.Vector getArtifactForm(java.lang.String aID)
          Return artifact forms of some specific artifact.
 java.util.Vector getArtifactOfCompany()
          Return all artifacts.
 java.util.Vector getArtifactOfProject(java.lang.String prjID)
          Return all artifact of some specific project.
 PASEartInstance getArtInstance(java.lang.String iID)
          Return a data object of artifact instance with current Task.
 PASEartInstance getArtInstance(java.lang.String iID, java.lang.String tID)
          Return a data object of artifact instance with specific task.
 java.util.Vector getArtInstanceOfArtifact(java.lang.String aID)
          Return all artifact instances instanciated by some specific artifact.
 java.lang.String getArtTskID(java.lang.String iID)
          Get the latest associated TaskID with the Artifact Instance.
 BBS getBBS()
           
 com.flowring.schedule.UserCalendar getCalendar(java.lang.String id)
          Get UserCalendar by id.
 Company getCompany()
          Return a data object of company.
 java.util.HashMap getCSTaskNote(java.lang.String rootTID)
          get CSTask Notes that are written before the given task.
 int getDBNameUser()
          Return the number of NameUser in database
 int getDBOrgCount()
          Return the number of Organization in database
 DBProcess getDBProcess(java.lang.String pID)
          Return a data object of process.
 DBService getDbService()
           
 Department getDepartment(java.lang.String dID)
          Return a data object of department by ID.
 EmailTemplate getEmailTemplate(java.lang.String etID)
           
 EnterpriseModel getEnterpriseDiagram()
          Get the Enterprise Diagram data model
 FileManager getFileManager()
          Get a FileManager object.
 FileService getFileService()
           
 java.lang.String getFlowServerHost()
          Get the PASE server address.
 java.lang.String getFlowServerPort()
          Get the PASE server port.
 FlowService getFlowService()
           
 java.util.Vector getFreqApItemList()
          Return a FreqAp diagram item Vector
 java.util.Vector getFreqApListOfMember(java.lang.String memID)
          Return a PASEFreqAp List of the specific member.
 java.util.Vector getFreqApNodeList()
          Return a PASEFreqApNode list that will be shown in the FreqAP diagram.
 java.util.HashMap getGlobals(java.lang.String rootTaskID)
          Get Globals data from previous setGlobals function.
 java.util.Vector getHalfHolidays()
          Get the half-holidays list
 java.util.Vector getHistoryRootTaskOfJoinMember(java.lang.String mbrID)
          Return a History Root Task List of the Member(mbrID)
 java.util.Vector getHolidays()
          Get the holidays list of system's default calendar
 java.util.Vector getInvolvedExecutors(java.lang.String rootTaskID)
          S Return ID list of executors who involved in the root process Examples: var v = WCCI.getInvolvedExecutors("Tsk000000835835");
 java.util.Vector getInvolvedMembers(java.lang.String rootTaskID)
          Return ID list of members who involved in the root process Examples: var v = WCCI.getInvolvedMembers("Tsk000000835835");
 int getLicenseNameUser()
          Return the licensed number of NameUser
 int getLicenseOrgCount()
          Return the licensed number of Organizations
 java.lang.String[] getManager(java.lang.String id)
          Get manager id by member id, role id, or department id.
 java.util.Vector getManagersOfDRM(java.lang.String id)
          Get all manager id by member id, role id, or department id.
 MemberRecord getMember(java.lang.String id)
          Return a data object of member by ID, LoginID, or Chinese-Name.
 AccessMember getMemberAccess(java.lang.String mID)
          Get the access config of Agenda for the specific member
 AccessAdmin getMemberAdminAccess(java.lang.String mID)
          Get the access config of Admin for the specific member
 java.util.Vector getMemberArtifactAccess(java.lang.String mID)
          Get the access config list of Agenda's function "artifact search" for the specific member
 MemberRecord getMemberByCName(java.lang.String mName)
          Return a data object of member by Chinese-Name.
 MemberRecord getMemberByID(java.lang.String mID)
          Return a data object of member by ID.
 MemberRecord getMemberByName(java.lang.String mLoginID)
          Return a data object of member by LoginID.
 AccessAdmin getMemberDesignerAccess(java.lang.String mID)
          Get the access config of Designer for the specific member
 AccessOnLineUser getMemberOnLineAccess(java.lang.String mID)
          Get the access config of Agenda's function "on-line user" for the specific member
 java.util.Vector getMemberTaskAccess(java.lang.String mID)
          Get the access config list of Agenda's function "task search" for the specific member
 java.util.Vector getOnlineAdminUser()
          Get the on-line admin user list
 java.util.Vector getOnlineUser()
          Get the on-line user list
 OrgService getOrgService()
           
 PASEFreqAp getPASEFreqAp(java.lang.String freID)
          Return a PASEFreqAp with the specific ID.
 java.util.Vector getPASEMessageOfMember(java.lang.String mID)
          Get a member's messages
 PASEOrgModel getPASEOrgModel()
          Returns a data object of PASEOrgModel.
 java.util.Vector getPASEProcessOfMember(java.lang.String mID)
          Return the root processes of some specific member.
 PDEService getPdeService()
           
 java.util.Vector getPDiagramDetail(java.lang.String rootTID)
          Return the detail of process diagram.
 java.util.HashMap getPDiagramState(java.lang.String rootTID)
          Return the states of process diagram.
 java.util.HashMap getProcessDiagram(java.lang.String rootPID, java.lang.String rootTaskID)
          Return a process diagram
 java.util.HashMap getProcessDiagramAndState(java.lang.String rootPID, java.lang.String rootTaskID)
          Get Monitor Diagram Data
 java.util.HashMap getProcessView(java.lang.String rootPID)
           
 java.util.HashMap getProductInfo()
          Get the product version info.
 Project getProject(java.lang.String prjID)
          Return a data object of project by ID.
 java.util.Vector getProjectOfCompany()
          Return all projects.
 java.util.Vector getProjectOfDepartment(java.lang.String dID)
          Return the projects of some specific department.
 java.util.Vector getProjectOfManager(java.lang.String managerID)
          Return the projects with some specific project manager.
 Project getProjectOfPASEProcess(java.lang.String proID)
          Return the project of the PASEProcess.
 ProjectRole getProjectRole(java.lang.String rID)
          Return a data object of project role by ID.
 java.util.Vector getRequestHistoryRootTaskOfJoinMember(java.lang.String mbrID)
          Return a Request History Root Task List of the Member(mbrID)
 Role getRole(java.lang.String rID)
          Return a data object of role by ID.
 java.util.Vector getRootDBProcessByName(java.lang.String pName)
          Return all root process of some specific process name.
 java.util.Vector getRootDBProcessOfProject(java.lang.String prjID)
          Return all root process of some specific project.
 java.util.Vector getRootTaskOfJoinMember(java.lang.String mID)
          Return root tasks with some specific member is involved in.
 java.util.Vector getRootTaskOfJoinMember(java.lang.String mID, int state)
          Return root tasks with the specific member is involved in and the specific state.
 java.util.Vector getRootTaskOfJoinMember(java.lang.String mID, java.lang.String proID)
          Return root tasks with the specific member is involved in and the specific state.
 java.util.Vector getRootTaskOfMember(java.lang.String mID)
          Return root tasks executed by some specific member.
 java.util.Vector getRootTaskOfMember(java.lang.String mID, int state)
          Return root tasks which in some state and executed by some specific member.
 java.util.Vector getRootTaskOfProcess(java.lang.String proID)
          Return the root task list of the Process.
 java.util.Vector getRootTaskOfProcess(java.lang.String proID, int state)
          Return the root task list of the Process with the specific state.
 SecurityService getSecurityService()
           
 java.util.HashMap getServerStatus()
          Get server status.
 long getServerTime()
          Get server time.
 java.util.HashMap getSessionConnectionURL(int seq)
          Get a db configuration by given sequence number.
 java.util.HashMap getSessionConnectionURL(java.lang.String name)
          Get a db configuration by given name.
 java.util.Vector getSessionConnectionURLList()
          Get all db configurations.
 java.util.Vector getSubMemListOfMember(java.lang.String mID)
          Return a MemberRecord ID list of sub-members of the member.
 java.util.Vector getSubTaskList(java.lang.String parentID)
          Return subtasks of some specific task.
 Task getTask(java.lang.String tID)
          Return a data object of task.
 java.util.Vector getTaskIDListOfMember(java.lang.String mID, int sc, int ec, java.lang.String order)
          Return all task id of some specific member. parameter 'order' should be one of the followring : TASK_SORT_PROID, TASK_SORT_STATE, TASK_SORT_MEMID, TASK_SORT_EXEID, TASK_SORT_DEPID, TASK_SORT_ROLID, TASK_SORT_STARTTIME, TASK_SORT_ENDTIME, TASK_SORT_TYPE, TASK_SORT_KEYWORD, TASK_SORT_PRIORITY
 java.util.Vector getTaskList(java.lang.String mID)
          Return all tasks of some specific member.
 TaskManager getTaskManager()
          Get a TaskManager object.
 java.util.Vector getTaskOfMember(java.lang.String mID)
          Return tasks executed by some specific member.
 java.util.Vector getTaskOfMember(java.lang.String mID, int state)
          Return root tasks which in some state and executed by some specific member.
 java.util.Vector getTaskOfProcess(java.lang.String proID)
          Return the task list of the Process.
 java.util.Vector getTaskOfProcess(java.lang.String proID, int state)
          Return the task list of the Process with the specific state.
 java.util.Vector getTaskOfRootTask(java.lang.String rootTID)
          Return tasks of some specific root task.
 java.util.HashMap getTreeTaskList(java.lang.String mID)
          Return the project-tasks vector of some specific member.
 long getUserLoginTime(java.lang.String loginID)
          Get login time for a Agenda user.
 UtilityService getUtilityService()
           
 int[] getWeek()
          Get the weeks list of system's default calendar
 java.util.Vector getWorkdays()
          Get the workdays list.
 boolean goBackTo(java.lang.String fromTaskID, java.lang.String toProID, boolean artMode)
          Sets the executing task back to another process which had been executed.
 boolean goBackTo(java.lang.String fromTaskID, Task toTask, boolean artMode)
          Sets the executing task back to another process which had been executed.
 boolean goBackTo(java.lang.String fromTaskID, Task toTask, boolean artMode, boolean isEmailNotify)
          Sets the executing task back to another process which had been executed.
 boolean goBackTo(Task fromTask, java.lang.String toProID, boolean artMode)
          Sets the executing task back to another process which had been executed.
 java.util.HashMap goBackToWithDetailRet(Task fromTask, java.lang.String toProID, boolean artMode)
          Sets the executing task back to another process which had been executed.
 java.util.HashMap initAgenda(java.lang.String user)
          Initialize user's personal Agenda.
 void initHoliday()
          Initialize holidays.
 java.util.HashMap initProcess(java.lang.String user, PASEProcess process)
          Initial the process.
 java.util.HashMap initProcess(java.lang.String user, java.lang.String roleID, java.lang.String depID, java.lang.String processID, java.lang.String processName, java.lang.String subject, int priority)
          Initial the process.
 boolean insertCompany(Company company)
          insert new Company into database.
 boolean insertDepartment(Department department)
          insert new Department into database.
 boolean insertMemberRecord(MemberRecord memberRecord)
          insert new MemberRecord into database.
 boolean insertRole(Role role)
          insert new Role into database.
 boolean isHalfHoliday(java.lang.String date)
          Check specified date whether it's a half of holiday in system's default calendar or not.
 boolean isHalfHoliday(java.lang.String date, java.lang.String memID)
          Check if the date is half-holiday in member's calendar.
 boolean isHoliday(java.lang.String date)
          Check specified date whether it's a holiday in system's default calendar or not.
 boolean isHoliday(java.lang.String date, java.lang.String memID)
          Check if the date is holiday in member's calendar
 boolean isLockedTask(java.lang.String tskID)
          Check the task locking state
 boolean isRestSat(java.lang.String date)
          Check specified date whether it's a rest Saturday or not.
 boolean isServerConnecting()
          Check if wcci is connecting with the server.
 java.util.Vector loadValueWithSessionConnection(java.lang.String session, java.lang.String sqlcmd)
          Invoke the connection to load value
 void lockTask(java.lang.String tskID)
          Lock the root task of the task.
 java.util.HashMap login(java.lang.String user, java.lang.String pass)
          User login the PASE server.
 java.util.Map login(java.lang.String user, java.lang.String pass, boolean toCheckDup)
          To authenticate users (it doesn't register).
 void logout(java.lang.String user)
          User logout the PASE server.
 Company newCompany()
          generate a new Company object include ComID.
 Department newDepartment()
          generate a new Department object include DepID.
 MemberRecord newMemberRecord()
          generate a new MemberRecord object include MemID.
 Role newRole()
          generate a new Role object include RolID.
 java.util.HashMap notifyTask(java.lang.String tskID)
          Remove be state of waiting of the task.
 boolean pickQueueTask(Task t)
          Pick the queue of the task.
 boolean reflushProcessManager()
          Cron-related functions, reflush cron-task schedule in Server.
 boolean registerClient(java.lang.String name)
           
 void registerClient(java.lang.String user, ClientRMI client)
          Register user's client in the PASE server.
 boolean removeTaskByAdm(java.lang.String p_TaskID)
          Force to remove task.
 boolean removeTaskByUser(java.lang.String p_RootTaskID, java.lang.String p_MemID)
          Force to remove task by the specific member.
 boolean resetDeputyAndDeputyState(java.lang.String p_MyMemID, java.lang.String p_DeputyMemID, boolean p_DeputyState)
          Refresh deputy data in cache.
 boolean resetMemberDelegation(MemberRecord mRecord)
          Redispatch tasks to deputy of the member and also update memberrecord.
 void rollbackSessionConnection(java.lang.String session)
          Make rollback on the connection
 void saveCalendar(com.flowring.schedule.UserCalendar cal)
          Save UserCalendar.
 void saveSchedule(java.util.Vector hdays, java.util.Vector h_days, java.util.Vector wdays, int[] w)
          Save server's schedule.
 java.util.Vector searchData(SearchCondition cond)
          Get searched result by using given conditions.
 int searchDataCount(SearchCondition cond)
          Get searched number by using given conditions.
 void sendHTMLMail(java.lang.String from, java.lang.String to, java.lang.String subject, java.lang.String text)
          Send E-Mail through internet, using HTML format.
 void sendHTMLMail(java.lang.String from, java.lang.String to, java.lang.String cc, java.lang.String subject, java.lang.String text)
          Send E-Mail through internet, using HTML format.
 void sendHTMLMail(java.lang.String from, java.lang.String to, java.lang.String cc, java.lang.String subject, java.lang.String text, java.util.Vector fileList)
          Send E-Mail through internet, using HTML format.
 void sendHTMLMailExt(java.lang.String from, java.lang.String to, java.lang.String cc, java.lang.String subject, java.lang.String text, java.util.Vector fileList, java.lang.String tskID)
          Send E-Mail through internet, using HTML format.
 void sendHTMLMailExt(java.lang.String from, java.lang.String to, java.lang.String cc, java.lang.String subject, java.lang.String text, java.util.Vector fileList, Task task)
          Send E-Mail through internet, using HTML format.
 void sendHTMLMailExt(java.lang.String from, java.lang.String to, java.lang.String cc, java.lang.String subject, java.lang.String text, java.util.Vector fileList, Task task, java.lang.String script)
          Send E-Mail through internet, using HTML format.
 void sendMail(java.lang.String from, java.lang.String to, java.lang.String subject, java.lang.String text)
          Send E-Mail through internet.
 void sendMail(java.lang.String from, java.lang.String to, java.lang.String cc, java.lang.String subject, java.lang.String text)
          Send E-Mail through internet.
 void sendMail(java.lang.String from, java.lang.String to, java.lang.String cc, java.lang.String subject, java.lang.String text, java.util.Vector fileList)
          Send E-Mail through internet.
 void sendMailExt(java.lang.String from, java.lang.String to, java.lang.String cc, java.lang.String subject, java.lang.String text, java.util.Vector fileList, java.lang.String tskID)
          Send E-Mail through internet.
 void sendMailExt(java.lang.String from, java.lang.String to, java.lang.String cc, java.lang.String subject, java.lang.String text, java.util.Vector fileList, Task task)
          Send E-Mail through internet.
 void sendMailExt(java.lang.String from, java.lang.String to, java.lang.String cc, java.lang.String subject, java.lang.String text, java.util.Vector fileList, Task task, java.lang.String script)
          Send E-Mail through internet.
 boolean sendPASEMessage(PASEMessage msg)
          Send message through message-system built in Agentflow.
 void sendShortMessageToAdminAll(java.lang.String msg, java.lang.String fromMemID)
          Send a message from a specific member to all on-line members on Admin.
 void sendShortMessageToAdminUser(java.lang.String msg, java.lang.String fromMemID, java.lang.String toMemID)
          Send a message from a specific member to another specific member on Admin.
 void sendShortMessageToAll(java.lang.String msg, java.lang.String fromMemID)
          Send a message from a specific member to all on-line members on Agenda.
 void sendShortMessageToUser(java.lang.String msg, java.lang.String fromMemID, java.lang.String toMemID)
          Send a message from a specific member to another specific member on Agenda.
 void sendTemplateMail(java.lang.String from, java.lang.String to, java.lang.String cc, java.lang.String etID, java.util.Vector fileList, java.lang.String taskID, boolean isHtml)
           
 void setAFConnection(AFConnection afConn)
           
 boolean setArtInsState(PASEartInstance artInstance, java.lang.String stateID)
          Return true for success, else false.
 void setGlobals(java.lang.String rootTaskID, java.util.HashMap args)
          Keep data into database and then reuse.
 boolean setMemberAccess(java.lang.String mID, AccessMember access)
          Set the access config of Agenda for the specific member
 boolean setMemberAdminAccess(java.lang.String mID, AccessAdmin access)
          Set the access config of Admin for the specific member
 boolean setMemberArtifactAccess(java.lang.String mID, java.util.Vector artifactAccessList)
          Set the access config list of Agenda's function "artifact search" for the specific member
 boolean setMemberDesignerAccess(java.lang.String mID, AccessAdmin access)
          Set the access config of Designer for the specific member
 boolean setMemberOnLineAccess(java.lang.String mID, AccessOnLineUser access)
          Set the access config of Agenda's function "on-line user" for the specific member
 boolean setMemberTaskAccess(java.lang.String mID, java.util.Vector taskAccessList)
          Set the access config list of Agenda's function "task search" for the specific member
 boolean setMonitorRelation(java.lang.String sourceTaskID, java.lang.String createdRootTaskID)
          Set task monitor relation, store root task ID and those created root task ID when executed.
 boolean setMonitorRelation(java.lang.String sourceTaskID, java.util.Vector createdRootTaskIDs)
          Set task monitor relation, store root task ID and those created root task ID when executed.
 boolean shutdownServer()
          Stop server.
 boolean SQLdeleteValue(java.lang.String sql)
          The method is used to delete value from database (the RTRepository).
 boolean SQLinsertValue(java.lang.String sql)
          The method is used to insert value to database (the RTRepository)
 java.util.List SQLloadValue(java.lang.String sql)
          The method is used to load value from database (the RTRepository).
 boolean SQLupdateValue(java.lang.String sql)
          The method is used to update value to database (the RTRepository).
 boolean startServer()
          Start server.
 java.util.HashMap startTask(Task t)
          Start the task.
 void stopRootTask(java.lang.String rootTaskID)
          Stop the root task Examples: WCCI.stopRootTask("Tsk000000835835");
 java.util.HashMap suspendTask(Task t)
          Suspend the task.
 boolean testSessionConnection(int seq)
          Test a SessionConnection object with database configuration, by the specific sequence.
 boolean testSessionConnection(java.lang.String name)
          Test a SessionConnection object with database configuration, by the specific name.
 void unlockTask(java.lang.String tskID)
          UnLock the root task of the task.
 boolean updateArtInstance(PASEartInstance instance)
          Update artifact instance Notice: Artifact instance is carrying artifact state information.
 boolean updateArtInstance(java.lang.String tID, PASEartInstance instance)
          Update artifact instance
 boolean updateCompany(Company company)
          Update the Company in database.
 boolean updateDepartment(Department department)
          Update the Department in database.
 boolean updateMemberRecord(MemberRecord mbr)
          Update the MemberRecord in database.
 boolean updateRole(Role role)
          Update the Role in database.
 boolean updateTask(Task t)
          Update the data object of task.
 boolean updateValueWithSessionConnection(java.lang.String session, java.lang.String sqlcmd)
          Invoke the connection to update value
 java.util.HashMap userVerify(java.lang.String user, java.lang.String pass, boolean autoLogin)
          To verify user's loginID and password
 void waitTask(java.lang.String tskID)
          Set the task to be state of waiting Examples: var taskID = "Tsk000000226229"; WCCI.waitTask(taskID);
 void waitTask(java.lang.String tskID, java.lang.String timeString)
          Set the task to be state of waiting, and the waiting duration.
 
Methods inherited from interface pe.pase.DBService
addNewSessionConnectionURL, addSessionConnectionURL, closeAllSessionConnection, closeOpenedSessionConnection, delete, delete, insert, update
 
Methods inherited from interface pe.pase.FileService
deleteTaskAttachedFile, getAttachFilePath, getAttachFilePath, getFileTransfer, getTaskAttachedFileContent, insertTaskAttachedFile, releaseFileTransfer, updateAttachFileInfo
 
Methods inherited from interface pe.pase.FlowService
asynGetTaskOfMember, callServerSideScriptFunction, cancelTaskInClient, cancelTaskInClient, completeTask, createArtInstance, createProcess, createProcess, createProcessEx, forceCompleteATask, getAddSignTaskList, getAllAddASResult, getAllCSSignResult, getAllCSSignResult, getAllCSTaskNote, getAllIapSignResult, getAllTskIDListByGPro, getATaskNote, getCollectedTskIDListByGPro, getCPTaskIDList, getCSLockHashtable, getCSSignInfo, getFreqMessageByMbrId, getGroupSignTinyTaskList, getProcessList, getPumpTaskList, getScriptLibrary, getSequelProIDList, getTaskList, getTaskMonitorRelationByRoot, getTaskOfCompany, getTaskOfCompany, getTaskOfDepartment, getTaskOfDepartment, getTaskOfRole, getTaskOfRole, getTinyPDiagramDetail, getTinyRootTaskIdListOfJoinMember, getTinyRootTaskOfJoinMember, getTinyRootTaskOfJoinMember, getTinyTaskIdListTracked, getTinyTaskList, getTinyTaskList, getTinyTaskList, getTranslateArtInsList, getUncompletePATaskNo, initProcess, isATaskComplete, isCSTaskComplete, isLocked, parseAddASResultString, parseCSResultString, removeAFTVElementVO, removeRootTaskByShell, reScheduleTask, runScriptOnServer, saveAFTVElementVO, unlockCoSign, updateArtInstanceLog, updateTaskState
 
Methods inherited from interface pe.pase.PDEService
addFreqApRole, getGroupSignProcess, getProcessVersion
 
Methods inherited from interface pe.pase.OrgService
checkValidNameUser, deletePersonalDboard, deletePersonalFavorite, deleteProjectRole, getAllComIDOfMember, getAllDepartmentByName, getAllDepIDOfCompany, getAllDepIDOfMember, getAllDepNameOfCompany, getAllManager, getAllManagerByID, getAllManagerByLoginID, getAllManagerByNo, getAllMemberByCName, getAllProjectRoleByName, getAllRoleByName, getAllRoleIDOfCompany, getAllRoleNameOfCompany, getAllUnitType, getAllUnitType, getCompany, getDepartmentHead, getDepartmentHeadByID, getDepartmentHeadByLoginID, getDepartmentHeadByNo, getFirstLevelUnitType, getManagerRole, getNextManager, getNextManager, getNextManagerByID, getNextManagerByID, getNextManagerByLoginID, getNextManagerByLoginID, getNextManagerByNo, getNextManagerByNo, getOneCompanyByName, getOneDepartmentByName, getOneRoleByName, getParentIDListOfMember, getPersonalConfig, getPersonalFavorite, getPersonalProShow, getSubDepIDOfDR, getSubDepNameOfDR, getSubMemberCNameOfDR, getSubMemberIDOfDR, getSubRoleIDOfDR, getSubRoleNameOfDR, getUnitType, getUnitTypeByLoginID, getUnitTypeByMember, getUnitTypeByMemID, getUnitTypeByNo, insertPersonalDboard, insertPersonalFavorite, insertPersonalProShow, insertProjectRole, isCompanyManager, isCompanyManagerByID, isCompanyManagerByLoginID, isCompanyManagerByNo, newProjectRole, setPersonalConfig, swapPersonalFavoriteOrder, updatePersonalProShow, updateProjectRole, updateUnitType
 
Methods inherited from interface pe.pase.SecurityService
canPrintPASESharedFile, canReadPASESharedFile, canWritePASESharedFile, createPASEGroup, createPASESharedFile, deleteAeppServerOfMultiOrg, deleteMultiOrgPerm, deletePASEGroup, deletePASESharedFile, getAeppServerListOfMultiOrg, getAeppServerOfMultiOrg, getAllPASEGroupByName, getDepartmentListOfPASEGroup, getMemberDesignerAccessList, getMemberListOfPASEGroup, getMultiOrgPermList, getMultiOrgPermLoginIDList, getMultiServerACL, getPASEGroup, getPASEGroupList, getPASEGroupListByIdList, getPASESharedFile, getPASESharedFileByPath, getRoleListOfPASEGroup, getSignatureImage, insertAeppServerOfMultiOrg, insertMultiOrgPerm, insertPASEGroup, insertPASESharedFile, isContainedInPASEGroup, setMemberDesignerAccessList, swapAeppServer, updateAeppServerOfMultiOrg, updateMultiServerACL, updatePASEGroup, updatePASESharedFile
 
Methods inherited from interface pe.pase.UtilityService
activeBBSBoard, addLoginLog, addSSORecord, clearCache, createScheduleEvent, delBBSMsg, deleteBBSBoard, deleteBoardAdmin, deleteBoardPerm, deleteFreqMessage, deleteMailLoginTimeStamp, deleteMailLoginTimeStampByTaskId, deleteMbrSignGroup, deleteProcessMapCategory, deleteProcessMapLink, deleteUserCalendar, findLoginLog, getAllBBSBoard, getAllBBSBoardByComID, getAllMessageOfMem, getAllTimeZones, getAllUserCalendar, getAnnouncementCompanyName, getArtInsDefaultMap, getAuthLDAPConfigs, getBBSBoard, getBBSBoard, getBBSBoardByRangeID, getBBSMsg, getBBSMsgList, getBBSSearchResult, getBoardAdminList, getBoardPermList, getComIDListOfMember, getComIdOfDep, getComIdOfRole, getCompanyAnnouncementBoard, getDbConnectionCurrentState, getDeputiedOfMember, getFreqMessageByMbrId, getGroupSignIDOfTask, getGroupSignTaskIDList, getGroupSignTaskMap, getHalfHolidays, getHolidays, getLatestBBSMsg, getLatestBBSMsg, getLatestBBSMsgByMemID, getMailLoginTimeStamp, getMbrSignGroupList, getNewAFGroupID, getNewArtInsID, getNewBBSMsgID, getNewDayId, getNewFileID, getNewFreqMessageID, getNewGroupSignID, getNewMsgID, getNewMultiAeppServerID, getNewOfficeHourId, getNewProcessMapCategoryID, getNewTaskID, getNewWorkingDayId, getNewWorkingDayTemplateId, getPaseEventMap, getProcessMapCategory, getProcessMapCategoryList, getProcessMapLink, getProcessMapLinkList, getProcessMapParentIdListByProId, getRoleSearchResult, getScheduleEvent, getServerEnv, getServerGMT, getSSOMemberID, getSSOMemberRecord, getUserCalendarByUser, getUserCalendarMap, getVariableList, getWeek, getWorkdays, insertBoardAdmin, insertBoardPerm, insertFreqMessage, insertMbrSignGroup, insertProcessMapCategory, insertProcessMapLink, insertScheduleEvent, insertTaskGroupSign, isEnabledModule, isLogined, isSupervisor, isUnitExistUserWorkingDay, isWorkday, kickout, kickoutAdmin, loginAdmin, logoutAdmin, mustReassignDeputiedTask, newBBSBoard, postBBSMsg, printArtifactList, printArtifactList, reassignDeputyTask, registerAdmin, removeAllSSO, removeScheduleEvent, removeSSORecord, searchScheduleEvent, sendHTMLMail, sendHTMLMail, sendMail, sendMail, setCompanyAnnouncementBoard, suspendBBSBoard, swapProcessMapCategory, swapProcessMapLink, updateBBSBoard, updateBBSMessage, updateFreqMessage, updateMbrSignGroup, updatePASEMessage, updateProcessMapCategory, updateScheduleEvent
 

Method Detail

addDebugLog

void addDebugLog(java.lang.String msg)
Description copied from interface: UtilityService
Add a debug log to server.

Specified by:
addDebugLog in interface UtilityService
Parameters:
msg - the given log message

addErrLog

void addErrLog(java.lang.String msg)
Description copied from interface: UtilityService
Add an error log to server.

Specified by:
addErrLog in interface UtilityService
Parameters:
msg - the given log message

addExeLog

void addExeLog(java.lang.String msg)
Description copied from interface: UtilityService
Add a execution log to server.

Specified by:
addExeLog in interface UtilityService
Parameters:
msg - the given log message

addInfoLog

void addInfoLog(java.lang.String msg)
Description copied from interface: UtilityService
Add an information log to server.

Specified by:
addInfoLog in interface UtilityService
Parameters:
msg - the given log message

addMonitorRelation

boolean addMonitorRelation(java.lang.String sourceTaskID,
                           java.lang.String createdRootTaskID)
Description copied from interface: FlowService
Add task monitor relation, store root task ID and those created root task ID when executed.

Specified by:
addMonitorRelation in interface FlowService
Parameters:
sourceTaskID - the given RootTaskID
createdRootTaskID - the given created RootTaskID
Returns:
true if the execution is successful; false otherwise.

addMonitorRelation

boolean addMonitorRelation(java.lang.String sourceTaskID,
                           java.util.Vector createdRootTaskIDs)
Description copied from interface: FlowService
Add task monitor relation, store root task ID and those created root task ID when executed.

Specified by:
addMonitorRelation in interface FlowService
Parameters:
sourceTaskID - the given RootTaskID
createdRootTaskIDs - the given created RootTaskID list
Returns:
true if the execution is successful; false otherwise.

addNewSessionConnectionURL

int addNewSessionConnectionURL(int type,
                               java.lang.String name,
                               java.lang.String dburl,
                               java.lang.String username,
                               java.lang.String password)
Add a new db URL at the end of the db configuration list. The database type:

Examples:

 WCCI
                .addSessionConnectionURL(0, "MS-SQL1",
                                "jdbc:inetdae:192.168.8.1:1433?charset=Big5&database=Test",
                                "sa", "sql");
 

Specified by:
addNewSessionConnectionURL in interface DBService
Parameters:
type - the database type
name - the name to recognize the configuration
dburl - the database URL
username - the username to login in database
password - true password to login in database
Returns:
the sequence which the data is store in configuration

addNewSessionConnectionURL

int addNewSessionConnectionURL(int type,
                               java.lang.String name,
                               java.lang.String dburl,
                               java.lang.String username,
                               java.lang.String password,
                               int minConnCount,
                               int maxConnCount)
Add a new db URL at the end of the db configuration list. The database type:

Examples:

 WCCI
                .addSessionConnectionURL(0, "MS-SQL1",
                                "jdbc:inetdae:192.168.8.1:1433?charset=Big5&database=Test",
                                "sa", "sql");
 

Specified by:
addNewSessionConnectionURL in interface DBService
Parameters:
type - the database type
name - the name to recognize the configuration
dburl - the database URL
username - the username to login in database
password - true password to login in database
minConnCount - the minimum connection count in pool
maxConnCount - the maximum connection count in pool
Returns:
the sequence which the data is store in configuration

addSessionConnectionURL

void addSessionConnectionURL(int seq,
                             int type,
                             java.lang.String dburl,
                             java.lang.String username,
                             java.lang.String password)
Set a db URL to db configuration. System will generate a name for this configuration automatcally. It would replace another configuration by given the sequence number. The database type:

Examples:

 WCCI
                .addSessionConnectionURL(1, 0,
                                "jdbc:inetdae:192.168.8.1:1433?charset=Big5&database=Test",
                                "sa", "sql");
 

Specified by:
addSessionConnectionURL in interface DBService
Parameters:
seq - the sequence which the data is store in configuration, from 1
type - the database type
dburl - the database URL
username - the username to login in database
password - true password to login in database

addSessionConnectionURL

void addSessionConnectionURL(int seq,
                             int type,
                             java.lang.String name,
                             java.lang.String dburl,
                             java.lang.String username,
                             java.lang.String password)
Set a db URL to db configuration. It would replace another configuration by given the sequence number. The database type:

Examples:

 WCCI
                .addSessionConnectionURL(1, 0, "MS-SQL1",
                                "jdbc:inetdae:192.168.8.1:1433?charset=Big5&database=Test",
                                "sa", "sql");
 

Specified by:
addSessionConnectionURL in interface DBService
Parameters:
seq - the sequence which the data is store in configuration, from 1
type - the database type
name - the name to recognize the configuration
dburl - the database URL
username - the username to login in database
password - true password to login in database

addSessionConnectionURL

void addSessionConnectionURL(int seq,
                             int type,
                             java.lang.String name,
                             java.lang.String dburl,
                             java.lang.String username,
                             java.lang.String password,
                             int minConnCount,
                             int maxConnCount)
Set a db URL to db configuration. It would replace another configuration by given the sequence number. The database type:

Examples:

 WCCI.addSessionConnectionURL(1, 0, "MS-SQL1",
                "jdbc:inetdae:192.168.8.1:1433?charset=Big5&database=Test", "sa",
                "sql", 2, 10);
 

Specified by:
addSessionConnectionURL in interface DBService
Parameters:
seq - the sequence which the data is store in configuration, from 1
type - the database type
name - the name to recognize the configuration
dburl - the database URL
username - the username to login in database
password - true password to login in database
minConnCount - the minimum connection count in pool
maxConnCount - the maximum connection count in pool

addWarningLog

void addWarningLog(java.lang.String msg)
Description copied from interface: UtilityService
Add a warning log to server.

Specified by:
addWarningLog in interface UtilityService
Parameters:
msg - the given log message

ArtSQLloadValue

java.util.List ArtSQLloadValue(java.lang.String sql)
The method is used to load value from database by nickname (the RTRepository).

Specified by:
ArtSQLloadValue in interface DBService
Parameters:
sql - the input SQL data string in nickname
Returns:
the value mapping to the SQL syntax
Since:
version 1.1.5

batchProcess

java.util.Vector batchProcess(java.util.List completeTask,
                              java.util.List removeRootTask,
                              java.util.List createPro)
Batch create, remove and complete process

Examples:

 // CompleteTask
 var completeVector = new java.util.Vector();
 var stateID = "AST0371992486182500";
 var taskID = "Tsk000000226232";
 var tsk = WCCI.getTask(taskID);
 var artInstance = tsk.getArtInstance();
 var Result = WCCI.setArtInsState(artInstance, stateID);
 completeVector.add(tsk);
 java.lang.System.out.println("Complete");

 // RemoveRootTask
 var removeVector = new java.util.Vector();
 removeVector.add("Tsk000000835835");
 java.lang.System.out.println("Remove");

 // CreateProcess
 var createVector = new java.util.Vector();
 var cv = new java.util.Vector();
 var userID = "jdwa";
 var proID = "PRO0570993694941810";
 var hm = new java.util.HashMap();
 var popUp = new java.lang.Boolean("true");
 cv.add(userID);
 cv.add(proID);
 cv.add(hm);
 cv.add(popUp);
 createVector.add(cv);
 java.lang.System.out.println("Create");

 // Call bachProcess
 var ret = WCCI.batchProcess(completeVector, removeVector, createVector);
 java.lang.System.out.println(ret);
 

Specified by:
batchProcess in interface FlowService
Parameters:
completeTask - the Vector of task object.
removeRootTask - the Vector of Root Task ID.
createPro - Vector of createprocess parameters
Returns:
created process tasks (each element in List is root task id
Since:
version 1.1.6

bypassTask

boolean bypassTask(Task p_Task,
                   java.lang.String p_AstID)
Bypass the task.

Examples:

 var taskID = "Tsk000000226229";
 var task = WCCI.getTask(taskID);
 var astID = "AST0000000334532";
 WCCI.bypassTask(task, astID);
 

Specified by:
bypassTask in interface FlowService
Parameters:
p_Task - the given Task
p_AstID - the given PASEartStateID
Returns:
true if successful.
Since:
version 1.0.1

changePassword

boolean changePassword(java.lang.String loginID,
                       java.lang.String newPwd)
The method is used to change the password of some member without checking old password.

Specified by:
changePassword in interface UtilityService
Parameters:
mbrID - the given LoginID
newPwd - new password
Returns:
true if succeeded
Since:
version 1.0.0

changePassword

boolean changePassword(java.lang.String memID,
                       java.lang.String oldPwd,
                       java.lang.String newPwd)
The method is used to change the password of some member. The changing is performed only while the original password is correct.

Specified by:
changePassword in interface UtilityService
Parameters:
mbrID - the given memID
oldPwd - original password
newPwd - new password
Returns:
true if succeeded
Since:
version 1.0.0

clearCache

void clearCache()
Clear the cache of the PASE server.

Specified by:
clearCache in interface UtilityService

closeSessionConnection

void closeSessionConnection(java.lang.String session)
Description copied from interface: DBService
Close a SessionConnection object

Specified by:
closeSessionConnection in interface DBService
Parameters:
session - the given Session Key

commitSessionConnection

void commitSessionConnection(java.lang.String session)
Description copied from interface: DBService
Make commit on the connection

Specified by:
commitSessionConnection in interface DBService
Parameters:
session - the given Session Key

completeTask

java.util.HashMap completeTask(Task t)
Complete the task.

Examples:

   var taskID = "Tsk000000226229";
   var task = WCCI.getTask(taskID);
   var hashmap = WCCI.completeTask(task);
   var retValue = hashmap.get("retValue");
       returns <DFN>true if it starts successfully;false otherwise</DFN>
 

Specified by:
completeTask in interface FlowService
Parameters:
t - the given Task
Returns:
the result ( [Key:Value] = [retValue:Boolean(true)] )
Since:
version 1.0.1

connectServer

int connectServer(java.lang.String host,
                  java.lang.String port)
Connect to the PASE server.

Parameters:
host - the given host address
port - the given host port
Returns:
0 if succeeded
Since:
version 1.0.0

createFreqArtInstance

PASEartInstance createFreqArtInstance(java.lang.String aID)
Create artifact instance, for FreqAp use

Specified by:
createFreqArtInstance in interface FlowService
Parameters:
iID - the given ArtifactID
Returns:
the artifact instance
Since:
version 1.1.5
See Also:
PASEartInstance

createProcess

java.lang.String createProcess(java.lang.String userID,
                               java.lang.String proID,
                               java.util.HashMap args,
                               boolean isPopUp)
Create a Process. Note:JSP WebForm does not implement this method.

Parameters:
userID - the given UserID
proID - the given ProcessID
args - the given HashMap contains the relative data
isPopUp, - useless now
Returns:
the rootTask ID

createSessionConnection

SessionConnection createSessionConnection(int seq)
Create a SessionConnection object with database configuration, by the specific sequence.

Specified by:
createSessionConnection in interface DBService
Parameters:
seq - the sequence which the data is store in configuration, from 1
Returns:
the SessionConnection object which have connected to database

createSessionConnection

SessionConnection createSessionConnection(java.lang.String name)
Create a SessionConnection object with database configuration, by the specific name.

Specified by:
createSessionConnection in interface DBService
Parameters:
name - the name to recognize the db configuration
Returns:
the SessionConnection object which have connected to database

deleteCompany

boolean deleteCompany(Company company)
delete the Company in database.

Specified by:
deleteCompany in interface OrgService
Parameters:
company - the Company instance
Returns:
true if successful, else false
See Also:
Company

deleteDepartment

boolean deleteDepartment(Department department)
delete the Department in database.

Specified by:
deleteDepartment in interface OrgService
Parameters:
department - the Department instance
Returns:
true if successful, else false
See Also:
Department

deleteGlobals

boolean deleteGlobals(java.lang.String rootTaskID)
Delete Globals data from database.

Examples:

   var rootTaskID = "Tsk0003459343453";
        var Result = WCCI.deleteGlobals(rootTaskID);
                returns <DFN>true if it deletes successfully ;false otherwise</DFN>

 

Specified by:
deleteGlobals in interface UtilityService
Parameters:
rootTaskID - the given root TaskID
Returns:
true if it deletes successfully ;false otherwise
Since:
version 1.1.5

deleteMemberRecord

boolean deleteMemberRecord(MemberRecord memberRecord)
delete the MemberRecord in database.

Specified by:
deleteMemberRecord in interface OrgService
Parameters:
memberRecord - the MemberRecord instance
Returns:
true if successful, else false
See Also:
MemberRecord

deletePASEMessage

boolean deletePASEMessage(PASEMessage msg)
Delete message from database.

Examples:

   var MessageList = WCCI.getPASEMessageOfMember("MEM0000992492169920");
   if(MessageList != null) {
       for(var i=0;i<MessageList.size();i++){
           var msg = MessageList.get(i);
           var Result = WCCI.deletePASEMessage(msg);
               returns <DFN>true if it's successful;false otherwise</DFN>
       }
   }
 

Specified by:
deletePASEMessage in interface UtilityService
Parameters:
msg - the given message. msg.SendID, msg.RecID, msg.SendTime are used as key to delete the message.
Returns:
true if the delete is successful; false otherwise.
Since:
version 1.0.0
See Also:
PASEMessage

deletePASEMessageByID

boolean deletePASEMessageByID(java.lang.String msgID)
Delete message from database with message ID.

Examples:

   var MessageList = WCCI.getPASEMessageOfMember("MEM0000992492169920");
   if(MessageList != null) {
       for(var i=0;i<MessageList.size();i++){
           var msg=MessageList.get(i);
           var Result = WCCI.deletePASEMessage(msg.getID());
               returns <DFN>true if it's successful;false otherwise</DFN>
       }
   }
 

Specified by:
deletePASEMessageByID in interface UtilityService
Parameters:
msgID - the given messageID.
Returns:
true if the delete is successful; false otherwise.
Since:
version 1.0.0
See Also:
PASEMessage

deleteRole

boolean deleteRole(Role role)
delete the Role in database.

Specified by:
deleteRole in interface OrgService
Parameters:
role - the Role instance
Returns:
true if successful, else false
See Also:
Role

deleteSessionConnectionURL

java.util.HashMap deleteSessionConnectionURL(java.lang.String name)
Delete a db URL from db configuration. It may influence other configuration's sequence number.

Specified by:
deleteSessionConnectionURL in interface DBService
Parameters:
name - the name to recognize the db configuration
Returns:
the HashMap object which shows the cleared configuration

disconnectServer

int disconnectServer()
Disconnect to the PASE server.

Returns:
0 if succeeded
Since:
version 1.0.0

forceReassignTask

boolean forceReassignTask(java.lang.String p_TaskID,
                          java.lang.String p_MemID)
Force to reassign the task.

Examples:

   var taskID = "Tsk000000226229";
   var memID = "MEM0000000334532";
   var Result = WCCI.forceReassignTask(p_TaskID, p_MemID);
       returns <DFN>true if it sets successfully ;false otherwise</DFN>
 

Specified by:
forceReassignTask in interface FlowService
Parameters:
p_TaskID - the given TaskID
p_MemID - the given MemberRecordID
Returns:
true if succeeded
Since:
version 1.0.1

forceReassignTask

boolean forceReassignTask(Task p_Task,
                          MemberRecord p_MR)
Force to reassign the task.

Examples:

   var taskID = "Tsk000000226229";
   var task = WCCI.getTask(taskID);
   var memID = "MEM0000000334532";
   var member = WCCI.getMember(memID);
   var Result = WCCI.forceReassignTask(task, member);
       returns <DFN>true if it sets successfully ;false otherwise</DFN>
 

Specified by:
forceReassignTask in interface FlowService
Parameters:
p_Task - the given Task
p_MR - the given MemberRecord
Returns:
true if succeeded
Since:
version 1.0.1

getAdminLoginTime

long getAdminLoginTime(java.lang.String loginID)
Description copied from interface: UtilityService
Get login time for a Administration tool user.

Specified by:
getAdminLoginTime in interface UtilityService
Parameters:
loginID - the given login ID
Returns:
the time

getAFConnection

AFConnection getAFConnection()

getAllMember

java.util.Vector getAllMember()
Return all member of system

Specified by:
getAllMember in interface OrgService
Returns:
all MemberRecords (each element in Vector are instance of MemberRecord)
Since:
version 1.0.0
See Also:
MemberRecord

getAllMemberByComID

java.util.List getAllMemberByComID(java.lang.String comID)
Get all MemberRecord Objects by the specified company id

Specified by:
getAllMemberByComID in interface OrgService
Parameters:
comID -
Returns:
List of all MemberRecords (each element in Vector is MemberRecord)
Since:
V3.1

getAllMemberByComID

java.util.List getAllMemberByComID(java.lang.String comID,
                                   boolean searchSubCompany)
Get all MemberRecord Objects by the specified company id, include sub company

Specified by:
getAllMemberByComID in interface OrgService
Parameters:
StringcomID -
boolean - searchSubCompany
Returns:
List of all MemberRecords (each element in Vector is MemberRecord)
Since:
V3.1

getAllUnassignedMember

java.util.List getAllUnassignedMember()
get all members which are not assigned any role.

Specified by:
getAllUnassignedMember in interface OrgService
Returns:
List allUnassignMemberList
Since:
V3.5

getApprovalHistoryRootTaskOfJoinMember

java.util.Vector getApprovalHistoryRootTaskOfJoinMember(java.lang.String mbrID)
Return a Approval History Root Task List of the Member(mbrID)

Specified by:
getApprovalHistoryRootTaskOfJoinMember in interface FlowService
Returns:
the correspondence Tasks(each element in Vector are instance of Task)
Since:
version 1.1.5p2
See Also:
Task

getArtifact

Artifact getArtifact(java.lang.String aID)
Return a data object of artifact.

Examples:

   var aID = "ART0101993090926140";
   var Artifact = WCCI.getArtifact(aID);
       returns <DFN>a Artifact Object</DFN>
 

Specified by:
getArtifact in interface PDEService
Parameters:
aID - the given ArtifactID
Returns:
the artifact
Since:
version 1.0.0

getArtifactForm

java.util.Vector getArtifactForm(java.lang.String aID)
Return artifact forms of some specific artifact.

Examples:

   var aID = "ART0101993090926140";
   var ArtFormList = WCCI.getArtifactForm(aID);
   for (var i=0;i<ArtFormList.size();i++) {
       var ArtFormItem=ArtFormList.get(i);
           returns <DFN>a ArtFormItem Object</DFN>
   }
 

Specified by:
getArtifactForm in interface PDEService
Parameters:
aID - the given ArtifactID
Returns:
the correspondence artifact forms(each element in Vector are instance of ArtFormItem)
Since:
version 1.0.0
See Also:
ArtFormItem

getArtifactOfCompany

java.util.Vector getArtifactOfCompany()
Return all artifacts.

Examples:

   var ArtifactList = WCCI.getArtifactOfCompany();
   if(ArtifactList != null) {
       for(var i=0;i<ArtifactList.size();i++){
           var Artifact =ArtifactList.get(i);
               returns <DFN>a Artifact Object</DFN>
       }
   }
 

Specified by:
getArtifactOfCompany in interface PDEService
Returns:
all artifacts (each element in Vector are instance of Artifact)
Since:
version 1.0.0
See Also:
Artifact

getArtifactOfProject

java.util.Vector getArtifactOfProject(java.lang.String prjID)
Return all artifact of some specific project.

Examples:

   var prjID  = "PRJ0023992486182440";
   var ArtifactList = WCCI.getArtifactOfProject(prjID);
   if(ArtifactList != null) {
       for(var i=0;i<ArtifactList.size();i++){
           var Artifact =ArtifactList.get(i);
               returns <DFN>a Artifact Object</DFN>
       }
   }
 

Specified by:
getArtifactOfProject in interface PDEService
Parameters:
prjID - the given ProjectID
Returns:
the correspondence artifacts(each element in Vector are instance of Artifact)
Since:
version 1.0.0
See Also:
Artifact

getArtInstance

PASEartInstance getArtInstance(java.lang.String iID)
Return a data object of artifact instance with current Task.

Examples:

   var iID  = "ART0099992486182440";
   var PASEartInstance = WCCI.getArtInstance(iID);
       returns <DFN>PASEartInstance Object</DFN>
 

Here are some more examples of how PASEartInstance can be used:

   var ArtifactName = PASEartInstance.getName();
       returns <DFN>ArtifactName</DFN> is like "ApplyForm"

   var ArtifactID   = PASEartInstance.getArtifactID();
       returns <DFN>ArtifactID</DFN> is like "ART0099992486182440"
 

Specified by:
getArtInstance in interface FlowService
Parameters:
iID - the given ArtifactInstanceID
Returns:
the artifact instance
Since:
version 1.0.0
See Also:
PASEartInstance

getArtInstance

PASEartInstance getArtInstance(java.lang.String iID,
                               java.lang.String tID)
Return a data object of artifact instance with specific task.

Examples:

   var iID = "ART0099992486182440";
   var tID = "Tsk0003459343453";
   var PASEartInstance = WCCI.getArtInstance(iID, tID);
       returns <DFN>PASEartInstance Object</DFN>
 

Here are some more examples of how PASEartInstance can be used:

   var ArtifactName = PASEartInstance.getName();
       returns <DFN>ArtifactName</DFN> is like "ApplyForm"

   var ArtifactID   = PASEartInstance.getArtifactID();
       returns <DFN>ArtifactID</DFN> is like "ART0099992486182440"
 

Specified by:
getArtInstance in interface FlowService
Parameters:
iID - the given ArtifactInstanceID
tID - the given TaskID
Returns:
the artifact instance
Since:
version 1.0.0
See Also:
PASEartInstance

getArtInstanceOfArtifact

java.util.Vector getArtInstanceOfArtifact(java.lang.String aID)
Return all artifact instances instanciated by some specific artifact.

Examples:

        var aID = "ART0099992486182440";
        var PASEartInstanceList = WCCI.getArtInstanceOfArtifact(aID);
        if(PASEartInstanceList != null) {
                for(var i=0;i<PASEartInstanceList.size();i++){
                        var PASEartInstance =PASEartInstanceList.get(i);
                                returns <DFN>a PASEartInstance Object</DFN>
                }
        }

 

Specified by:
getArtInstanceOfArtifact in interface FlowService
Parameters:
aID - the given ArtifactID
Returns:
the correspodence artifact instances(each element in Vector are instance of PASEartInstance)
Since:
version 1.1.5
See Also:
PASEartInstance

getArtTskID

java.lang.String getArtTskID(java.lang.String iID)
Get the latest associated TaskID with the Artifact Instance.

Specified by:
getArtTskID in interface PDEService
Parameters:
iID - the given artifact instance id
Returns:
the latest TaskID
Since:
version 1.2

getBBS

BBS getBBS()

getCalendar

com.flowring.schedule.UserCalendar getCalendar(java.lang.String id)
Description copied from interface: UtilityService
Get UserCalendar by id.

Specified by:
getCalendar in interface UtilityService
Parameters:
id - String
Returns:
UserCalendar

getCompany

Company getCompany()
Return a data object of company.

Examples:

   var Company = WCCI.getCompany();
       returns <DFN>a Company Object</DFN>
 

Specified by:
getCompany in interface OrgService
Returns:
the company
Since:
version 1.0.0
See Also:
Company

getCSTaskNote

java.util.HashMap getCSTaskNote(java.lang.String rootTID)
get CSTask Notes that are written before the given task.

Specified by:
getCSTaskNote in interface FlowService
Parameters:
taskID - the given taskID
Returns:
the result ( [Key:Value] = [data:AllCSTaskNote(String)] ; [retValue:Boolean(true/false)])

getDBNameUser

int getDBNameUser()
Return the number of NameUser in database

Specified by:
getDBNameUser in interface OrgService
Returns:
the number of NameUser in database

getDBOrgCount

int getDBOrgCount()
Return the number of Organization in database

Specified by:
getDBOrgCount in interface OrgService
Returns:
the number of Organization in database

getDBProcess

DBProcess getDBProcess(java.lang.String pID)
Return a data object of process.

Examples:

   var pID = "PRO0552992937964020";
   var DBProcess = WCCI.getDBProcess(pID);
       returns <DFN>a DBProcess Object</DFN>
 

Specified by:
getDBProcess in interface PDEService
Parameters:
pID - the given ProcessID
Returns:
the process
Since:
version 1.0.0
See Also:
DBProcess

getDbService

DBService getDbService()

getDepartment

Department getDepartment(java.lang.String dID)
Return a data object of department by ID.

Examples:

   var dID  = MyTask.getDepartmentID();
   var Department = WCCI.getDepartment(dID);
       returns <DFN>a Department Object</DFN>
 

Specified by:
getDepartment in interface OrgService
Parameters:
dID - the given DepartmentID
Returns:
the department
Since:
version 1.0.0
See Also:
Department

getEmailTemplate

EmailTemplate getEmailTemplate(java.lang.String etID)
Specified by:
getEmailTemplate in interface PDEService

getEnterpriseDiagram

EnterpriseModel getEnterpriseDiagram()
Get the Enterprise Diagram data model

Specified by:
getEnterpriseDiagram in interface PDEService
Returns:
enterprise diagram
See Also:
EnterpriseModel

getFileManager

FileManager getFileManager()
Get a FileManager object.

Returns:
a FileManager object.
Since:
version 1.0.3

getFileService

FileService getFileService()

getFlowServerHost

java.lang.String getFlowServerHost()
Get the PASE server address.

Returns:
the host address
Since:
version 1.0.0

getFlowServerPort

java.lang.String getFlowServerPort()
Get the PASE server port.

Returns:
the host port
Since:
version 1.0.0

getFlowService

FlowService getFlowService()

getFreqApItemList

java.util.Vector getFreqApItemList()
Return a FreqAp diagram item Vector

Specified by:
getFreqApItemList in interface PDEService
Returns:
the correspondence data(each element in Vector are instance of ProcessData)
Since:
version 1.1.5
See Also:
DiagramItem

getFreqApListOfMember

java.util.Vector getFreqApListOfMember(java.lang.String memID)
Return a PASEFreqAp List of the specific member.

Specified by:
getFreqApListOfMember in interface PDEService
Returns:
the correspondence data(each element in Vector are instance of PASEFreqAp)
Since:
version 1.1.5
See Also:
PASEFreAp

getFreqApNodeList

java.util.Vector getFreqApNodeList()
Return a PASEFreqApNode list that will be shown in the FreqAP diagram.

Specified by:
getFreqApNodeList in interface PDEService
Returns:
the correspondence data(each element in Vector are instance of PASEFreqApNode)
Since:
version 1.1.5
See Also:
PASEFreApNode

getGlobals

java.util.HashMap getGlobals(java.lang.String rootTaskID)
Get Globals data from previous setGlobals function.

Examples:

   var rootTaskID = "Tsk0003459343453";
        var ht = WCCI.getGlobals(rootTaskID);
        var value = ht.get("ItemName");
                returns <DFN>Key Value</DFN> is like "Good"

 

Specified by:
getGlobals in interface UtilityService
Parameters:
rootTaskID - the given root TaskID
Returns:
the result ( [Key:Value] = [retValue:Boolean(true/false)])
Since:
version 1.1.5

getHalfHolidays

java.util.Vector getHalfHolidays()
Get the half-holidays list

Specified by:
getHalfHolidays in interface UtilityService
Returns:
a Vector of date.
Since:
version 1.0

getHistoryRootTaskOfJoinMember

java.util.Vector getHistoryRootTaskOfJoinMember(java.lang.String mbrID)
Return a History Root Task List of the Member(mbrID)

Specified by:
getHistoryRootTaskOfJoinMember in interface FlowService
Parameters:
mbrID - the given member id
Returns:
the correspondence Tasks(each element in Vector are instance of Task)
Since:
version 1.1.5p2
See Also:
Task

getHolidays

java.util.Vector getHolidays()
Get the holidays list of system's default calendar

Specified by:
getHolidays in interface UtilityService
Returns:
a Vector of date.
Since:
version 1.0

getInvolvedExecutors

java.util.Vector getInvolvedExecutors(java.lang.String rootTaskID)
S Return ID list of executors who involved in the root process

Examples:

 var v = WCCI.getInvolvedExecutors("Tsk000000835835");
 

Specified by:
getInvolvedExecutors in interface FlowService
Parameters:
rootTaskID - the root task id.
Returns:
the member ID list.
Since:
version 1.1.6

getInvolvedMembers

java.util.Vector getInvolvedMembers(java.lang.String rootTaskID)
Return ID list of members who involved in the root process

Examples:

 var v = WCCI.getInvolvedMembers("Tsk000000835835");
 

Specified by:
getInvolvedMembers in interface FlowService
Parameters:
rootTaskID - the root task id.
Returns:
the member ID list.
Since:
version 1.1.6

getLicenseNameUser

int getLicenseNameUser()
Return the licensed number of NameUser

Specified by:
getLicenseNameUser in interface OrgService
Returns:
the licensed number of NameUser

getLicenseOrgCount

int getLicenseOrgCount()
Return the licensed number of Organizations

Specified by:
getLicenseOrgCount in interface OrgService
Returns:
the licensed number of Organizations

getManager

java.lang.String[] getManager(java.lang.String id)
Get manager id by member id, role id, or department id.

Examples:

 var mID = "MEM00041091074401237";
 var rID = "ROL00021091073923770";
 var dID = "DEP00051091073824187";
 var Result_mID = Server.getManager(mID);
 //returns <DFN>a String Array</DFN>
 var Result_rID = Server.getManager(rID);
 //returns <DFN>a String Array</DFN>
 var Result_dID = Server.getManager(dID);
 //returns <DFN>a String Array</DFN>
 java.lang.System.out.println("depID=" + Result_mID[0]);
 java.lang.System.out.println("rolID=" + Result_mID[1]);
 java.lang.System.out.println("memID=" + Result_mID[2]);
 

Specified by:
getManager in interface OrgService
Parameters:
id - the given member id, role id, or department id
Returns:
the String Array
Since:
version 2.2.3

getManagersOfDRM

java.util.Vector getManagersOfDRM(java.lang.String id)
Get all manager id by member id, role id, or department id.

Examples:

   var mID  = "MEM00041091074401237";
   var rID  = "ROL00021091073923770";
   var dID  = "DEP00051091073824187";
   var Result_mID = Server.getManagersOfDRM(mID);
       //returns <DFN>a Vector Object</DFN>
   var Result_rID = Server.getManagersOfDRM(rID);
       //returns <DFN>a Vector Object</DFN>
   var Result_dID = Server.getManagersOfDRM(dID);
       //returns <DFN>a Vector Object</DFN>
   if(Reslut_mID != null){
        for(var i=0; i<Result_mID.size(); i++){
            var str = Result_mID.get(i);
             for(var j=0; j<str.length; j++)
                  var ManagerID = str[j];
       }
 

Specified by:
getManagersOfDRM in interface OrgService
Parameters:
id - the given member id, role id, or department id
Returns:
the Vector object (each element in Vector are array of String)
Since:
version 2.2.3

getMember

MemberRecord getMember(java.lang.String id)
Return a data object of member by ID, LoginID, or Chinese-Name. The method is used while the content of parameter has not been known. Otherwise, methods getMemberByID(), getMemberByName(), getMemberByCName() is more applied.

Examples:

   var mID  = "MEM00300455304127";
   var mLoginID = "square";
   var mName= "JackLin";
   var MemberBymID = WCCI.getMember(mID);
       returns <DFN>a MemberRecord Object</DFN>
   var MemberBymLoginID = WCCI.getMember(mLoginID);
       returns <DFN>a MemberRecord Object</DFN>
   var MemberBycName = WCCI.getMember(mName);
       returns <DFN>a MemberRecord Object</DFN>
 

Specified by:
getMember in interface OrgService
Parameters:
mID - the given MemberID, MemberLoginID, or MemberCName
Returns:
the member
Since:
version 1.0.0
See Also:
MemberRecord

getMemberAccess

AccessMember getMemberAccess(java.lang.String mID)
Get the access config of Agenda for the specific member

Specified by:
getMemberAccess in interface SecurityService
Parameters:
mID - the given RecordMemberID
Returns:
the AccessMember instance
Since:
version 1.1.5p4
See Also:
AccessMember

getMemberAdminAccess

AccessAdmin getMemberAdminAccess(java.lang.String mID)
Get the access config of Admin for the specific member

Specified by:
getMemberAdminAccess in interface SecurityService
Parameters:
mID - the given RecordMemberID
Returns:
the AccessAdmin instance
Since:
version 1.1.5p4
See Also:
AccessAdmin

getMemberArtifactAccess

java.util.Vector getMemberArtifactAccess(java.lang.String mID)
Get the access config list of Agenda's function "artifact search" for the specific member

Specified by:
getMemberArtifactAccess in interface SecurityService
Parameters:
mID - the given RecordMemberID
Returns:
the correspondence data(each element in Vector are instance of AccessArtifact)
Since:
version 1.1.5p4
See Also:
AccessArtifact

getMemberByCName

MemberRecord getMemberByCName(java.lang.String mName)
Return a data object of member by Chinese-Name.

Examples:

   var mName = "JackLin";
   var MemberRecord = WCCI.getMemberByCName(mName);
       returns <DFN>a MemberRecord Object</DFN>
 

Specified by:
getMemberByCName in interface OrgService
Parameters:
mLoginID - the given MemberCName
Returns:
the member
Since:
version 1.0.0
See Also:
MemberRecord

getMemberByID

MemberRecord getMemberByID(java.lang.String mID)
Return a data object of member by ID.

Examples:

   var mID  = "MEM00300455304127";
   var MemberRecord = WCCI.getMemberByID(mID);
       returns <DFN>a MemberRecord Object</DFN>
 

Specified by:
getMemberByID in interface OrgService
Parameters:
mID - the given MemberID
Returns:
the member
Since:
version 1.0.0
See Also:
MemberRecord

getMemberByName

MemberRecord getMemberByName(java.lang.String mLoginID)
Return a data object of member by LoginID.

Examples:

   var mLoginID = "square";
   var MemberRecord = WCCI.getMemberByName(mLoginID);
       returns <DFN>a MemberRecord Object</DFN>
 

Specified by:
getMemberByName in interface OrgService
Parameters:
mID - the given MemberLoginID
Returns:
the member
Since:
version 1.0.0
See Also:
MemberRecord

getMemberDesignerAccess

AccessAdmin getMemberDesignerAccess(java.lang.String mID)
Get the access config of Designer for the specific member

Specified by:
getMemberDesignerAccess in interface SecurityService
Parameters:
mID - the given RecordMemberID
Returns:
the AccessAdmin instance
Since:
version 1.1.5p4
See Also:
AccessAdmin

getMemberOnLineAccess

AccessOnLineUser getMemberOnLineAccess(java.lang.String mID)
Get the access config of Agenda's function "on-line user" for the specific member

Specified by:
getMemberOnLineAccess in interface SecurityService
Parameters:
mID - the given RecordMemberID
Returns:
the AccessOnLineUser instance
Since:
version 1.1.5p4
See Also:
AccessOnLineUser

getMemberTaskAccess

java.util.Vector getMemberTaskAccess(java.lang.String mID)
Get the access config list of Agenda's function "task search" for the specific member

Specified by:
getMemberTaskAccess in interface SecurityService
Parameters:
mID - the given RecordMemberID
Returns:
the correspondence data(each element in Vector are instance of AccessTask)
Since:
version 1.1.5p4
See Also:
AccessTask

getOnlineAdminUser

java.util.Vector getOnlineAdminUser()
Get the on-line admin user list

Specified by:
getOnlineAdminUser in interface UtilityService
Returns:
the MemberRecord list(each element in Vector are instance of MemberRecord)
See Also:
MemberRecord

getOnlineUser

java.util.Vector getOnlineUser()
Get the on-line user list

Specified by:
getOnlineUser in interface UtilityService
Returns:
the MemberRecord list(each element in Vector are instance of MemberRecord)
See Also:
MemberRecord

getOrgService

OrgService getOrgService()

getPASEFreqAp

PASEFreqAp getPASEFreqAp(java.lang.String freID)
Return a PASEFreqAp with the specific ID.

Specified by:
getPASEFreqAp in interface PDEService
Parameters:
freID - the given PASEFreqApID
Returns:
the PASEFreqAp instance
Since:
version 1.1.5
See Also:
PASEFreqAp

getPASEMessageOfMember

java.util.Vector getPASEMessageOfMember(java.lang.String mID)
Description copied from interface: UtilityService
Get a member's messages

Specified by:
getPASEMessageOfMember in interface UtilityService
Parameters:
mID - the given MemberID
Returns:
result list(each element in Vector are PASEMessage)
See Also:
PASEMessage

getPASEOrgModel

PASEOrgModel getPASEOrgModel()
Returns a data object of PASEOrgModel. This org model includes all of the objects in organization, such as Company, Department, Role, MemberRecord, UnitType, PASEGroup.

Examples:

     PASEOrgModel orgmodel = WFCI.getPASEOrgModel();
     Vector allCompany = orgmodel.getAllCompanys();
     Vector allDepartment = orgmodel.getAllDepartment();
     Vector allRole = orgmodrl.getAllRole();
     Vector allMember = orgmodel.getAllMember();
 

Specified by:
getPASEOrgModel in interface OrgService
Returns:
the PASEOrgModel.
Since:
V3.5
See Also:
PASEOrgModel

getPASEProcessOfMember

java.util.Vector getPASEProcessOfMember(java.lang.String mID)
Return the root processes of some specific member.

Examples:

   var mID = "MEM0002993177798390";
   var PASEProcessList = WCCI.getPASEProcessOfMember(mID);
   if(PASEProcessList != null) {
       for(var i=0;i<PASEProcessList.size();i++){
           var process =PASEProcessList.get(i);
               returns <DFN>a PASEProcess Object</DFN>
       }
   }
 

Specified by:
getPASEProcessOfMember in interface PDEService
Parameters:
mID - the given MemberID
Returns:
the correspondence processes(each element in Vector are instance of PASEProcess)
Since:
version 1.0.0
See Also:
PASEProcess

getPdeService

PDEService getPdeService()

getPDiagramDetail

java.util.Vector getPDiagramDetail(java.lang.String rootTID)
Return the detail of process diagram.

Examples:

   var tID = "Tsk0003459343453";
   var task = WCCI.getTask(tID);
   var rootTID = currTask.getRootID();
   var Result  = WCCI.getPDiagramDetail(rootTID);
   for(var i=0;i<Result.size();j++) {
       var taskInfo = Result.get(i);
           returns <DFN>TaskInfo object</DFN>
   }
 

Here are some more examples of how TaskInfo can be used:


   function getFormatedTime( lTime ){
       var date = new java.util.Date(lTime);
       var simpledateformat = new java.text.SimpleDateFormat("yyyy/MM/dd HH:mm");
       return simpledateformat.format(date);
   }

   var taskName = taskInfo.getTaskName();
       returns <DFN>Task Name</DFN> is like "Process1"

   var RealExecutorName = taskInfo.getRealExecutorName();
       returns <DFN>Real Executor Name</DFN> is like "JackLin"

   var RealExecutorID = taskInfo.getRealExecutorID();
       returns <DFN>Real Executor MemID</DFN> is like "MEM0000992492169920"

   var DefaultExecutorName = taskInfo.getDefaultExecutorName();
       returns <DFN>Default Executor Name</DFN> is like "Jean"

   var DefaultExecutorID = taskInfo.getDefaultExecutorID();
       returns <DFN>Default Executor MemID</DFN> is like "MEM0000212392162210"

   var ArtiName = taskInfo.getArtiName();
       returns <DFN>Artifact Name</DFN> is like "Artifact1"

   var ArtiKeyWord = taskInfo.getArtiKW();
       returns <DFN>Artifact Keyword by User Input</DFN>

   var ArriTime = taskInfo.getArriTime();
       returns <DFN>Task Arrivate Time</DFN> is like 993524946300

   var ArriTimeStr = getFormatedTime(ArriTime);
       returns <DFN>the Time Formate of ArriTime</DFN> is like "2001/06/26 11:09"

   var DuraTime = taskInfo.getDuraTime();
       returns <DFN>Duration Time</DFN> is like -993524946300

   var DuraTimeStr = getFormatedTime(DuraTime);
       returns <DFN>the Time Formate of DuraTime</DFN> is like "1938/07/09 04:50"

   var TaskID = taskInfo.getTaskID();
       returns <DFN>TaskID</DFN> is like "Tsk000000258259"

   var ArtiID = taskInfo.getArtiID();
       returns <DFN>Artifact InstanceID</DFN> is like "Ans000000248248"

   var TaskState = taskInfo.getTaskState();
       returns <DFN>Task State</DFN> is like "running"

   var Task = taskInfo.getTask();
       returns <DFN>Task object</DFN>
 

Specified by:
getPDiagramDetail in interface FlowService
Parameters:
rootPID - the given ProcessID
Returns:
the detail information in process diagram
Since:
version 1.0.0
See Also:
PDiagramManager, PDiagramManager.getPDiagramDetail

getPDiagramState

java.util.HashMap getPDiagramState(java.lang.String rootTID)
Return the states of process diagram.

Examples:

   var tID = "Tsk0003459343453";
   var task = WCCI.getTask(tID);
   var rootTID = task.getRootID();
   var Result = WCCI.getPDiagramState(rootTID);
   for(var i = Result.entrySet().iterator();i.hasNext(); ){
       var entry = i.next();
           returns "PRO0549992486182610Root_POPUP_DELIBLE=running"
   };
 

Specified by:
getPDiagramState in interface FlowService
Parameters:
rootPID - the given ProcessID
Returns:
the result ( [Key:Value] = [retValue:Boolean(true/false)])
Since:
version 1.0.0
See Also:
PDiagramManager, PDiagramManager.getPDiagramState

getProcessDiagram

java.util.HashMap getProcessDiagram(java.lang.String rootPID,
                                    java.lang.String rootTaskID)
Return a process diagram

Specified by:
getProcessDiagram in interface FlowService
Parameters:
rootPID - the given ProcessID
rootTaskID - the given TaksID
Returns:
the process diagram
See Also:
PDiagramManager, PDiagramManager.getProcessDiagram

getProcessDiagramAndState

java.util.HashMap getProcessDiagramAndState(java.lang.String rootPID,
                                            java.lang.String rootTaskID)
Get Monitor Diagram Data

Specified by:
getProcessDiagramAndState in interface FlowService
Parameters:
rootPID - root process id
rootTaskID - root task id
Returns:
the process diagram and its states
See Also:
PDiagramManager

getProcessView

java.util.HashMap getProcessView(java.lang.String rootPID)
Specified by:
getProcessView in interface FlowService

getProductInfo

java.util.HashMap getProductInfo()
Get the product version info.
 HashMap proInfo = wcci.getProductInfo();
 productInfo.get("SerialNo"); // The product version
 productInfo.get("AuthoredName"); // The license number
 productInfo.get("Corp"); // The user name
 

Specified by:
getProductInfo in interface UtilityService
Returns:
the product info.
Since:
version 1.1.5

getProject

Project getProject(java.lang.String prjID)
Return a data object of project by ID.

Examples:

   var prjID = "PRJ0044036520459";
   var Project = WCCI.getProject(prjID);
       returns <DFN>a Project Object</DFN>
 

Specified by:
getProject in interface PDEService
Parameters:
prjID - the given ProjectID
Returns:
the project
Since:
version 1.0.0
See Also:
Project

getProjectOfCompany

java.util.Vector getProjectOfCompany()
Return all projects.

Examples:

   var ProjectList = WCCI.getProjectOfCompany();
   if(ProjectList != null) {
       for(var i=0;i<ProjectList.size();i++){
           var Project = ProjectList.get(i);
               returns <DFN>a Project Object</DFN>
       }
   }
 

Specified by:
getProjectOfCompany in interface PDEService
Returns:
the correspondence projects(each element in Vector are instance of Project)
Since:
version 1.1.5
See Also:
Project

getProjectOfDepartment

java.util.Vector getProjectOfDepartment(java.lang.String dID)
Return the projects of some specific department.

Examples:

   var dID = "DEP0000972876387719";
   var ProjectList = WCCI.getProjectOfDepartment(dID);
   if(ProjectList != null) {
       for(var i=0;i<ProjectList.size();i++){
           var Project =ProjectList.get(i);
               returns <DFN>a Project Object</DFN>
       }
   }
 

Specified by:
getProjectOfDepartment in interface PDEService
Parameters:
dID - the given DepartmentID
Returns:
the correspondence projects(each element in Vector are instance of Project)
Since:
version 1.1.5
See Also:
Project

getProjectOfManager

java.util.Vector getProjectOfManager(java.lang.String managerID)
Return the projects with some specific project manager.

Examples:

   var managerID = "MEM953256027740";
   var ProjectList = WCCI.getProjectOfManager(managerID);
   if(ProjectList != null) {
       for(var i=0;i<ProjectList.size();i++){
           var Project =ProjectList.get(i);
               returns <DFN>a Project Object</DFN>
       }
   }
 

Specified by:
getProjectOfManager in interface PDEService
Parameters:
managerID - the given MemberID
Returns:
the correspondence projects(each element in Vector are instance of Project)
Since:
version 1.1.5
See Also:
Project

getProjectOfPASEProcess

Project getProjectOfPASEProcess(java.lang.String proID)
Return the project of the PASEProcess.

Examples:

   var proID = "PRO00440363552012";
   var Project = WCCI.getProjectOfPASEProcess(proID);
       returns <DFN>a Project Object</DFN>
 

Specified by:
getProjectOfPASEProcess in interface PDEService
Parameters:
proID - the given PASEProcessID
Returns:
the project
Since:
version 1.1.5
See Also:
Project

getProjectRole

ProjectRole getProjectRole(java.lang.String rID)
Return a data object of project role by ID.

Examples:

   var rID  = MyTask.getRoleID();
   var ProjectRole = WCCI.getProjectRole(rID);
       returns <DFN>a ProjectRole Object</DFN>
 

Specified by:
getProjectRole in interface OrgService
Parameters:
rID - the given ProjectRoleID
Returns:
the project role
Since:
version 1.0.0
See Also:
ProjectRole

getRequestHistoryRootTaskOfJoinMember

java.util.Vector getRequestHistoryRootTaskOfJoinMember(java.lang.String mbrID)
Return a Request History Root Task List of the Member(mbrID)

Specified by:
getRequestHistoryRootTaskOfJoinMember in interface FlowService
Parameters:
mbrID - the given member id
Returns:
the correspondence Tasks(each element in Vector are instance of Task)
Since:
version 1.1.5p2
See Also:
Task

getRole

Role getRole(java.lang.String rID)
Return a data object of role by ID.

Examples:

   var rID  = MyTask.getRoleID();
   var role = WCCI.getRole(rID);
       returns <DFN>a Role Object</DFN>
 

Specified by:
getRole in interface OrgService
Parameters:
dID - the given RoleID
Returns:
the role
Since:
version 1.0.0
See Also:
Role

getRootDBProcessByName

java.util.Vector getRootDBProcessByName(java.lang.String pName)
Return all root process of some specific process name.

Specified by:
getRootDBProcessByName in interface PDEService
Parameters:
pName - the given Process Name
Returns:
the correspondence processes(each element in Vector are instance of DBProcess)
Since:
version 1.1.0
See Also:
DBProcess

getRootDBProcessOfProject

java.util.Vector getRootDBProcessOfProject(java.lang.String prjID)
Return all root process of some specific project.

Examples:

   var prjID = "PRJ0023992486182440";
   var DBProcessList = WCCI.getRootDBProcessOfProject(pID);
   if(DBProcessList != null) {
       for(var i=0;i<DBProcessList.size();i++){
           var process = processList.get(i);
               returns <DFN>a DBProcess Object</DFN>
       }
   }
 

Specified by:
getRootDBProcessOfProject in interface PDEService
Parameters:
prjID - the given ProjectID
Returns:
the correspondence processes(each element in Vector are instance of DBProcess)
Since:
version 1.0.0
See Also:
DBProcess

getRootTaskOfJoinMember

java.util.Vector getRootTaskOfJoinMember(java.lang.String mID)
Return root tasks with some specific member is involved in. The root tasks' state are not complete or dead.

Specified by:
getRootTaskOfJoinMember in interface FlowService
Parameters:
mID - the given MemberID
Returns:
the correspondence tasks(each element in Vector are instance of Task)
Since:
version 1.0.0
See Also:
Task

getRootTaskOfJoinMember

java.util.Vector getRootTaskOfJoinMember(java.lang.String mID,
                                         int state)
Return root tasks with the specific member is involved in and the specific state.

Specified by:
getRootTaskOfJoinMember in interface FlowService
Parameters:
mID - the given MemberID
state - the given TaskState,see attributes TASK_STATE_XXX in pe.pase.Task
Returns:
the correspondence tasks(each element in Vector are instance of Task)
Since:
version 1.0.0
See Also:
Task

getRootTaskOfJoinMember

java.util.Vector getRootTaskOfJoinMember(java.lang.String mID,
                                         java.lang.String proID)
Return root tasks with the specific member is involved in and the specific state.

Specified by:
getRootTaskOfJoinMember in interface FlowService
Parameters:
mID - the given MemberID
proID - the given ProcessID
Returns:
the correspondence tasks(each element in Vector are instance of Task)
Since:
version 1.0.0
See Also:
Task

getRootTaskOfMember

java.util.Vector getRootTaskOfMember(java.lang.String mID)
Return root tasks executed by some specific member.

Examples:

   var mID = "MEM953256027740";
   var TaskList = WCCI.getRootTaskOfMember(mID);
   for (var i=0;i<TaskList.size();i++) {
       var Task=TaskList.get(i);
           returns <DFN>a Task Object</DFN>
   }
 

Specified by:
getRootTaskOfMember in interface FlowService
Parameters:
mID - the given MemberID
Returns:
the correspondence tasks(each element in Vector are instance of Task)
Since:
version 1.0.0
See Also:
Task

getRootTaskOfMember

java.util.Vector getRootTaskOfMember(java.lang.String mID,
                                     int state)
Return root tasks which in some state and executed by some specific member.

Examples:

   var mID = "MEM953256027740";
   var state = pe.pase.Task.TASK_STATE_RUNNING;
   var TaskList = WCCI.getRootTaskOfMember(mID,state);
   for (var i=0;i<TaskList.size();i++) {
       var Task=TaskList.get(i);
           returns <DFN>a Task Object</DFN>
   }
 

Specified by:
getRootTaskOfMember in interface FlowService
Parameters:
mID - the given MemberID
state - the given TaskState,see attributes TASK_STATE_XXX in pe.pase.Task
Returns:
the correspondence tasks(each element in Vector are instance of Task)
Since:
version 1.0.0
See Also:
Task

getRootTaskOfProcess

java.util.Vector getRootTaskOfProcess(java.lang.String proID)
Return the root task list of the Process.

Examples:

 var proID = "PRO00440363552012";
 var state = 2 + 4;
 var taskList = WCCI.getRootTaskOfProcess(proID);
 if (taskList != null) {
        for (var i = 0; i < taskList.size(); i++) {
                var task = taskList.get(i);
        }
 }
 

Specified by:
getRootTaskOfProcess in interface FlowService
Parameters:
proID - the given DBProcess ID
Returns:
the correspondence task in Vector(each element in Vector is a instance of TinyTask)
Since:
version 2.2.3

getRootTaskOfProcess

java.util.Vector getRootTaskOfProcess(java.lang.String proID,
                                      int state)
Return the root task list of the Process with the specific state.

Examples:

 var proID = "PRO00440363552012";
 var state = 2 + 4;
 var taskList = WCCI.getRootTaskOfProcess(proID, state);
 if (taskList != null) {
        for (var i = 0; i < taskList.size(); i++) {
                var task = taskList.get(i);
        }
 }
 

Specified by:
getRootTaskOfProcess in interface FlowService
Parameters:
proID - the given DBProcessID
state - the task state:
  • Ready = 1
  • Running = 2
  • Complete = 4
  • Suspended = 8
  • DEAD = 16
  • QUEUE = 32
  • Server Waiting = 64
  • Client Waiting = 128
  • Lock = 256
  • All = 1 & 2 & 4 & 8 & 16 & 32 & 64 & 128 & 256
Returns:
the correspondence tasks in Vector(each element in Vector is a instance of TinyTask)
Since:
version 2.2.3

getSecurityService

SecurityService getSecurityService()

getServerStatus

java.util.HashMap getServerStatus()
Get server status.

Specified by:
getServerStatus in interface UtilityService
Returns:
true if it has been invoked successfully ;false otherwise
Since:
version 1.1.5p4

getServerTime

long getServerTime()
Get server time.

Specified by:
getServerTime in interface UtilityService
Returns:
long the server time
Since:
version 1.1.6

getSessionConnectionURL

java.util.HashMap getSessionConnectionURL(int seq)
Get a db configuration by given sequence number.

Specified by:
getSessionConnectionURL in interface DBService
Parameters:
seq - the sequence which the data is store in configuration
Returns:
the HashMap shows the SessionConnection configuration

getSessionConnectionURL

java.util.HashMap getSessionConnectionURL(java.lang.String name)
Get a db configuration by given name.

Specified by:
getSessionConnectionURL in interface DBService
Parameters:
name - the name to recognize the db configuration, from 1
Returns:
the HashMap shows the SessionConnection configuration

getSessionConnectionURLList

java.util.Vector getSessionConnectionURLList()
Get all db configurations.

Specified by:
getSessionConnectionURLList in interface DBService
Returns:
all SessionConnection configurations(each element in Vector are instance of HashMap)

getSubMemListOfMember

java.util.Vector getSubMemListOfMember(java.lang.String mID)
Return a MemberRecord ID list of sub-members of the member.

Specified by:
getSubMemListOfMember in interface OrgService
Parameters:
mID - the given MemberRecordID
Returns:
the MemberRecord ID list
Since:
version 1.1

getSubTaskList

java.util.Vector getSubTaskList(java.lang.String parentID)
Return subtasks of some specific task.

Examples:

   var parentID = "Tsk000000254284";
   var TaskList = WCCI.getSubTaskList(parentID);
   for (var i=0;i<TaskList.size();i++) {
       var Task=TaskList.get(i);
           returns <DFN>a Task Object</DFN>
   }
 

Specified by:
getSubTaskList in interface FlowService
Parameters:
parentTID - the given TaskID
Returns:
the correspondence tasks(each element in Vector are instance of Task)
Since:
version 1.0.0
See Also:
Task

getTask

Task getTask(java.lang.String tID)
Return a data object of task.

Examples:

   var taskID = "Tsk000000226229";
   var Task = WCCI.getTask(taskID);
       returns <DFN>a Task Object</DFN>
 

Specified by:
getTask in interface FlowService
Parameters:
tID - the given TaskID
Returns:
the task
Since:
version 1.0.0
See Also:
Task

getTaskIDListOfMember

java.util.Vector getTaskIDListOfMember(java.lang.String mID,
                                       int sc,
                                       int ec,
                                       java.lang.String order)
Return all task id of some specific member. parameter 'order' should be one of the followring : TASK_SORT_PROID, TASK_SORT_STATE, TASK_SORT_MEMID, TASK_SORT_EXEID, TASK_SORT_DEPID, TASK_SORT_ROLID, TASK_SORT_STARTTIME, TASK_SORT_ENDTIME, TASK_SORT_TYPE, TASK_SORT_KEYWORD, TASK_SORT_PRIORITY

Specified by:
getTaskIDListOfMember in interface FlowService
Parameters:
mID - the given MemberID
sc - start index
ec - end index
order - for sorting
Returns:
the task ID list
Since:
version 1.1.6
See Also:
Task

getTaskList

java.util.Vector getTaskList(java.lang.String mID)
Return all tasks of some specific member.

Specified by:
getTaskList in interface FlowService
Parameters:
mID - the given MemberID
Returns:
the correspondence tasks(each element in Vector are instance of Task)
Since:
version 1.0.0
See Also:
Task

getTaskManager

TaskManager getTaskManager()
Get a TaskManager object.

Returns:
a TaskManager object.
Since:
version 1.1

getTaskOfMember

java.util.Vector getTaskOfMember(java.lang.String mID)
Return tasks executed by some specific member.

Examples:

   var mID = "MEM953256027740";
   var TaskList = WCCI.getTaskOfMember(mID);
   for (var i=0;i<TaskList.size();i++) {
       var Task=TaskList.get(i);
           returns <DFN>a Task Object</DFN>
   }
 

Specified by:
getTaskOfMember in interface FlowService
Parameters:
mID - the given MemberID
Returns:
the correspondence tasks(each element in Vector are instance of Task)
Since:
version 1.0.0
See Also:
Task

getTaskOfMember

java.util.Vector getTaskOfMember(java.lang.String mID,
                                 int state)
Return root tasks which in some state and executed by some specific member.

Examples:

   var mID = "MEM953256027740";
   var state = pe.pase.Task.TASK_STATE_RUNNING;
   var TaskList = WCCI.getTaskOfMember(mID,state);
   for (var i=0;i<TaskList.size();i++) {
       var Task=TaskList.get(i);
           returns <DFN>a Task Object</DFN>
   }
 

Specified by:
getTaskOfMember in interface FlowService
Parameters:
mID - the given MemberID
state - the given TaskState, see attributes TASK_STATE_XXX in pe.pase.Task
Returns:
the correspondence tasks(each element in Vector are instance of Task)
Since:
version 1.0.0
See Also:
Task

getTaskOfProcess

java.util.Vector getTaskOfProcess(java.lang.String proID)
Return the task list of the Process.

Examples:

 var proID = "PRO00440363552012";
 var state = 2 + 4;
 var taskList = WCCI.getTaskOfProcess(proID);
 if (taskList != null) {
        for (var i = 0; i < taskList.size(); i++) {
                var task = taskList.get(i);
        }
 }
 

Specified by:
getTaskOfProcess in interface FlowService
Parameters:
proID - the given PASEProcessID
Returns:
the correspondence tasks in Vector(each element in Vector is a instance of Task)
Since:
version 1.1.5
See Also:
Task

getTaskOfProcess

java.util.Vector getTaskOfProcess(java.lang.String proID,
                                  int state)
Return the task list of the Process with the specific state.

Examples:

 var proID = "PRO00440363552012";
 var state = 2 + 4;
 var taskList = WCCI.getTaskOfProcess(proID, state);
 if (taskList != null) {
        for (var i = 0; i < taskList.size(); i++) {
                var task = taskList.get(i);
        }
 }
 

Specified by:
getTaskOfProcess in interface FlowService
Parameters:
proID - the given PASEProcessID
state - the task state:
  • Ready = 1
  • Running = 2
  • Complete = 4
  • Suspended = 8
  • DEAD = 16
  • QUEUE = 32
  • Server Waiting = 64
  • Client Waiting = 128
  • Lock = 256
  • All = 1 & 2 & 4 & 8 & 16 & 32 & 64 & 128 & 256
Returns:
the correspondence tasks in Vector(each element in Vector is a instance of Task)
Since:
version 1.1.5
See Also:
Task

getTaskOfRootTask

java.util.Vector getTaskOfRootTask(java.lang.String rootTID)
Return tasks of some specific root task.

Examples:

   var rootTID = "Tsk000000254284";
   var TaskList = WCCI.getTaskOfRootTask(rootTID);
   for (var i=0;i<TaskList.size();i++) {
       var Task=TaskList.get(i);
           returns <DFN>a Task Object</DFN>
   }
 

Specified by:
getTaskOfRootTask in interface FlowService
Parameters:
rootTID - the given TaskID
Returns:
the correspondence tasks(each element in Vector are instance of Task)
Since:
version 1.0.0
See Also:
Task

getTreeTaskList

java.util.HashMap getTreeTaskList(java.lang.String mID)
Return the project-tasks vector of some specific member.

Specified by:
getTreeTaskList in interface FlowService
Parameters:
mID - the given MemberID
Returns:
the result ( [Key:Value] = [PojectID:ProjectTask )
Since:
version 1.1.5
See Also:
ProjectTask

getUserLoginTime

long getUserLoginTime(java.lang.String loginID)
Description copied from interface: UtilityService
Get login time for a Agenda user.

Specified by:
getUserLoginTime in interface UtilityService
Parameters:
loginID - the given login ID
Returns:
the time

getUtilityService

UtilityService getUtilityService()

getWeek

int[] getWeek()
Get the weeks list of system's default calendar

Specified by:
getWeek in interface UtilityService
Returns:
an array of integer.
Since:
version 1.0

getWorkdays

java.util.Vector getWorkdays()
Get the workdays list.

Specified by:
getWorkdays in interface UtilityService
Returns:
a Vector of date.
Since:
version 1.0

goBackTo

boolean goBackTo(java.lang.String fromTaskID,
                 java.lang.String toProID,
                 boolean artMode)
Description copied from interface: FlowService
Sets the executing task back to another process which had been executed.

Examples:

 var fromTaskID = "Tsk000000226229";
 
 var toProID = "PRO00440363552012";
 
 var Result = WFCI.goBackTo(fromTaskID, toProID, true);
 

Specified by:
goBackTo in interface FlowService
Parameters:
fromTaskID - the given Task
toProID - the given process id
artMode - an artifact content mode. True for present artifact content or false for archived artifact content in the specified process.
Returns:
true if succeeded; false otherwise. @
See Also:
Task

goBackTo

boolean goBackTo(java.lang.String fromTaskID,
                 Task toTask,
                 boolean artMode)
Description copied from interface: FlowService
Sets the executing task back to another process which had been executed.

Examples:

 var fromTaskID = "Tsk000000226229";
 
 var toTask = WFCI.getTask("Tsk0001134355209");
 
 var Result = WFCI.goBackTo(fromTaskID, toTask, true);
 

Specified by:
goBackTo in interface FlowService
Parameters:
fromTaskID - the given task id
toTask - the given Task
artMode - an artifact content mode. True for present artifact content or false for archived artifact content in the specified process.
Returns:
true if succeeded; false otherwise. @
See Also:
Task

goBackTo

boolean goBackTo(java.lang.String fromTaskID,
                 Task toTask,
                 boolean artMode,
                 boolean isEmailNotify)
Description copied from interface: FlowService
Sets the executing task back to another process which had been executed.

Examples:

   var fromTaskID = "Tsk000000226229";
   var toTask = WFCI.getTask("Tsk0001134355209");
   var Result = WFCI.goBackTo(fromTaskID, toTask, true);
 

Specified by:
goBackTo in interface FlowService
Parameters:
fromTaskID - a Task ID.
toTask - a Task.
artMode - an artifact content mode. True for present artifact content or false for archived artifact content in the specified process.
Returns:
true if succeeded; false otherwise.
See Also:
Task

goBackTo

boolean goBackTo(Task fromTask,
                 java.lang.String toProID,
                 boolean artMode)
Description copied from interface: FlowService
Sets the executing task back to another process which had been executed.

Examples:

 var fromTask = WFCI.getTask("Tsk000000226229");
 
 var toProID = "PRO00440363552012";
 
 var Result = WFCI.goBackTo(fromTask, toProID, true);
 

Specified by:
goBackTo in interface FlowService
Parameters:
fromTask - the given Task
toProID - the given process id
artMode - an artifact content mode. true for present artifact content. false for archived artifact content in the specified process.
Returns:
true if succeeded; false otherwise. @
See Also:
Task

goBackToWithDetailRet

java.util.HashMap goBackToWithDetailRet(Task fromTask,
                                        java.lang.String toProID,
                                        boolean artMode)
Description copied from interface: FlowService
Sets the executing task back to another process which had been executed.

Specified by:
goBackToWithDetailRet in interface FlowService
Parameters:
fromTask - the given Task
toProID - the given process id
artMode - an artifact content mode. true for present artifact content. false for archived artifact content in the specified process.
Returns:
the HashMap.
See Also:
Task

initAgenda

java.util.HashMap initAgenda(java.lang.String user)
Initialize user's personal Agenda.

Specified by:
initAgenda in interface UtilityService
Parameters:
user - the username
Returns:
the user's the content of Agenda
Since:
version 1.0.0

initHoliday

void initHoliday()
Initialize holidays.

Specified by:
initHoliday in interface UtilityService
Since:
version 1.0

initProcess

java.util.HashMap initProcess(java.lang.String user,
                              PASEProcess process)
Initial the process.

Examples:

   var loginID = john
   var pID = "PRO0549992486182610";
   var paseProcess = new pe.pase.PASEProcess(pID);
   var hashmap = WCCI.initProcess(loginID, paseProcess);
   var rootTaskID = hashmap.get("rootTaskID");
       returns <DFN>root TaskID</DFN> is like "Tsk000000263264"
   var retValue = hashmap.get("retValue");
       returns <DFN>true if it gets successfully;false otherwise</DFN>
 

Specified by:
initProcess in interface FlowService
Parameters:
user - the given Username
process - the given Process
Returns:
the result ( [Key:Value] = [rootTaskID:rootTaskID] ; [retValue:Boolean(true/false)])
Since:
version 1.0.0

initProcess

java.util.HashMap initProcess(java.lang.String user,
                              java.lang.String roleID,
                              java.lang.String depID,
                              java.lang.String processID,
                              java.lang.String processName,
                              java.lang.String subject,
                              int priority)
Initial the process.

Examples:

   var loginID = john
   var rID = "ROL0033004134576";
   var dID = "DEP00231111007865";
   var pID = "PRO0549992486182610";
   var pName = "New Process";
   var subject = "testing initProcess";
   var priority = pe.pase.Task.PRIORITY_HIGHEST;
   var hashmap = WCCI.initProcess(loginID, rID, dID, pID, pName, subject, priority);
   var rootTaskID = hashmap.get("rootTaskID");
       returns <DFN>root TaskID</DFN> is like "Tsk000000263264"
   var retValue = hashmap.get("retValue");
       returns <DFN>true if it gets successfully;false otherwise</DFN>
 

Parameters:
user - the given Username
roleID - the given RoleID
depID - the given DepartmentID
processID - the given ProcessID
processName - the given PoleName
subject - the given Subject
priority - the given Priority,
    priority value:
  • PRIORITY_HIGHEST = 0;
  • PRIORITY_HIGH = 1;
  • PRIORITY_NORMAL = 2;
Returns:
the result ( [Key:Value] = [rootTaskID:rootTaskID] ; [retValue:Boolean(true/false)])
Since:
version 1.0.0

insertCompany

boolean insertCompany(Company company)
insert new Company into database.

Specified by:
insertCompany in interface OrgService
Parameters:
company - the Company instance
Returns:
true if successful, else false
See Also:
Company

insertDepartment

boolean insertDepartment(Department department)
insert new Department into database.

Specified by:
insertDepartment in interface OrgService
Parameters:
department - the Department instance
Returns:
true if successful, else false
See Also:
Department

insertMemberRecord

boolean insertMemberRecord(MemberRecord memberRecord)
insert new MemberRecord into database.

Specified by:
insertMemberRecord in interface OrgService
Parameters:
memberRecord - the MemberRecord instance
Returns:
true if successful, else false
See Also:
MemberRecord

insertRole

boolean insertRole(Role role)
insert new Role into database.

Specified by:
insertRole in interface OrgService
Parameters:
role - the Role instance
Returns:
true if successful, else false
See Also:
Role

isHalfHoliday

boolean isHalfHoliday(java.lang.String date)
Check specified date whether it's a half of holiday in system's default calendar or not.

Examples:

   var sDate = "2001/06/17";
   var Result = WCCI.isHalfHoliday(sDate);
       returns <DFN>true if it's a half of holiday;false otherwise</DFN>
 

Specified by:
isHalfHoliday in interface UtilityService
Parameters:
date - the given Date format String
Returns:
true if the date is a half of holiday; false otherwise.
Since:
version 1.0.0

isHalfHoliday

boolean isHalfHoliday(java.lang.String date,
                      java.lang.String memID)
Check if the date is half-holiday in member's calendar.

Specified by:
isHalfHoliday in interface UtilityService
Parameters:
date - the given date string
memID - the given member id string
Returns:
true if confirmed.
Since:
V3.1

isHoliday

boolean isHoliday(java.lang.String date)
Check specified date whether it's a holiday in system's default calendar or not.

Examples:

   var sDate = "2001/06/17";
   var Result = WCCI.isHoliday(sDate);
       returns <DFN>true if it's a holiday;false otherwise</DFN>
 

Specified by:
isHoliday in interface UtilityService
Parameters:
date - the given Date format String
Returns:
true if the date is a holiday; false otherwise.
Since:
version 1.0.0

isHoliday

boolean isHoliday(java.lang.String date,
                  java.lang.String memID)
Check if the date is holiday in member's calendar

Specified by:
isHoliday in interface UtilityService
Parameters:
date - the given date string
memID - the given member id string
Returns:
true if confirmed.
Since:
V3.1

isLockedTask

boolean isLockedTask(java.lang.String tskID)
Check the task locking state

Parameters:
tskID - the given TaskID
Returns:
true for locked
Since:
version 1.1.5

isRestSat

boolean isRestSat(java.lang.String date)
Check specified date whether it's a rest Saturday or not.

Examples:

   var sDate = "2001/06/17";
   var Result = WCCI.isRestSat(sDate);
       returns <DFN>true if it's rest Saturday;false otherwise</DFN>
 

Specified by:
isRestSat in interface UtilityService
Parameters:
date - the given Date format String
Returns:
true if the date is rest Saturday; false otherwise.
Since:
version 1.0.0

isServerConnecting

boolean isServerConnecting()
Check if wcci is connecting with the server.

Returns:
true if connecting ;false otherwise
Since:
version 1.1.6

loadValueWithSessionConnection

java.util.Vector loadValueWithSessionConnection(java.lang.String session,
                                                java.lang.String sqlcmd)
Description copied from interface: DBService
Invoke the connection to load value

Specified by:
loadValueWithSessionConnection in interface DBService
Parameters:
session - the given Session Key
sqlcmd - the given SQL statement
Returns:
SessionConnection key.
See Also:
ResultTable

lockTask

void lockTask(java.lang.String tskID)
Lock the root task of the task.

Examples:

 var taskID = "Tsk000000226229";
 WCCI.lockTask(taskID);
 

Specified by:
lockTask in interface FlowService
Parameters:
tskID - the given TaskID
Since:
version 1.1.5

login

java.util.HashMap login(java.lang.String user,
                        java.lang.String pass)
User login the PASE server.

Specified by:
login in interface UtilityService
Parameters:
user - the username
pass - the password
Returns:
the user info
Since:
version 1.0.0

login

java.util.Map login(java.lang.String user,
                    java.lang.String pass,
                    boolean toCheckDup)
To authenticate users (it doesn't register).

Specified by:
login in interface UtilityService
Parameters:
user - client user name
pass - client user password; it should be MD5-encrypted if AFDB authentication is used; otherwise it should be clear-text.
toCheckDup - whether this funtion should deny duplicate login (already registered users)
Returns:
a Map. key/value are described as follows (key-name:value-type, description) "retValue":Boolean, true if the task start successfully, false otherwise. "reason":String, µn¤J¥¢±Ñªº­ì¦]. multi:Boolean(), true multi-login

logout

void logout(java.lang.String user)
User logout the PASE server.

Specified by:
logout in interface UtilityService
Parameters:
user - the username
Since:
version 1.0.0

newCompany

Company newCompany()
generate a new Company object include ComID.

Specified by:
newCompany in interface OrgService
Parameters:
Company - company
Returns:
a company instance
See Also:
Company

newDepartment

Department newDepartment()
generate a new Department object include DepID.

Specified by:
newDepartment in interface OrgService
Parameters:
Department - department
Returns:
a department instance
See Also:
Department

newMemberRecord

MemberRecord newMemberRecord()
generate a new MemberRecord object include MemID.

Specified by:
newMemberRecord in interface OrgService
Parameters:
MemberRecord - memberRecord
Returns:
a MemberRecord instance
See Also:
MemberRecord

newRole

Role newRole()
generate a new Role object include RolID.

Specified by:
newRole in interface OrgService
Parameters:
Role - role
Returns:
a role instance
See Also:
role

notifyTask

java.util.HashMap notifyTask(java.lang.String tskID)
Remove be state of waiting of the task.

Examples:

   var taskID = "Tsk000000226229";
   var hashmap = WCCI.notifyTask(task);
   var retValue = hashmap.get("retValue");
       returns <DFN>true if it starts successfully;false otherwise</DFN>
 

Specified by:
notifyTask in interface FlowService
Parameters:
tskID - the given TaskID
Returns:
the result ( [Key:Value] = [retValue:Boolean(true)] )
Since:
version 1.1.5

pickQueueTask

boolean pickQueueTask(Task t)
Pick the queue of the task.

Examples:

 var taskID = "Tsk000000226229";

 var task = WCCI.getTask(taskID);

 var hashmap = WCCI.pcikQueueTask(task);
 

Specified by:
pickQueueTask in interface FlowService
Parameters:
t - the given Task
Since:
version 1.0.1

reflushProcessManager

boolean reflushProcessManager()
Description copied from interface: UtilityService
Cron-related functions, reflush cron-task schedule in Server.

Specified by:
reflushProcessManager in interface UtilityService
Returns:
true if successful; false otherwise.

registerClient

boolean registerClient(java.lang.String name)

registerClient

void registerClient(java.lang.String user,
                    ClientRMI client)
Register user's client in the PASE server.

Specified by:
registerClient in interface UtilityService
Parameters:
user - the username
client - the given ClientRMI
Since:
version 1.0.0

removeTaskByAdm

boolean removeTaskByAdm(java.lang.String p_TaskID)
Force to remove task.

Examples:

   var taskID = "Tsk000000226229";
   var Result = WCCI.removeTaskByAdm(taskID);
       returns <DFN>true if it sets successfully ;false otherwise</DFN>
 

Specified by:
removeTaskByAdm in interface FlowService
Parameters:
p_TaskID - the given RootTaskID
Returns:
true if succeeded
Since:
version 1.0.1

removeTaskByUser

boolean removeTaskByUser(java.lang.String p_RootTaskID,
                         java.lang.String p_MemID)
Force to remove task by the specific member.

Examples:

   var taskID = "Tsk000000226229";
   var memID = "MEM0000000334532";
   var Result = WCCI.removeTaskByAdm(taskID, memID);
       returns <DFN>true if it sets successfully ;false otherwise</DFN>
 

Specified by:
removeTaskByUser in interface FlowService
Parameters:
p_RootTaskID - the given RootTaskID
p_MemID - the given MemberRecordID
Returns:
true if succeeded
Since:
version 1.0.1

resetDeputyAndDeputyState

boolean resetDeputyAndDeputyState(java.lang.String p_MyMemID,
                                  java.lang.String p_DeputyMemID,
                                  boolean p_DeputyState)
Description copied from interface: UtilityService
Refresh deputy data in cache.

Specified by:
resetDeputyAndDeputyState in interface UtilityService
Parameters:
p_MyMemID - the given MemberRecord ID.
p_DeputyMemID - the given Deputy MemberRecord ID.
p_DeputyState - check if deputy state is activated.
Returns:
true if successful; false otherwise.

resetMemberDelegation

boolean resetMemberDelegation(MemberRecord mRecord)
Description copied from interface: OrgService
Redispatch tasks to deputy of the member and also update memberrecord.

Specified by:
resetMemberDelegation in interface OrgService
Specified by:
resetMemberDelegation in interface UtilityService
Parameters:
mRecord - MemberRecord memberrecord
Returns:
boolean true if success else false
See Also:
MemberRecord

rollbackSessionConnection

void rollbackSessionConnection(java.lang.String session)
Description copied from interface: DBService
Make rollback on the connection

Specified by:
rollbackSessionConnection in interface DBService
Parameters:
session - the given Session Key

saveCalendar

void saveCalendar(com.flowring.schedule.UserCalendar cal)
Description copied from interface: UtilityService
Save UserCalendar.

Specified by:
saveCalendar in interface UtilityService
Parameters:
cal - UserCalendar

saveSchedule

void saveSchedule(java.util.Vector hdays,
                  java.util.Vector h_days,
                  java.util.Vector wdays,
                  int[] w)
Save server's schedule.

Specified by:
saveSchedule in interface UtilityService
Parameters:
hdays - the Vector of holidays date
h_days - the Vector of half-holidays date
wdays - the Vector of workdays date
w - the array of weeks integer
Since:
version 1.0

searchData

java.util.Vector searchData(SearchCondition cond)
Get searched result by using given conditions. The pairs of condition and returned entity:

Specified by:
searchData in interface UtilityService
Parameters:
cond - the given SearchCondition
Returns:
a vector which entities depend on given condition type
Since:
version 1.1

searchDataCount

int searchDataCount(SearchCondition cond)
Get searched number by using given conditions. The condition choices are:

Specified by:
searchDataCount in interface UtilityService
Parameters:
cond - the given SearchCondition
Returns:
the number have found
Since:
version 1.1

sendHTMLMail

void sendHTMLMail(java.lang.String from,
                  java.lang.String to,
                  java.lang.String subject,
                  java.lang.String text)
Description copied from interface: UtilityService
Send E-Mail through internet, using HTML format.

Specified by:
sendHTMLMail in interface UtilityService
Parameters:
from - the "from" filed of E-Mail
to - the "to" field of E-Mail address(format:aaa@x.y.z), used as the destination of the E-Mail
subject - the "subject" field of E-Mail
text - the content of E-Mail

sendHTMLMail

void sendHTMLMail(java.lang.String from,
                  java.lang.String to,
                  java.lang.String cc,
                  java.lang.String subject,
                  java.lang.String text)
Description copied from interface: UtilityService
Send E-Mail through internet, using HTML format.

Specified by:
sendHTMLMail in interface UtilityService
Parameters:
from - the "from" filed of E-Mail
to - the "to" field of E-Mail address(format:aaa@x.y.z), used as the destination of the E-Mail
cc - the "cc" field of E-Mail address
subject - the "subject" field of E-Mail
text - the content of E-Mail

sendHTMLMail

void sendHTMLMail(java.lang.String from,
                  java.lang.String to,
                  java.lang.String cc,
                  java.lang.String subject,
                  java.lang.String text,
                  java.util.Vector fileList)
Description copied from interface: UtilityService
Send E-Mail through internet, using HTML format.

Specified by:
sendHTMLMail in interface UtilityService
Parameters:
from - the "from" filed of E-Mail
to - the "to" field of E-Mail address(format:aaa@x.y.z), used as the destination of the E-Mail
cc - the "cc" field of E-Mail address
subject - the "subject" field of E-Mail
text - the content of E-Mail
fileList - the attached file name list

sendHTMLMailExt

void sendHTMLMailExt(java.lang.String from,
                     java.lang.String to,
                     java.lang.String cc,
                     java.lang.String subject,
                     java.lang.String text,
                     java.util.Vector fileList,
                     java.lang.String tskID)
Description copied from interface: UtilityService
Send E-Mail through internet, using HTML format.

Specified by:
sendHTMLMailExt in interface UtilityService
Parameters:
from - the "from" filed of E-Mail
to - the "to" field of E-Mail address(format:aaa@x.y.z), used as the destination of the E-Mail
cc - the "cc" field of E-Mail address
subject - the "subject" field of E-Mail
text - the content of E-Mail
fileList - the attached file name list
tskID - the designated task ID to execute

sendHTMLMailExt

void sendHTMLMailExt(java.lang.String from,
                     java.lang.String to,
                     java.lang.String cc,
                     java.lang.String subject,
                     java.lang.String text,
                     java.util.Vector fileList,
                     Task task)
Description copied from interface: UtilityService
Send E-Mail through internet, using HTML format.

Specified by:
sendHTMLMailExt in interface UtilityService
Parameters:
from - the "from" filed of E-Mail
to - the "to" field of E-Mail address(format:aaa@x.y.z), used as the destination of the E-Mail
cc - the "cc" field of E-Mail address
subject - the "subject" field of E-Mail
text - the content of E-Mail
fileList - the attached file name list
task - the designated task to execute

sendHTMLMailExt

void sendHTMLMailExt(java.lang.String from,
                     java.lang.String to,
                     java.lang.String cc,
                     java.lang.String subject,
                     java.lang.String text,
                     java.util.Vector fileList,
                     Task task,
                     java.lang.String script)
Description copied from interface: UtilityService
Send E-Mail through internet, using HTML format.

Specified by:
sendHTMLMailExt in interface UtilityService
Parameters:
from - the "from" filed of E-Mail.
to - the "to" field of E-Mail address(format:aaa@x.y.z), used as the destination of the E-Mail.
cc - the "cc" field of E-Mail address.
subject - the "subject" field of E-Mail.
text - the content of E-Mail.
fileList - the attached file name list. The file name is based on PASE Server.
task - the designated task to execute.
script - the designated script to execute.

sendMail

void sendMail(java.lang.String from,
              java.lang.String to,
              java.lang.String subject,
              java.lang.String text)
Send E-Mail through internet.

Examples:

 var mID = "MEM0000992492169920";
 var CurrMember = WCCI.getMember(mID);
 var FrontMember = WCCI.getMember(MyTask.getFrontUser());
 var from = CurrMember.getEmail(); // Sender e-mail
 var to = FrontMember.getEmail(); // Receiver e-mail
 var subject = "This is a subject"; // Mail Subject
 var text = "This is a content"; // Mail Content
 WCCI.sendMail(from, to, subject, text);
 

Specified by:
sendMail in interface UtilityService
Parameters:
from - the "from" filed of E-Mail
to - the "to" field of E-Mail address(format:aaa@x.y.z), used as the destination of the E-Mail
subject - the "subject" field of E-Mail
text - the content of E-Mail
Since:
version 1.0.0

sendMail

void sendMail(java.lang.String from,
              java.lang.String to,
              java.lang.String cc,
              java.lang.String subject,
              java.lang.String text)
Description copied from interface: UtilityService
Send E-Mail through internet.

Specified by:
sendMail in interface UtilityService
Parameters:
from - the "from" filed of E-Mail
to - the "to" field of E-Mail address(format:aaa@x.y.z), used as the destination of the E-Mail
cc - the "cc" field of E-Mail address
subject - the "subject" field of E-Mail
text - the content of E-Mail

sendMail

void sendMail(java.lang.String from,
              java.lang.String to,
              java.lang.String cc,
              java.lang.String subject,
              java.lang.String text,
              java.util.Vector fileList)
Description copied from interface: UtilityService
Send E-Mail through internet.

Specified by:
sendMail in interface UtilityService
Parameters:
from - the "from" filed of E-Mail
to - the "to" field of E-Mail address(format:aaa@x.y.z), used as the destination of the E-Mail
cc - the "cc" field of E-Mail address
subject - the "subject" field of E-Mail
text - the content of E-Mail
fileList - the attached file name list

sendMailExt

void sendMailExt(java.lang.String from,
                 java.lang.String to,
                 java.lang.String cc,
                 java.lang.String subject,
                 java.lang.String text,
                 java.util.Vector fileList,
                 java.lang.String tskID)
Description copied from interface: UtilityService
Send E-Mail through internet.

Specified by:
sendMailExt in interface UtilityService
Parameters:
from - the "from" filed of E-Mail
to - the "to" field of E-Mail address(format:aaa@x.y.z), used as the destination of the E-Mail
cc - the "cc" field of E-Mail address
subject - the "subject" field of E-Mail
text - the content of E-Mail
fileList - the attached file name list
tskID - the designated task ID to execute

sendMailExt

void sendMailExt(java.lang.String from,
                 java.lang.String to,
                 java.lang.String cc,
                 java.lang.String subject,
                 java.lang.String text,
                 java.util.Vector fileList,
                 Task task)
Description copied from interface: UtilityService
Send E-Mail through internet.

Specified by:
sendMailExt in interface UtilityService
Parameters:
from - the "from" filed of E-Mail
to - the "to" field of E-Mail address(format:aaa@x.y.z), used as the destination of the E-Mail
cc - the "cc" field of E-Mail address
subject - the "subject" field of E-Mail
text - the content of E-Mail
fileList - the attached file name list
task - the designated task to execute

sendMailExt

void sendMailExt(java.lang.String from,
                 java.lang.String to,
                 java.lang.String cc,
                 java.lang.String subject,
                 java.lang.String text,
                 java.util.Vector fileList,
                 Task task,
                 java.lang.String script)
Description copied from interface: UtilityService
Send E-Mail through internet.

Specified by:
sendMailExt in interface UtilityService
Parameters:
from - the "from" filed of E-Mail.
to - the "to" field of E-Mail address(format:aaa@x.y.z), used as the destination of the E-Mail.
cc - the "cc" field of E-Mail address.
subject - the "subject" field of E-Mail.
text - the content of E-Mail.
fileList - the attached file name list. The file name is based on PASE Server.
task - the designated task to execute.
script - the designated script to execute.

sendPASEMessage

boolean sendPASEMessage(PASEMessage msg)
Send message through message-system built in Agentflow.

Examples:

   var mID = "MEM0000992492169920";
   var CurrMember = WCCI.getMember(mID);
   var fmID = "MEM0000992492169911";
   var FrontMember= WCCI.getMember(fmID);
   var msg = new pe.pase.PASEMessage();
   msg.setSendID(CurrMember.getID());     // Sender MemID
   msg.setSendName(CurrMember.getName()); // Sender Name
   msg.setRecID(FrontMember.getID());     // Receiver MemID
   msg.setRecName(FrontMember.getName()); // Receiver Name
   msg.setTitle("This is a title");       // Message Title
   msg.setMsg("This is a content");       // Message Content
   msg.setTime(java.lang.System.currentTimeMillis()); // Message create time
   var Result = WCCI.sendPASEMessage(msg);
       returns <DFN>true if it's successful;false otherwise</DFN>
 

Specified by:
sendPASEMessage in interface UtilityService
Parameters:
msg - the deliverable message
Returns:
true if successful; false otherwise.
Since:
version 1.0.0
See Also:
PASEMessage

sendShortMessageToAdminAll

void sendShortMessageToAdminAll(java.lang.String msg,
                                java.lang.String fromMemID)
Send a message from a specific member to all on-line members on Admin.

Specified by:
sendShortMessageToAdminAll in interface UtilityService
Parameters:
msg - the sent message context
fromMemID - the RecordMemberID which sends message
See Also:
MemberRecord

sendShortMessageToAdminUser

void sendShortMessageToAdminUser(java.lang.String msg,
                                 java.lang.String fromMemID,
                                 java.lang.String toMemID)
Send a message from a specific member to another specific member on Admin.

Specified by:
sendShortMessageToAdminUser in interface UtilityService
Parameters:
msg - the sent message context
fromMemID - the RecordMemberID which sends message
toMemID - the RecordMemberID which receives message
See Also:
MemberRecord

sendShortMessageToAll

void sendShortMessageToAll(java.lang.String msg,
                           java.lang.String fromMemID)
Send a message from a specific member to all on-line members on Agenda.

Specified by:
sendShortMessageToAll in interface UtilityService
Parameters:
msg - the sent message context
fromMemID - the RecordMemberID which sends message
See Also:
MemberRecord

sendShortMessageToUser

void sendShortMessageToUser(java.lang.String msg,
                            java.lang.String fromMemID,
                            java.lang.String toMemID)
Send a message from a specific member to another specific member on Agenda.

Specified by:
sendShortMessageToUser in interface UtilityService
Parameters:
msg - the sent message context
fromMemID - the RecordMemberID which sends message
toMemID - the RecordMemberID which receives message
See Also:
MemberRecord

sendTemplateMail

void sendTemplateMail(java.lang.String from,
                      java.lang.String to,
                      java.lang.String cc,
                      java.lang.String etID,
                      java.util.Vector fileList,
                      java.lang.String taskID,
                      boolean isHtml)
Specified by:
sendTemplateMail in interface PDEService

setAFConnection

void setAFConnection(AFConnection afConn)

setArtInsState

boolean setArtInsState(PASEartInstance artInstance,
                       java.lang.String stateID)
Return true for success, else false.

Examples:

   var iID = "ART0099992486182440";
   var artInstance = WCCI.getArtInstance(tID);
   var stateID = "AST0371992486182500";
   var Result  = WCCI.setArtInsState(artInstance, stateID);
       returns <DFN>true if it sets successfully ;false otherwise</DFN>
 

Specified by:
setArtInsState in interface FlowService
Parameters:
insID - the given ArtifactInstance
stateID - for ArtStateID
Returns:
true for success, else false
Since:
version 1.0.0
See Also:
PASEartInstance

setGlobals

void setGlobals(java.lang.String rootTaskID,
                java.util.HashMap args)
Keep data into database and then reuse.

Examples:

 var rootTaskID = "Tsk0003459343453";
 var ht = new java.util.HashMap();
 ht.put("ItemName", "Pen");
 WCCI.setGlobals(rootTaskID, ht);
 

Specified by:
setGlobals in interface UtilityService
Parameters:
rootTaskID - the given root TaskID
args - the given a HashMap data ( [Key:Value] = [retValue:Boolean(true/false)])
Since:
version 1.1.5

setMemberAccess

boolean setMemberAccess(java.lang.String mID,
                        AccessMember access)
Set the access config of Agenda for the specific member

Specified by:
setMemberAccess in interface SecurityService
Parameters:
mID - the given RecordMemberID
access - the given AccessMember
Returns:
true if it has been invoked successfully ;false otherwise
Since:
version 1.1.5p4
See Also:
AccessMember

setMemberAdminAccess

boolean setMemberAdminAccess(java.lang.String mID,
                             AccessAdmin access)
Set the access config of Admin for the specific member

Specified by:
setMemberAdminAccess in interface SecurityService
Parameters:
mID - the given RecordMemberID
access - the given AccessAdmin
Returns:
true if it has been invoked successfully ;false otherwise
Since:
version 1.1.5p4
See Also:
AccessAdmin

setMemberArtifactAccess

boolean setMemberArtifactAccess(java.lang.String mID,
                                java.util.Vector artifactAccessList)
Set the access config list of Agenda's function "artifact search" for the specific member

Specified by:
setMemberArtifactAccess in interface SecurityService
Parameters:
mID - the given RecordMemberID
taskAccessList - the given AccessArtifact list
Returns:
true if it has been invoked successfully ;false otherwise
Since:
version 1.1.5p4
See Also:
AccessArtifact

setMemberDesignerAccess

boolean setMemberDesignerAccess(java.lang.String mID,
                                AccessAdmin access)
Set the access config of Designer for the specific member

Specified by:
setMemberDesignerAccess in interface SecurityService
Parameters:
mID - the given RecordMemberID
access - the given AccessAdmin
Returns:
true if it has been invoked successfully ;false otherwise
Since:
version 1.1.5p4
See Also:
AccessAdmin

setMemberOnLineAccess

boolean setMemberOnLineAccess(java.lang.String mID,
                              AccessOnLineUser access)
Set the access config of Agenda's function "on-line user" for the specific member

Specified by:
setMemberOnLineAccess in interface SecurityService
Parameters:
mID - the given RecordMemberID
access - the given AccessOnLineUser
Returns:
true if it has been invoked successfully ;false otherwise
Since:
version 1.1.5p4
See Also:
AccessOnLineUser

setMemberTaskAccess

boolean setMemberTaskAccess(java.lang.String mID,
                            java.util.Vector taskAccessList)
Set the access config list of Agenda's function "task search" for the specific member

Specified by:
setMemberTaskAccess in interface SecurityService
Parameters:
mID - the given RecordMemberID
taskAccessList - the given AccessTask list
Returns:
true if it has been invoked successfully ;false otherwise
Since:
version 1.1.5p4
See Also:
AccessTask

setMonitorRelation

boolean setMonitorRelation(java.lang.String sourceTaskID,
                           java.lang.String createdRootTaskID)
Description copied from interface: FlowService
Set task monitor relation, store root task ID and those created root task ID when executed.

Specified by:
setMonitorRelation in interface FlowService
Parameters:
sourceTaskID - the given RootTaskID
Returns:
true if the execution is successful; false otherwise.

setMonitorRelation

boolean setMonitorRelation(java.lang.String sourceTaskID,
                           java.util.Vector createdRootTaskIDs)
Description copied from interface: FlowService
Set task monitor relation, store root task ID and those created root task ID when executed.

Specified by:
setMonitorRelation in interface FlowService
Parameters:
sourceTaskID - the given RootTaskID
createdRootTaskIDs - the given created RootTaskID list
Returns:
true if the execution is successful; false otherwise.

shutdownServer

boolean shutdownServer()
Stop server.

Specified by:
shutdownServer in interface UtilityService
Returns:
true if it has been invoked successfully ;false otherwise
Since:
version 1.1.5p4

SQLdeleteValue

boolean SQLdeleteValue(java.lang.String sql)
The method is used to delete value from database (the RTRepository).

Specified by:
SQLdeleteValue in interface DBService
Parameters:
sql - the input SQL data string
Returns:
true if the deletion is successful; false otherwise.
Since:
version 1.0.0

SQLinsertValue

boolean SQLinsertValue(java.lang.String sql)
The method is used to insert value to database (the RTRepository)

Specified by:
SQLinsertValue in interface DBService
Parameters:
sql - the input SQL data string
Returns:
true if the insertion is successful; false otherwise.
Since:
version 1.0.0

SQLloadValue

java.util.List SQLloadValue(java.lang.String sql)
The method is used to load value from database (the RTRepository).

Specified by:
SQLloadValue in interface DBService
Parameters:
sql - the input SQL data string
Returns:
the value mapping to the SQL syntax
Since:
version 1.0.0

SQLupdateValue

boolean SQLupdateValue(java.lang.String sql)
The method is used to update value to database (the RTRepository).

Specified by:
SQLupdateValue in interface DBService
Parameters:
sql - the input SQL data string
Returns:
true if the update is successful; false otherwise.
Since:
version 1.0.0

startServer

boolean startServer()
Start server.

Specified by:
startServer in interface UtilityService
Returns:
true if it has been invoked successfully ;false otherwise
Since:
version 1.1.5p4

startTask

java.util.HashMap startTask(Task t)
Start the task.

Examples:

   var taskID = "Tsk000000213214";
   var task = WCCI.getTask(taskID);
   var hashmap = WCCI.startTask(task);
   var retValue = hashmap.get("retValue");
       returns <DFN>true if it starts successfully;false otherwise</DFN>
 

Specified by:
startTask in interface FlowService
Parameters:
t - the given Task
Returns:
the result ( [Key:Value] = [retValue:Boolean(true/false)])
Since:
version 1.0.0

stopRootTask

void stopRootTask(java.lang.String rootTaskID)
Stop the root task

Examples:

 WCCI.stopRootTask("Tsk000000835835");
 

Specified by:
stopRootTask in interface FlowService
Parameters:
rootTaskID - the root task id.
Since:
version 1.1.6

suspendTask

java.util.HashMap suspendTask(Task t)
Suspend the task.

Examples:

   var taskID = "Tsk000000226229";
   var task = WCCI.getTask(taskID);
   var hashmap = WCCI.suspendTask(task);
   var retValue = hashmap.get("retValue");
       returns <DFN>true if it starts successfully;false otherwise</DFN>
 

Specified by:
suspendTask in interface FlowService
Parameters:
t - the given Task
Returns:
the result ( [Key:Value] = [retValue:Boolean(true)] )
Since:
version 1.0.1

testSessionConnection

boolean testSessionConnection(int seq)
Test a SessionConnection object with database configuration, by the specific sequence.

Specified by:
testSessionConnection in interface DBService
Parameters:
seq - the sequence which the data is store in configuration, from 1
Returns:
true if testing is successful.

testSessionConnection

boolean testSessionConnection(java.lang.String name)
Test a SessionConnection object with database configuration, by the specific name.

Specified by:
testSessionConnection in interface DBService
Parameters:
name - the name to recognize the db configuration
Returns:
true if testing is successful.

unlockTask

void unlockTask(java.lang.String tskID)
UnLock the root task of the task.

Examples:

 var taskID = "Tsk000000226229";
 WCCI.unlockTask(taskID);
 

Specified by:
unlockTask in interface FlowService
Parameters:
tskID - the given TaskID
Since:
version 1.1.5

updateArtInstance

boolean updateArtInstance(PASEartInstance instance)
Update artifact instance Notice: Artifact instance is carrying artifact state information. If the state of instance parameter is not the same as current instance, current instance will not be updated with parameter instance. Use updateArtInstanceLog(java.lang.String tID, PASEartInstance instance) method instead. This behavior is for protecting those processes which are not completed yet. Update artifact instance with wrong artifact state could damage process routing.

Specified by:
updateArtInstance in interface FlowService
Parameters:
instance - the given PASEartInstance
Returns:
true for success, else false
Since:
version 1.1.5
See Also:
PASEartInstance

updateArtInstance

boolean updateArtInstance(java.lang.String tID,
                          PASEartInstance instance)
Update artifact instance

Specified by:
updateArtInstance in interface FlowService
Parameters:
tID - the given TaskID
instance - the given PASEartInstance
Returns:
true for success, else false
Since:
version 1.1.5
See Also:
PASEartInstance

updateCompany

boolean updateCompany(Company company)
Update the Company in database.

Specified by:
updateCompany in interface OrgService
Parameters:
company - the Company instance
Returns:
true if successful, else false
See Also:
Company

updateDepartment

boolean updateDepartment(Department department)
Update the Department in database.

Specified by:
updateDepartment in interface OrgService
Parameters:
department - the Department instance
Returns:
true if successful, else false
See Also:
Department

updateMemberRecord

boolean updateMemberRecord(MemberRecord mbr)
Update the MemberRecord in database.

Specified by:
updateMemberRecord in interface OrgService
Parameters:
memberRecord - the MemberRecord instance
Returns:
true if successful, else false
See Also:
MemberRecord

updateRole

boolean updateRole(Role role)
Update the Role in database.

Specified by:
updateRole in interface OrgService
Parameters:
role - the Role instance
Returns:
true if successful, else false
See Also:
Role

updateTask

boolean updateTask(Task t)
Update the data object of task. The method will update the task in cache and database.

Examples:

 var taskID = "Tsk000000226232";
 var task = WCCI.getTask(taskID);
 task.setKeyWord("Hello");
 WCCI.updateTask(task);
 

Specified by:
updateTask in interface FlowService
Parameters:
t - the given task
Returns:
true for success
Since:
version 1.0.0
See Also:
Task

updateValueWithSessionConnection

boolean updateValueWithSessionConnection(java.lang.String session,
                                         java.lang.String sqlcmd)
Description copied from interface: DBService
Invoke the connection to update value

Specified by:
updateValueWithSessionConnection in interface DBService
Parameters:
session - the given Session Key
sqlcmd - the given SQL statement
Returns:
true if the update is successful; false otherwise.

userVerify

java.util.HashMap userVerify(java.lang.String user,
                             java.lang.String pass,
                             boolean autoLogin)
Description copied from interface: UtilityService
To verify user's loginID and password

Specified by:
userVerify in interface UtilityService
Parameters:
user -
pass -
autoLogin -
Returns:
Since:
version 2.2.2.1

waitTask

void waitTask(java.lang.String tskID)
Set the task to be state of waiting

Examples:

 var taskID = "Tsk000000226229";
 WCCI.waitTask(taskID);
 

Specified by:
waitTask in interface FlowService
Parameters:
tskID - the given TaskID
Since:
version 1.1.5

waitTask

void waitTask(java.lang.String tskID,
              java.lang.String timeString)
Set the task to be state of waiting, and the waiting duration.

Examples:

 var taskID = "Tsk000000226229";
 var time = "2001/12/12/23/58";
 WCCI.waitTask(taskID, time);
 

Specified by:
waitTask in interface FlowService
Parameters:
tskID - the given TaskID
timeString - the running time with format "yyyy/mm/dd/hh/mm"
Since:
version 1.1.5

Agentflow
V3.1

Submit a bug or feature
Copyright 1999-2010 Flowring , Inc. 12F., No.120, Sec2, Gongdao 5th Rd.,
Hsinchu City 300, Taiwan (R.O.C.) All Rights Reserved.