Class PlaceholderContextModel

    • Constructor Detail

      • PlaceholderContextModel

        public PlaceholderContextModel()
    • Method Detail

      • getActiveGroups

        public Set<IPlaceholderGroup> getActiveGroups()
        Returns:
        The set of groups of placeholder which are currently shown in the dialog.
      • getSelectedFormVersion

        public FormVersion getSelectedFormVersion()
        Returns:
        The currently active form version in the UI, if any.
      • getSelectedPlaceholder

        public PlaceHolder getSelectedPlaceholder()
        Returns:
        The currently selected placeholder in the placeholder list.
      • getSelectedProject

        public Projekt getSelectedProject()
        Returns:
        The project for which form placeholders are shown.
      • getSelectedWorkflowVersion

        public WorkflowVersion getSelectedWorkflowVersion()
        Returns:
        The currently active workflow version in the UI, if any.
      • getVariables

        public List<FormVariable> getVariables()
        Returns:
        List of variables from the form designer.
      • getXItems

        public Collection<XItem> getXItems()
        Returns:
        The current active set of form items (e.g. when editing a form in the form designer), if any.
      • isShowProjectSelection

        public boolean isShowProjectSelection()
        Whether the user can select a project in the placeholder dialog. If the user is editing the workflow of a project, they cannot use placeholders of other projects. When they are editing a template, they can.
        Returns:
        Whether the current context allows selecting the project for which form placeholders are displayed.
      • setSelectedFormVersion

        public void setSelectedFormVersion​(FormVersion selectedFormVersion)
      • setSelectedPlaceholder

        public void setSelectedPlaceholder​(PlaceHolder selectedPlaceholder)
        Parameters:
        selectedPlaceholder - The currently selected placeholder in the placeholder list.
      • setSelectedProject

        public void setSelectedProject​(Projekt selectedProject)
        Parameters:
        selectedProject - The project for which form placeholders are shown.
      • setSelectedWorkflowVersion

        public void setSelectedWorkflowVersion​(WorkflowVersion selectedWorkflowVersion)
      • setShowProjectSelection

        public void setShowProjectSelection​(boolean showProjectSelection)
      • setVariables

        public void setVariables​(com.alibaba.fastjson.JSONArray variables)
        Parameters:
        variables - List of variables from the form designer.
      • setVariables

        public void setVariables​(List<FormVariable> variables)
        Parameters:
        variables - List of variables from the form designer.