Class SignButtonRpcService

java.lang.Object
ru.cg.webbpm.electronic_sign.SignButtonRpcService

@RpcService public class SignButtonRpcService extends Object
Author:
Tim Urmancheev
  • Field Details

  • Constructor Details

    • SignButtonRpcService

      public SignButtonRpcService()
  • Method Details

    • init

      @PostConstruct public void init()
    • getIdsForNonSignedDoc

      @RpcCall public List<Long> getIdsForNonSignedDoc(Long[] documentIds)
      Using array of documents IDs, method returns ids for only non-signed documents.
      Parameters:
      documentIds - - selected documents IDs
      Returns:
      - ids list for only non-signed documents
    • getDocuments

      @RpcCall public List<Document> getDocuments(Long[] documentIds)
    • getDocumentsInBase64

      @RpcCall public List<Document> getDocumentsInBase64(Long[] documentIds)
    • saveSignBatchAndCompleteTask

      @RpcCall @Transactional public ValidationResponse saveSignBatchAndCompleteTask(Long[] documentIdsRaw, SignedDocument[] signedDocuments, String navigateTo, BpmnVariableForSave[] bpmnVariables, Boolean allowResign)
      Validates, saves signed documents completes current task. If this.validateDocument is TRUE the method do documents validation applying all this.validators. Method saves valid documents, completes current task and returns validation error messages list.
      Parameters:
      documentIdsRaw - - signed documents IDs array to be saved
      signedDocuments - - signed documents array to be saved
      navigateTo - - navigation variable value
      bpmnVariables - - bpmnVariables
      allowResign - - flag, allow resign document if true
      Returns:
      - null if documents were saves successfully, error messages list - if the are invalid documents and flag this.validateDocument is TRUE
    • saveSignBatch

      @RpcCall @Transactional public ValidationResponse saveSignBatch(Long[] documentIdsRaw, SignedDocument[] signedDocuments, Boolean allowResign)
      Validates and saves signed documents. If this.validateDocument is TRUE the method do documents validation applying all this.validators. Method saves valid documents, and returns validation response.
      Parameters:
      documentIdsRaw - - signed documents IDs array to be saved
      signedDocuments - - signed documents array to be saved
      allowResign - - flag, allow resign document if true
      Returns:
      - error messages list, if flag this.validateDocument is TRUE and there are invalid documents, otherwise the method returns null