Uses of Class
org.exoplatform.processes.model.Work
Packages that use Work
Package
Description
-
Uses of Work in org.exoplatform.processes.service
Methods in org.exoplatform.processes.service that return WorkModifier and TypeMethodDescriptionProcessesService.archiveWork(long workId, boolean archived, long userIdentityId) Archives or restores a request in its requester's « My requests », when the user is its requester: only its record's flag changes, never its task.ProcessesService.cancelWork(long workId, long userIdentityId) Cancels a pending request, when the user is its requester: its record says cancelled, then its task is completed through Task, its column left as it is, the flag written back when the completion fails (ProcessesStorage.saveRequestState(long, Boolean, Boolean, Boolean)); its managers are then notified.default WorkProcessesService.createWork(Work work, long userId) Creates a request, from a new work object or from an existing draft, in the stored task project of the process itsworkFlowIdnames, whatever project id it carries, and records it as a request of that process.ProcessesService.createWork(Work work, long userId, String agentTitle) Creates a request, its task named by the fixed rule « Process name - yyyy/MM/dd - Requester name », followed by « - agent title » when one is given; the title of the given work is ignored.ProcessesService.createWorkDraft(Work work, long userId) Creates a work draftProcessesService.getWorkById(long workId) Retrieves a request by its id, whoever asks: for the platform itself, for example the digest emails, never for a user requestProcessesService.getWorkById(long userIdentityId, Long workId) Retrieves a Work by its given idProcessesService.getWorkDraft(long draftId, long userIdentityId) Reads one of the user's own request drafts.ProcessesService.updateWork(Work work, long userId) ProcessesService.updateWorkCompleted(Long workId, boolean completed) Deprecated, for removal: This API element is subject to removal in a future version.ProcessesService.updateWorkCompleted(Long workId, boolean completed, long userIdentityId) Completes or reopens the task of a request, when the user manages its process: a manager decides a request by completing it, the column it sits in wording the outcome.ProcessesService.updateWorkDraft(Work work, long userId) Updates a work draftMethods in org.exoplatform.processes.service that return types with arguments of type WorkModifier and TypeMethodDescriptionProcessesService.getWorkDrafts(long userIdentityId, WorkFilter workFilter, int offset, int limit) Retrieves a list of accessible WorkDraft, for a selected userProcessesService.getWorks(long userIdentityId, WorkFilter workFilter, int offset, int limit) Retrieves list of filtered worksMethods in org.exoplatform.processes.service with parameters of type WorkModifier and TypeMethodDescriptiondefault WorkProcessesService.createWork(Work work, long userId) Creates a request, from a new work object or from an existing draft, in the stored task project of the process itsworkFlowIdnames, whatever project id it carries, and records it as a request of that process.ProcessesService.createWork(Work work, long userId, String agentTitle) Creates a request, its task named by the fixed rule « Process name - yyyy/MM/dd - Requester name », followed by « - agent title » when one is given; the title of the given work is ignored.ProcessesService.createWorkDraft(Work work, long userId) Creates a work draftProcessesService.updateWork(Work work, long userId) ProcessesService.updateWorkDraft(Work work, long userId) Updates a work draft -
Uses of Work in org.exoplatform.processes.storage
Methods in org.exoplatform.processes.storage that return WorkModifier and TypeMethodDescriptionProcessesStorage.completeRequest(Work request, Work work, long userId) Ends a new request's creation once its values are written: moves its draft's attachments, deletes its draft and announces it, then announces the request.ProcessesStorage.createRequest(Work work, long userId) Creates a new request's task, its request record and its process's labels: the first steps ofProcessesStorage.saveWork(Work, long)for a new request, before its values are written.ProcessesStorage.getWorkById(long id) ProcessesStorage.getWorkById(long userIdentityId, long workId) Retrieves a Work by its given idProcessesStorage.getWorkDraftyId(long id) Retrieves a work draft by its given idProcessesStorage.saveRequestState(long workId, Boolean canceled, Boolean archived, Boolean completed) Writes a request's own state, which no column of its task project carries: the requester's cancel and archive flags on its request record, and its task's completion; when the completion fails, the flags are written back as they were, unless that write fails too, and the completion's failure is thrown.Saving a work and deletes its related draft if it was created from draftProcessesStorage.saveWorkDraft(Work work, long userId) Save a draft of a workProcessesStorage.saveWorkDraftRow(Work work, long userId) Saves a request draft's row only: whatProcessesStorage.saveWorkDraft(Work, long)does but the copy of its process's attachments into a new draft.ProcessesStorage.updateWorkCompleted(Long workId, boolean completed) update the completed property of the task of a work to completed or uncompletedMethods in org.exoplatform.processes.storage that return types with arguments of type WorkModifier and TypeMethodDescriptionProcessesStorage.findAllWorkDraftsByUser(WorkFilter workFilter, int offset, int limit, long userIdentityId) Retrieves a list of accessible WorkDraft, for a selected user.ProcessesStorage.getWorks(long userIdentityId, WorkFilter workFilter, int offset, int limit) Retrieves list of filtered worksMethods in org.exoplatform.processes.storage with parameters of type WorkModifier and TypeMethodDescriptionProcessesStorage.completeRequest(Work request, Work work, long userId) Ends a new request's creation once its values are written: moves its draft's attachments, deletes its draft and announces it, then announces the request.ProcessesStorage.createRequest(Work work, long userId) Creates a new request's task, its request record and its process's labels: the first steps ofProcessesStorage.saveWork(Work, long)for a new request, before its values are written.Saving a work and deletes its related draft if it was created from draftProcessesStorage.saveWorkDraft(Work work, long userId) Save a draft of a workProcessesStorage.saveWorkDraftRow(Work work, long userId) Saves a request draft's row only: whatProcessesStorage.saveWorkDraft(Work, long)does but the copy of its process's attachments into a new draft. -
Uses of Work in org.exoplatform.processes.util
Methods in org.exoplatform.processes.util with parameters of type WorkModifier and TypeMethodDescriptionstatic booleanRequestState.isCanceled(Work work) Tells whether the requester cancelled a request still closed.static booleanTells whether a manager closed a request: its task is completed and its requester did not cancel it.static booleanRequestState.isFinished(Work work) Tells whether a request changes no more unless reopened: decided or cancelled, which « Archive all » archives.static booleanTells whether a request waits for a decision: its task is not completed, whatever its column; a request reopened after a cancel is pending again.
ProcessesService.updateWorkCompleted(Long, boolean, long)instead, which checks the user's permission.