Class UIServicesClientImpl

    • Method Detail

      • getProcessForm

        public String getProcessForm​(String containerId,
                                     String processId,
                                     String language)
        Description copied from interface: UIServicesClient
        Returns process form for given process id that resides in given container. It returns default form type which is (FORM - build with form modeler). If there is a need to select the type use #getProcessFormByType
        Specified by:
        getProcessForm in interface UIServicesClient
        Parameters:
        containerId - container identifier where process resides
        processId - unique process id
        language - language that form should be filtered for
        Returns:
        string representation (json or xml depending on client marshaling selection) of the process form
      • getProcessFormByType

        public String getProcessFormByType​(String containerId,
                                           String processId,
                                           String language,
                                           String formType)
        Description copied from interface: UIServicesClient
        Returns process form for given process id that resides in given container
        Specified by:
        getProcessFormByType in interface UIServicesClient
        Parameters:
        containerId - container identifier where process resides
        processId - unique process id
        language - language that form should be filtered for
        formType - type of form to be returned (FORM - default (form modeler), FRM - v7 forms, FTL - freemarker template)
        Returns:
        string representation (json or xml depending on client marshaling selection) of the process form
      • getProcessRawForm

        public String getProcessRawForm​(String containerId,
                                        String processId)
        Description copied from interface: UIServicesClient
        Returns process form for given process id that resides in given container - without filtering values by language. It returns default form type which is (FORM - build with form modeler). If there is a need to select the type use #getProcessFormByType
        Specified by:
        getProcessRawForm in interface UIServicesClient
        Parameters:
        containerId - container identifier where process resides
        processId - unique process id
        Returns:
        string representation of the process form without any marshalling
      • getProcessForm

        public String getProcessForm​(String containerId,
                                     String processId)
        Description copied from interface: UIServicesClient
        Returns process form for given process id that resides in given container - without filtering values by language. It returns default form type which is (FORM - build with form modeler). If there is a need to select the type use #getProcessFormByType
        Specified by:
        getProcessForm in interface UIServicesClient
        Parameters:
        containerId - container identifier where process resides
        processId - unique process id
        Returns:
        string representation (json or xml depending on client marshaling selection) of the process form
      • getProcessFormByType

        public String getProcessFormByType​(String containerId,
                                           String processId,
                                           String formType)
        Description copied from interface: UIServicesClient
        Returns process form for given process id that resides in given container - without filtering values by language
        Specified by:
        getProcessFormByType in interface UIServicesClient
        Parameters:
        containerId - container identifier where process resides
        processId - unique process id
        formType - type of form to be returned (FORM - default (form modeler), FRM - v7 forms, FTL - freemarker template)
        Returns:
        string representation (json or xml depending on client marshaling selection) of the process form
      • getTaskForm

        public String getTaskForm​(String containerId,
                                  Long taskId,
                                  String language)
        Description copied from interface: UIServicesClient
        Returns task form for given task id that belongs to given container. It returns default form type which is (FORM - build with form modeler). If there is a need to select the type use #getProcessFormByType
        Specified by:
        getTaskForm in interface UIServicesClient
        Parameters:
        containerId - container identifier where task resides
        taskId - unique task id
        language - language that form should be filtered for
        Returns:
        string representation (json or xml depending on client marshaling selection) of the task form
      • getTaskFormAsUser

        public String getTaskFormAsUser​(String containerId,
                                        Long taskId,
                                        String language,
                                        String userId)
        Description copied from interface: UIServicesClient
        Returns task form for given task id that belongs to given container as specified user. It returns default form type which is (FORM - build with form modeler). If there is a need to select the type use #getProcessFormForUserByType Introduced to allow client to take advantage of bypass auth user connecting to server.
        Specified by:
        getTaskFormAsUser in interface UIServicesClient
        Parameters:
        containerId - container identifier where task resides
        taskId - unique task id
        language - language that form should be filtered for
        userId - userId making the request to bypass auth user
        Returns:
        string representation (json or xml depending on client marshaling selection) of the task form
      • getTaskFormByType

        public String getTaskFormByType​(String containerId,
                                        Long taskId,
                                        String language,
                                        String formType)
        Description copied from interface: UIServicesClient
        Returns task form for given task id that belongs to given container.
        Specified by:
        getTaskFormByType in interface UIServicesClient
        Parameters:
        containerId - container identifier where task resides
        taskId - unique task id
        language - language that form should be filtered for
        formType - type of form to be returned (FORM - default (form modeler), FRM - v7 forms, FTL - freemarker template)
        Returns:
        string representation (json or xml depending on client marshaling selection) of the task form
      • getTaskFormByTypeAsUser

        public String getTaskFormByTypeAsUser​(String containerId,
                                              Long taskId,
                                              String language,
                                              String formType,
                                              String userId)
        Description copied from interface: UIServicesClient
        Returns task form for given task id that belongs to given container as specified user. Introduced to allow client to take advantage of bypass auth user connecting to server.
        Specified by:
        getTaskFormByTypeAsUser in interface UIServicesClient
        Parameters:
        containerId - container identifier where task resides
        taskId - unique task id
        language - language that form should be filtered for
        formType - type of form to be returned (FORM - default (form modeler), FRM - v7 forms, FTL - freemarker template)
        userId - userId making the request to bypass auth user
        Returns:
        string representation (json or xml depending on client marshaling selection) of the task form
      • getTaskForm

        public String getTaskForm​(String containerId,
                                  Long taskId)
        Description copied from interface: UIServicesClient
        Returns task form for given task id that belongs to given container as raw content - without filtering values by language. It returns default form type which is (FORM - build with form modeler). If there is a need to select the type use #getProcessFormByType
        Specified by:
        getTaskForm in interface UIServicesClient
        Parameters:
        containerId - container identifier where task resides
        taskId - unique task id
        Returns:
        string representation (json or xml depending on client marshaling selection) of the task form
      • getTaskFormByType

        public String getTaskFormByType​(String containerId,
                                        Long taskId,
                                        String formType)
        Description copied from interface: UIServicesClient
        Returns task form for given task id that belongs to given container as raw content - without filtering values by language. It returns default form type which is (FORM - build with form modeler). If there is a need to select the type use #getProcessFormByType
        Specified by:
        getTaskFormByType in interface UIServicesClient
        Parameters:
        containerId - container identifier where task resides
        taskId - unique task id
        formType - type of form to be returned (FORM - default (form modeler), FRM - v7 forms, FTL - freemarker template)
        Returns:
        string representation (json or xml depending on client marshaling selection) of the task form
      • getTaskRawForm

        public String getTaskRawForm​(String containerId,
                                     Long taskId)
        Description copied from interface: UIServicesClient
        Returns task form for given task id that belongs to given container as raw content - without filtering values by language. It returns default form type which is (FORM - build with form modeler). If there is a need to select the type use #getProcessFormByType
        Specified by:
        getTaskRawForm in interface UIServicesClient
        Parameters:
        containerId - container identifier where task resides
        taskId - unique task id
        Returns:
        string representation of the task form without any marshalling
      • getTaskRawFormAsUser

        public String getTaskRawFormAsUser​(String containerId,
                                           Long taskId,
                                           String userId)
        Description copied from interface: UIServicesClient
        Returns task form for given task id that belongs to given container as specified user as raw content - without filtering values by language. It returns default form type which is (FORM - build with form modeler). If there is a need to select the type use #getProcessFormByType Introduced to allow client to take advantage of bypass auth user connecting to server.
        Specified by:
        getTaskRawFormAsUser in interface UIServicesClient
        Parameters:
        containerId - container identifier where task resides
        taskId - unique task id
        userId - userId making the request to bypass auth user
        Returns:
        string representation of the task form without any marshalling
      • getProcessImage

        public String getProcessImage​(String containerId,
                                      String processId)
        Description copied from interface: UIServicesClient
        Returns process image (svg) of the given process id that belongs to given container
        Specified by:
        getProcessImage in interface UIServicesClient
        Parameters:
        containerId - container identifier where process resides
        processId - unique process id
        Returns:
        svg (xml) representing process image
      • getProcessInstanceImage

        public String getProcessInstanceImage​(String containerId,
                                              Long processInstanceId)
        Description copied from interface: UIServicesClient
        Returns process image (svg) with annotated active and completed nodes for given process instance that belongs to given container
        Specified by:
        getProcessInstanceImage in interface UIServicesClient
        Parameters:
        containerId - container identifier where process resides
        processInstanceId - unique process instance id
        Returns:
        svg (xml) representing process image annotated with active (in red) and completed (in grey) nodes
      • createColorURLParams

        protected String createColorURLParams​(String completeNodeColor,
                                              String completeNodeBorderColor,
                                              String activeNodeBorderColor)
      • getProcessInstanceImageCustomColor

        public String getProcessInstanceImageCustomColor​(String containerId,
                                                         Long processInstanceId,
                                                         String completeNodeColor,
                                                         String completeNodeBorderColor,
                                                         String activeNodeBorderColor)
        Description copied from interface: UIServicesClient
        Returns process image (svg) with annotated active and completed nodes for given process instance that belongs to given container
        Specified by:
        getProcessInstanceImageCustomColor in interface UIServicesClient
        Parameters:
        containerId - container identifier where process resides
        processInstanceId - unique process instance id
        completeNodeColor - process instance image complete node color
        completeNodeBorderColor - process instance image complete node border color
        activeNodeBorderColor - process instance image active node border color
        Returns:
        svg (xml) representing process image annotated with custom colors
      • renderProcessForm

        public String renderProcessForm​(String containerId,
                                        String processId)
        Description copied from interface: UIServicesClient
        Returns process form for given process id that resides in given container - completely rendered so the output is HTML
        Specified by:
        renderProcessForm in interface UIServicesClient
        Parameters:
        containerId - container identifier where process resides
        processId - unique process id
        Returns:
        HTML representation of the process form
      • renderProcessForm

        public String renderProcessForm​(String containerId,
                                        String processId,
                                        String renderer)
        Description copied from interface: UIServicesClient
        Returns process form for given process id that resides in given container - completely rendered so the output is HTML
        Specified by:
        renderProcessForm in interface UIServicesClient
        Parameters:
        containerId - container identifier where process resides
        processId - unique process id
        renderer - name of the renderer to be used to produce the HTML
        Returns:
        HTML representation of the process form
      • renderCaseForm

        public String renderCaseForm​(String containerId,
                                     String caseDefinitionId)
        Description copied from interface: UIServicesClient
        Returns case form for given case definition that resides in given container - completely rendered so the output is HTML
        Specified by:
        renderCaseForm in interface UIServicesClient
        Parameters:
        containerId - container identifier where process resides
        caseDefinitionId - unique case definition id
        Returns:
        HTML representation of the process form
      • renderCaseForm

        public String renderCaseForm​(String containerId,
                                     String caseDefinitionId,
                                     String renderer)
        Description copied from interface: UIServicesClient
        Returns case form for given case definition id that resides in given container - completely rendered so the output is HTML
        Specified by:
        renderCaseForm in interface UIServicesClient
        Parameters:
        containerId - container identifier where process resides
        caseDefinitionId - unique case definition id
        renderer - name of the renderer to be used to produce the HTML
        Returns:
        HTML representation of the process form
      • renderTaskForm

        public String renderTaskForm​(String containerId,
                                     Long taskId)
        Description copied from interface: UIServicesClient
        Returns task form for given task id that belongs to given container - completely rendered so the output is HTML
        Specified by:
        renderTaskForm in interface UIServicesClient
        Parameters:
        containerId - container identifier where task resides
        taskId - unique task id
        Returns:
        HTML representation of the task form
      • renderTaskForm

        public String renderTaskForm​(String containerId,
                                     Long taskId,
                                     String renderer)
        Description copied from interface: UIServicesClient
        Returns task form for given task id that belongs to given container - completely rendered so the output is HTML
        Specified by:
        renderTaskForm in interface UIServicesClient
        Parameters:
        containerId - container identifier where task resides
        taskId - unique task id
        renderer - name of the renderer to be used to produce the HTML
        Returns:
        HTML representation of the task form