Uses of Class
org.exoplatform.processes.model.Work

Packages that use Work
  • Uses of Work in org.exoplatform.processes.service

    Modifier and Type
    Method
    Description
    ProcessesService.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 Work
    ProcessesService.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 its workFlowId names, 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 draft
    ProcessesService.getWorkById(long workId)
    Retrieves a request by its id, whoever asks: for the platform itself, for example the digest emails, never for a user request
    ProcessesService.getWorkById(long userIdentityId, Long workId)
    Retrieves a Work by its given id
    ProcessesService.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.
    use ProcessesService.updateWorkCompleted(Long, boolean, long) instead, which checks the user's permission.
    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 draft
    Methods in org.exoplatform.processes.service that return types with arguments of type Work
    Modifier and Type
    Method
    Description
    ProcessesService.getWorkDrafts(long userIdentityId, WorkFilter workFilter, int offset, int limit)
    Retrieves a list of accessible WorkDraft, for a selected user
    ProcessesService.getWorks(long userIdentityId, WorkFilter workFilter, int offset, int limit)
    Retrieves list of filtered works
    Methods in org.exoplatform.processes.service with parameters of type Work
    Modifier and Type
    Method
    Description
    default Work
    ProcessesService.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 its workFlowId names, 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 draft
    ProcessesService.updateWork(Work work, long userId)
     
    ProcessesService.updateWorkDraft(Work work, long userId)
    Updates a work draft
  • Uses of Work in org.exoplatform.processes.storage

    Modifier and Type
    Method
    Description
    ProcessesStorage.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 of ProcessesStorage.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 id
    ProcessesStorage.getWorkDraftyId(long id)
    Retrieves a work draft by its given id
    ProcessesStorage.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.
    ProcessesStorage.saveWork(Work work, long userId)
    Saving a work and deletes its related draft if it was created from draft
    ProcessesStorage.saveWorkDraft(Work work, long userId)
    Save a draft of a work
    ProcessesStorage.saveWorkDraftRow(Work work, long userId)
    Saves a request draft's row only: what ProcessesStorage.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 uncompleted
    Methods in org.exoplatform.processes.storage that return types with arguments of type Work
    Modifier and Type
    Method
    Description
    ProcessesStorage.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 works
    Methods in org.exoplatform.processes.storage with parameters of type Work
    Modifier and Type
    Method
    Description
    ProcessesStorage.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 of ProcessesStorage.saveWork(Work, long) for a new request, before its values are written.
    ProcessesStorage.saveWork(Work work, long userId)
    Saving a work and deletes its related draft if it was created from draft
    ProcessesStorage.saveWorkDraft(Work work, long userId)
    Save a draft of a work
    ProcessesStorage.saveWorkDraftRow(Work work, long userId)
    Saves a request draft's row only: what ProcessesStorage.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 Work
    Modifier and Type
    Method
    Description
    static boolean
    RequestState.isCanceled(Work work)
    Tells whether the requester cancelled a request still closed.
    static boolean
    RequestState.isDecided(Work work)
    Tells whether a manager closed a request: its task is completed and its requester did not cancel it.
    static boolean
    RequestState.isFinished(Work work)
    Tells whether a request changes no more unless reopened: decided or cancelled, which « Archive all » archives.
    static boolean
    RequestState.isPending(Work work)
    Tells whether a request waits for a decision: its task is not completed, whatever its column; a request reopened after a cancel is pending again.